!116 checkrobot判断顺序

Merge pull request !116 from test_discuz/master
This commit is contained in:
test_discuz 2017-09-12 16:33:56 +08:00 committed by Discuz!
commit b38b4ec580
1 changed files with 1 additions and 1 deletions

View File

@ -310,8 +310,8 @@ function checkrobot($useragent = '') {
static $kw_browsers = array('msie', 'netscape', 'opera', 'konqueror', 'mozilla');
$useragent = strtolower(empty($useragent) ? $_SERVER['HTTP_USER_AGENT'] : $useragent);
if(strpos($useragent, 'http://') === false && dstrpos($useragent, $kw_browsers)) return false;
if(dstrpos($useragent, $kw_spiders)) return true;
if(strpos($useragent, 'http://') === false && dstrpos($useragent, $kw_browsers)) return false;
return false;
}
function checkmobile() {