去掉reffer验证

1.x
xiaoz 2018-11-07 16:54:01 +08:00
parent 57d0e0ebaa
commit 9661b7b7d8
1 changed files with 4 additions and 4 deletions

View File

@ -2,10 +2,10 @@
//载入配置文件 //载入配置文件
include_once("./class/class.user.php"); include_once("./class/class.user.php");
//阻止用户直接访问 //阻止用户直接访问
if( !strstr($_SERVER['HTTP_REFERER'],$config['domain']) ) //if( !strstr($_SERVER['HTTP_REFERER'],$config['domain']) )
{ //{
$basis->re_error('非法请求!'); // $basis->re_error('非法请求!');
} //}
//检查用户是否登录 //检查用户是否登录
$status = $basis->check($config); $status = $basis->check($config);