commit
b38b4ec580
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue