Browse Source

去掉reffer验证

1.x
xiaoz 6 years ago
parent
commit
9661b7b7d8
  1. 8
      functions/upload.php

8
functions/upload.php

@ -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);

Loading…
Cancel
Save