merge from 1.4.5 branche

git-svn-id: http://xe-core.googlecode.com/svn/trunk@8239 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2011-04-01 01:12:26 +00:00
parent 7d10ebd968
commit 825ccd8328
57 changed files with 932 additions and 645 deletions

View file

@ -60,6 +60,14 @@ class Mobile {
return $this->ismobile;
}
function isMobileCheckByAgent()
{
if(preg_match('/(iPod|iPhone|Android|BlackBerry|SymbianOS|SCH\-M[0-9]+)/',$_SERVER['HTTP_USER_AGENT']))
return true;
else
return false;
}
function setMobile($ismobile)
{
$oMobile =& Mobile::getInstance();