system/functions.inc.php 1059行
if (preg_match('/playstation/i', $user_agent) OR preg_match('/ipad/i', $user_agent) OR preg_match('/ucweb/i', $user_agent))
{
return false;
}
为啥把uc浏览器识别为普通大屏幕浏览器呢?
-----------------------------------------
-
[]临时修改方法,找到这个文件的1057行,对照修改[/]
-
[] $user_agent = strtolower($_SERVER['HTTP_USER_AGENT']);[/]
//if (preg_match('/playstation/i', $user_agent) OR preg_match('/ipad/i', $user_agent) OR preg_match('/ucweb/i', $user_agent))
if (preg_match('/playstation/i', $user_agent) OR preg_match('/ipad/i', $user_agent) )
{
return false;
}
//if (preg_match('/iemobile/i', $user_agent) OR preg_match('/mobile\ssafari/i', $user_agent) OR preg_match('/iphone\sos/i', $user_agent) OR preg_match('/android/i', $user_agent) OR preg_match('/symbian/i', $user_agent) OR preg_match('/series40/i', $user_agent))
if (preg_match('/iemobile/i', $user_agent) OR preg_match('/mobile\ssafari/i', $user_agent) OR preg_match('/iphone\sos/i', $user_agent) OR preg_match('/android/i', $user_agent) OR preg_match('/symbian/i', $user_agent) OR preg_match('/series40/i', $user_agent) OR preg_match('/ucweb/i', $user_agent) OR preg_match('/UCBrowser/i', $user_agent))
{
return true;
}
阅读全文
收起全文