\system\functions.inc.php"(1050行)
function is_mobile($ignore_cookie = false)
{
        return false ; //添加这行就可以了
	if (HTTP::get_cookie('_ignore_ua_check') == 'TRUE' AND !$ignore_cookie)
	{
		return false;
	}
	$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))
	{
		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))
	{
		return true;
	}
	return false;
}                                
                                                                
                                     阅读全文
                                
                                
                                     收起全文