mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-02 08:42:15 +09:00
issue 3645, php5 대응, 함수 대체
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@13202 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5fa0bf23d7
commit
5693e340fe
28 changed files with 95 additions and 125 deletions
|
|
@ -189,13 +189,13 @@ class mobileXE
|
|||
$userAgent = $_SERVER['HTTP_USER_AGENT'];
|
||||
$wap_sid = $_SERVER['HTTP_X_UP_SUBNO'];
|
||||
|
||||
if(preg_match("/SKT11/i", $userAgent) || preg_match("/skt/i", $browserAccept))
|
||||
if(stripos($userAgent, "SKT11") !== FALSE || stripos($browserAccept, "skt") !== FALSE)
|
||||
{
|
||||
Context::set('mobile_skt',1);
|
||||
return "wml";
|
||||
}
|
||||
elseif(preg_match("/hdml/i", $browserAccept)) return "hdml";
|
||||
elseif(preg_match("/CellPhone/i", $userAgent)) return "mhtml";
|
||||
elseif(stripos($browserAccept, "hdml") !== FALSE) return "hdml";
|
||||
elseif(stripos($userAgent, "cellphone") !== FALSE) return "mhtml";
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue