📄 update_general_set.php
字号:
<?
include "logincheck.php";
include_once "myconnect.php";
$recperpage=(int)$_REQUEST["recperpage"];
$sb_recent_count=(int)$_REQUEST["sb_recent_count"];
$sb_feature_count=(int)$_REQUEST["sb_feature_count"];
$sb_latest_news_cnt=(int)$_REQUEST["sb_latest_news_cnt"];
$sb_cat_featured=(int)$_REQUEST["sb_cat_featured"];
if (!get_magic_quotes_gpc()) {
$sb_null_char=str_replace('$', '\$',addslashes($_REQUEST["sb_null_char"]));
$site_keywords=str_replace('$', '\$',addslashes($_REQUEST["site_keywords"]));
$site_name=str_replace('$', '\$',addslashes($_REQUEST["sitename"]));
$admin_email=str_replace('$', '\$',addslashes($_REQUEST["adminemail"]));
$site_root=str_replace('$', '\$',addslashes($_REQUEST["siteaddrs"]));
$sb_logo=str_replace('$', '\$',addslashes($_REQUEST["list1"]));
$sb_cat_listing=str_replace('$', '\$',addslashes($_REQUEST["cat_listing"]));
}
else
{
$sb_null_char=str_replace('$', '\$',$_REQUEST["sb_null_char"]);
$site_keywords=str_replace('$', '\$',$_REQUEST["site_keywords"]);
$site_name=str_replace('$', '\$',$_REQUEST["sitename"]);
$admin_email=str_replace('$', '\$',$_REQUEST["adminemail"]);
$site_root=str_replace('$', '\$',$_REQUEST["siteaddrs"]);
$sb_logo=str_replace('$', '\$',$_REQUEST["list1"]);
$sb_cat_listing=str_replace('$', '\$',$_REQUEST["cat_listing"]);
}
$sql="update sbbleads_config set
sb_recperpage=$recperpage,
sb_recent_count=$sb_recent_count,
sb_feature_count=$sb_feature_count,
sb_latest_news_cnt=$sb_latest_news_cnt,
sb_cat_featured=$sb_cat_featured,
sb_site_keywords='$site_keywords',
sb_null_char='$sb_null_char',
sb_site_name='$site_name',
sb_admin_email='$admin_email',
sb_cat_listing='$sb_cat_listing',
sb_site_root='$site_root',
sb_logo='$sb_logo'
where sb_id=1";
//die ($sql);
mysql_query($sql);
if(mysql_affected_rows() == 1)
{
header("Location:"."settings_general.php?msg=".urlencode("General parameters have been updated"));
die();
}
else
{
header("Location:"."settings_general.php?msg=".urlencode("Unable to update general parameters, please try again"));
die();
}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -