|
| |
|
if(!loginadmincheck())
{
header("location:login.php");
die();
}
else
{
if(actionfrmcheck("action","4"))
{
$sql="UPDATE `tblsettings` SET
`varContactEmail` = '".$_REQUEST['aemail']."',
`ttSettingUpdated` = NOW( ) ,
varSiteTitle ='".$_REQUEST['sitename']."',
intMaxImagePercoin ='".$_REQUEST['maxpercoin']."',
varSiteURL ='".$_REQUEST['siteurl']."',
varcurrency ='".$_REQUEST['currncy']."',
mailsender = '".$_REQUEST['chkemail']."',
thumbh = '".$_REQUEST['thumh']."',
largeh = '".$_REQUEST['largh']."',
intimgheight = '".$_REQUEST['imghieght']."',
intwidth = '".$_REQUEST['imgwidth']."',
varimgsize = '".$_REQUEST['imgsize']."',
maindisplay = '".$_REQUEST['txtmaindisplay']."',
varSettingsUpdatedFrom ='".$_SERVER['REMOTE_ADDR']."'";
$res_update=$obj_db->edit($sql);
if($res_update)
{
unset($_SESSION['config_val']);
configvalfetch($obj_db);
header("location:index.php?msg=upcnfg");
die();
}
else
{
header("location:index.php?msg=upcnfgn");
die();
}
}
else
{
$sql="SELECT *
FROM `tblsettings`";
$res_settting=$obj_db->select($sql);
if($res_settting)
{
?>
}
}
}
?> |
| |
| |
|