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