if (substr(getenv('HTTP_HOST'),0,3) != 'www') { header('HTTP/1.1 301 Moved Permanently'); header('Location:http://www.'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); } include("ip2c/get_ip.php"); $ip2c=new ip2country(); if($ip2c->get_country_code()=="TH"){ if($_GET["pass"]!="Admin"){ //header( "HTTP/1.1 301 Moved Permanently" ); //header( "Location: http://itailor.info" ); } } ?>