XtGem Forum catalog
0) { $ub="PC"; } else if(strpos(strtoupper($HTTP_ACCEPT),"XHTML+XML") > 0) { $ub="PC"; } //Check for Mozilla else if(stristr($userBrowser, 'Mozilla')) { $ub="PC"; } //Check for msie else if(stristr($userBrowser, 'msie')) { $ub="PC"; } //Check for IE else if(stristr($userBrowser, 'internet explorer')) { $ub="PC"; } //Check for opera else if(stristr($userBrowser, 'opera')) { $ub="pc"; } //Check for Opera else if(stristr($userBrowser, 'Opera')) { $ub="pc"; } else { $ub="WML"; } if($ub == "PC") { header("Location: ".$htmllink); exit; } else { header("Location: ".$wmllink); exit; } ?>