function is_mobile(){$regex_match="/(nokia|iphone|android|motorola|^mot-|softbank|foma|docomo|kddi|up.browser|up.link|htc|dopod|blazer|netfront|helio|hosin|huawei|novarra|CoolPad|webos|techfaith|palmsource|blackberry|alcatel|amoi|ktouch|nexian|samsung|^sam-|s[cg]h|^lge|ericsson|philips|sagem|wellcom|bunjalloo|maui|symbian|smartphone|midp|wap|phone|windows ce|iemobile|^spice|^bird|^zte-|longcos|pantech|gionee|^sie-|portalmmm|jigs browser|hiptop|^ucweb|^benq|haier|^lct|operas*mobi|opera*mini|320x320|240x320|176x220)/i";return isset($_SERVER['HTTP_X_WAP_PROFILE']) or isset($_SERVER['HTTP_PROFILE']) or preg_match($regex_match, strtolower($_SERVER['HTTP_USER_AGENT']));} $isMobile = is_mobile(); ?>
| } ?> | } ?> } ?> Feedback on: irt.org FAQ Knowledge Base Q4053if (!isset($_POST['print']) && !isset($_GET['print'])) { ?> if (!$isMobile) { ?> } ?> } ?>irt.org | About | Feedback | 624 [ previous next ] Feedback on: Sent by Worth: Comments: And the answer gives how to identify the browser type!! | What's New |