return '3'; //wml版
}
$brower = array('mozilla', 'chrome', 'safari', 'opera', 'm3gate', 'winwap', 'openwave', 'myop');
if(self::dstrpos($useragent, $brower)) return false;
$_G['mobile'] = 'unknown';
//对于未知类型的浏览器,通过$_GET['mobile']参数来决定是否是手机浏览器
if(isset($_G['mobiletpl'][$_GET['mobile']])) {
return true;
} else {
return false;
}
}
/**
* 判断$arr中元素字符串是否有出现在$string中
* @param $string $_SERVER['HTTP_USER_AGENT']
* @param $arr 各中浏览器$_SERVER['HTTP_USER_AGENT']中必定会包含的字符串
USER | www |
HOME | /home/www |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
HTTP_HOST | www.mjker.com |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.mjker.com |
SERVER_PORT | 443 |
SERVER_ADDR | 172.16.0.11 |
REMOTE_PORT | 44802 |
REMOTE_ADDR | 3.238.84.213 |
SERVER_SOFTWARE | nginx/1.21.4 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/2.0 |
DOCUMENT_ROOT | /www/wwwroot/jike.78xy.cn/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /nationwide/putian/10.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/putian/10.html |
SCRIPT_FILENAME | /www/wwwroot/jike.78xy.cn/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711694063.7999 |
REQUEST_TIME | 1711694063 |