View file Bizzar.WAP.Detection.php

File size: 702B
<?
// Sample borrowed from: http://www.alexking.org/blog/2003/05/04/mobile-browser-detection/
$wmlredirect = "http://www.5jb.net";// Your wapsite
$htmlredirect = "http://www.bizzarscripts.net";// Your website

// Get browser ID
$browser=substr(trim($HTTP_USER_AGENT),0,4);

// Identify Web Browsers
 if($browser=="Mozi") // Mozilla, Internet Explorer 6 & Opera 7

    {
        $br = "HTML"; // Identify the above as Web Browsers
    }
    else 
    {
        $br = "WML"; // Identify balance as Wap Devices/Emulators
    }

if($br == "HTML") {
    header("Location: ".$htmlredirect);
    exit;
    }
    else 
    {
    header("Location: ".$wmlredirect);
    exit;
    }
?>