update_policies_set.php
来自「通达OA部分源代码」· PHP 代码 · 共 39 行
PHP
39 行
<?
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 + =
减小字号Ctrl + -
显示快捷键?