Location: PHPKode > projects > Modular Site Manager > htdocs/misc/settings.php
<?php
chdir("../");
include "inc/functions.inc.php";
$mysql = new mysql(DB_MAIN);
if(!isset($_POST['emailshow']))
{
	$showemail = "no";
} else { 
	$showemail = "yes";
}
if(!isset($_POST['newsletter']))
{
	$nwltr = "no";
} else { 
	$nwltr = "yes";
}
if(empty($_POST['pglimit']) || $_POST['pglimit'] < 10)
{
	$pglimit = 10;
} else {
	$pglimit = $_POST['pglimit'];
}
$mysql->update(PRE."members", "pglimit='".$pglimit."', newsletter='".$nwltr."', emailshow='".$showemail."', datestyle='".$_POST['datestyle']."', blogcats='".$_POST['blogcats']."', gmt='".$_POST['timezone']."'", "id='".$_COOKIE['mid']."'");
pleasewait("settings");
?>
Return current item: Modular Site Manager