/ Published in: PHP

Adapted from CakePHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
define('REQUEST_MOBILE_UA', '(iPhone|Android|MIDP|AvantGo|BlackBerry|J2ME|Opera Mini|DoCoMo|NetFront|Nokia|PalmOS|PalmSource|portalmmm|Plucker|ReqwirelessWeb|SonyEricsson|Symbian|UP\.Browser|Windows CE|Xiino)'); } function isMobile() { return true; } return false; }
Comments
