mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-30 15:52:17 +09:00
issue 77 Remove PHP 5.3.x deprecated features
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8599 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
3fe79a4d1c
commit
61e00415d6
16 changed files with 42 additions and 40 deletions
|
|
@ -174,12 +174,12 @@
|
|||
$userAgent = $_SERVER['HTTP_USER_AGENT'];
|
||||
$wap_sid = $_SERVER['HTTP_X_UP_SUBNO'];
|
||||
|
||||
if(eregi("SKT11", $userAgent) || eregi("skt", $browserAccept)) {
|
||||
if(preg_match("/SKT11/i", $userAgent) || preg_match("/skt/i", $browserAccept)) {
|
||||
Context::set('mobile_skt',1);
|
||||
return "wml";
|
||||
}
|
||||
elseif(eregi("hdml", $browserAccept)) return "hdml";
|
||||
elseif(eregi("CellPhone", $userAgent)) return "mhtml";
|
||||
elseif(preg_match("/hdml/i", $browserAccept)) return "hdml";
|
||||
elseif(preg_match("/CellPhone/i", $userAgent)) return "mhtml";
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue