';
echo '';
echo sprintf('',$redirectPage);
echo 'Loading.....
';
echo '';
echo '';
echo '';
echo '';
exit;
}
if($uagent_obj->DetectMobileQuick()){
function AutoRedirectToProperHomePage()
{
global $uagent_obj, $iphoneTierHomePage, $genericMobileDeviceHomePage, $desktopHomePage, $androidDevice;
//We have variables for certain high-usage device variables, like the iPhone Tier.
// You might use the device variables to show/hide certain functionality or platform-specific features and ads, etc.
// Alternately, you can use the method: DetectTierIphone().
// Sometimes, you may wish to include the Tablet Tier devices here, as well.
if ($uagent_obj->isTierIphone == $uagent_obj->true) {
JavascriptHeader($iphoneTierHomePage);
}
else if($uagent_obj->isAndroidPhone == $uagent_obj->true){
JavascriptHeader($androidDevice);
}
//We can generally use the Quick Mobile detection method to save a couple of cycles.
else if ($uagent_obj->DetectMobileQuick() == $uagent_obj->true) {
JavascriptHeader($genericMobileDeviceHomePage);
}
//We'll assume that anything else not caught in the above filters is a desktop-class device.
// (Which can include tablets.)
else {
JavascriptHeader($desktopHomePage);
}
}
AutoRedirectToProperHomePage();
}
//Now, we can call the redirect function.
?>