blob: cbb7a4d01f5d8e97b43b79cf187eb04836b8058c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<?php
/*
Jonas Mobil:
"SonyEricssonW660i/R6BC Browser/NetFront/3.3 Profile/MIDP-2.0 Configuration/CLDC-1.1"
Rasmus Mobil:
"Mozilla/5.0 (SymbianOS/9.2; U; Series60/3.1 NokiaN81-3/11.0.045 Profile/MIDP-2.0 Configuration/CLDC-1.1 ) AppleWebKit/413 (KHTML, like Gecko) Safari/413"
*/
//echo $_SERVER['HTTP_USER_AGENT'] . "<br/>";
$client_is_mobile_device =
stripos($_SERVER['HTTP_USER_AGENT'], "MIDP") != FALSE
|| stripos($_SERVER['HTTP_USER_AGENT'], "Nokia") != FALSE
|| stripos($_SERVER['HTTP_USER_AGENT'], "Sony") != FALSE
|| stripos($_SERVER['HTTP_USER_AGENT'], "Ericson") != FALSE
|| $_GET['forcemobile'];
//$client_is_mobile_device = !$client_is_mobile_device;
/*
echo "client_is_mobile_device = ";
if($client_is_mobile_device) echo "yes";
else echo "no";
*/
?>
|