
01-29-2004, 05:28 PM
|
|
Ponderer
Join Date: Jul 2003
Posts: 103
|
|
Steven, our Project Manager, noticed that the original auto detect code was missing some info.
Here is our fix and seams to work:
Code:
$ua = $HTTP_USER_AGENT;
if (stristr($ua, "Windows CE") or stristr($ua, "AvantGo") or stristr($ua,
"Mazingo") or stristr($ua, "Mobile") or stristr($ua, "T68") or stristr($ua,
"Syncalot") or stristr($ua, "Blazer") or stristr($ua, "NetFront"))
{
$DEVICE_TYPE="MOBILE";
}
if (isset($DEVICE_TYPE) and $DEVICE_TYPE=="MOBILE")
{
$location='http://pda.thrillnetwork.net/';
header ('Location: '.$location);
exit;
}
We have this running on our beta test site. We will be releasing the live site in the next few days. If you want to see the code working send me a PM and we can talk. Thanks.
|
| |
|
|
|