📄 update_policies_set.php
字号:
<?
include "logincheck.php";
include_once "myconnect.php";
if (!get_magic_quotes_gpc())
{
$sb_how_to_sell=str_replace('$', '\$',addslashes($_REQUEST["sb_how_to_sell"]));
$sb_how_to_buy=str_replace('$', '\$',addslashes($_REQUEST["sb_how_to_buy"]));
$sb_legal=str_replace('$', '\$',addslashes($_REQUEST["sb_legal"]));
}
else
{
$sb_how_to_sell=str_replace('$', '\$',$_REQUEST["sb_how_to_sell"]);
$sb_how_to_buy=str_replace('$', '\$',$_REQUEST["sb_how_to_buy"]);
$sb_legal=str_replace('$', '\$',$_REQUEST["sb_legal"]);
}
$sql="update sbbleads_config set
sb_terms='$sb_how_to_sell',
sb_privacy='$sb_how_to_buy',
sb_legal='$sb_legal'
where sb_id=1";
//die ($sql);
mysql_query($sql);
if(mysql_affected_rows() == 1)
{
header("Location:"."settings_policies.php?msg=".urlencode("Other parameters have been updated"));
die();
}
else
{
header("Location:"."settings_policies.php?msg=".urlencode("Unable to update other parameters, please try again"));
die();
}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -