function GetGet ($varName, $defValue="") {return (isset($_GET[$varName]) ? $_GET[$varName] : $defValue);} function IsPDA () { // determine if this is on a PDA (blackberry, iphone, etc) $browser = strtolower(getenv("HTTP_USER_AGENT")); if (strpos($browser, 'iphone') !== false) return (true); if (strpos($browser, 'ipad') !== false) return (true); if (strpos($browser, 'blackberry') !== false) return (true); return (false); } function Redirect ($url) { // redirect header("Location: " . $url); exit(); } // echo (getenv("HTTP_USER_AGENT")); exit; if (IsPDA ()) Redirect ('http://leftbrain.us/website.php?tid=home&nf'); ?>