Location: PHPKode > projects > Pointter PHP CMS > pointtercms_package/pointtercms_package/pointtercms/admin/functions/editsettings.php
<?php 

/***************************************************************************
 * Product Name			: Pointter PHP Content Management System
 * Version 			: V 1.2
 * Release Date			: 01/02/11
 * Copyright			: (C) 2011 PangramSoft / Murat Cevik
 * Program URL			: http://www.pointter.com
 * Company URL			: http://www.pangramsoft.com
 * Email Address                : hide@address.com
 
 ***************************************************************************/
 

/****************************************************************************

Pointter PHP Content Management System is licensed under Creative Commons Attribution Non-commercial No Derivatives 3.0 Unported (by-nc-nd) License.
To view a copy of this license, (a) visit http://creativecommons.org/licenses/by-nc-nd/3.0/ or (b) send a letter to Creative Commons, 171 2nd Street, 
Suite 300, San Francisco, California, 94105, USA.” 

You must not remove/modify/alter the copyright informations both visible and invisible forms in the source code and you must not remove/modify/alter 
the copyright informations in the footer part of the script including the Pointter image (png format file), hard link and title tag.

Please contact the copyright holder PangramSoft / Murat Cevik for a commercial license to remove the copyright information in the footer part of the script.


*****************************************************************************/

$onoff=$_POST[onoff];
$pos=$_POST[pos];
$count=$_POST[count];
$boxname=$_POST[boxname];

$tonoff=$_POST[tonoff];
$tpos=$_POST[tpos];
$tname=$_POST[tname];

$monoff=$_POST[monoff];
$mpos=$_POST[mpos];
$mname=$_POST[mname];

$nonoff=$_POST[nonoff];
$npos=$_POST[npos];
$nname=$_POST[nname];

$memonoff=$_POST[memonoff];
$mempos=$_POST[mempos];
$memname=$_POST[memname];

$searchonoff=$_POST[searchonoff];
$searchname=$_POST[searchname];

$mail=$_POST[mail];


//Update Category Box On/Off
if ($onoff!="")
{
include '../../configset/conn.php';
mysql_query("UPDATE Settings SET Boxonoff='$onoff' WHERE SettingsID='1'");
mysql_close($connect);
}


//Update Category Position
if ($pos!="")
{
include '../../configset/conn.php';
mysql_query("UPDATE Settings SET Boxposition='$pos' WHERE SettingsID='1'");
mysql_close($connect);
}


//Update Category Count
if ($count!="")
{
include '../../configset/conn.php';
mysql_query("UPDATE Settings SET Boxcount='$count' WHERE SettingsID='1'");
mysql_close($connect);
}


//Update Category Box Name
if ($boxname!="")
{
include '../../configset/conn.php';
mysql_query("UPDATE Settings SET Boxname='$boxname' WHERE SettingsID='1'");
mysql_close($connect);
}


//Update Today Box On/Off
if ($tonoff!="")
{
include '../../configset/conn.php';
mysql_query("UPDATE Settings SET Todayonoff='$tonoff' WHERE SettingsID='1'");
mysql_close($connect);
}


//Update Today Box Position
if ($tpos!="")
{
include '../../configset/conn.php';
mysql_query("UPDATE Settings SET Todayposition='$tpos' WHERE SettingsID='1'");
mysql_close($connect);
}

//Update Today Box Name
if ($tname!="")
{
include '../../configset/conn.php';
mysql_query("UPDATE Settings SET Todayname='$tname' WHERE SettingsID='1'");
mysql_close($connect);
}

//Update Most Viewed Box On/Off
if ($monoff!="")
{
include '../../configset/conn.php';
mysql_query("UPDATE Settings SET Mostonoff='$monoff' WHERE SettingsID='1'");
mysql_close($connect);
}


//Update Most Viewed Box Position
if ($mpos!="")
{
include '../../configset/conn.php';
mysql_query("UPDATE Settings SET Mostposition='$mpos' WHERE SettingsID='1'");
mysql_close($connect);
}

//Update Most Viewed Box Name
if ($mname!="")
{
include '../../configset/conn.php';
mysql_query("UPDATE Settings SET Mostname='$mname' WHERE SettingsID='1'");
mysql_close($connect);
}

//Update Newly Added Box On/Off
if ($nonoff!="")
{
include '../../configset/conn.php';
mysql_query("UPDATE Settings SET Newonoff='$nonoff' WHERE SettingsID='1'");
mysql_close($connect);
}


//Update Newly Added Box Position
if ($npos!="")
{
include '../../configset/conn.php';
mysql_query("UPDATE Settings SET Newposition='$npos' WHERE SettingsID='1'");
mysql_close($connect);
}

//Update Newly Added Box Name
if ($nname!="")
{
include '../../configset/conn.php';
mysql_query("UPDATE Settings SET Newname='$nname' WHERE SettingsID='1'");
mysql_close($connect);
}


//Update Member Module On/Off
if ($memonoff!="")
{
include '../../configset/conn.php';
mysql_query("UPDATE Settings SET Memberonoff='$memonoff' WHERE SettingsID='1'");
mysql_close($connect);
}


//Update Member Module Position
if ($mempos!="")
{
include '../../configset/conn.php';
mysql_query("UPDATE Settings SET Memberposition='$mempos' WHERE SettingsID='1'");
mysql_close($connect);
}

//Update Member Module Name
if ($memname!="")
{
include '../../configset/conn.php';
mysql_query("UPDATE Settings SET Membername='$memname' WHERE SettingsID='1'");
mysql_close($connect);
}

//Update Search Module On/Off
if ($searchonoff!="")
{
include '../../configset/conn.php';
mysql_query("UPDATE Settings SET Searchonoff='$searchonoff' WHERE SettingsID='1'");
mysql_close($connect);
}

//Update Search Module Name
if ($searchname!="")
{
include '../../configset/conn.php';
mysql_query("UPDATE Settings SET Searchname='$searchname' WHERE SettingsID='1'");
mysql_close($connect);
}

//Update Website Email Address
if ($mail!="")
{
include '../../configset/conn.php';
mysql_query("UPDATE Settings SET EmailAddress='$mail' WHERE SettingsID='1'");
mysql_close($connect);
}

header("location:../settings.php");

?>
Return current item: Pointter PHP CMS