跟着我来肢解Discuz! 解剖Discuz! 分析Discuz! 研究Discuz! 实习主刀:Cos.X
我的global
上一篇 /
下一篇 2007-12-04 01:44:41
/ 个人分类:PHP
if($_POST){
$tmp = parse_url($_SERVER['HTTP_REFERER']);
$tmp['host'] != $_SERVER['HTTP_HOST'] and exit('POST提交来路非法');
}
set_magic_quotes_runtime(0);
if(!get_magic_quotes_gpc()){
$_GET = add_s($_GET);
if($_POST) $_POST = add_s($_POST);
$_COOKIE = add_s($_COOKIE);
extract($_GET);
extract($_POST);
}else{
import_request_variables('GP');
}
function add_s($in) {
return is_array($in) ? array_map('add_s', $in) : addslashes($in);
}
导入论坛
收藏
分享给好友
管理
举报
TAG: