$addr = getenv("REMOTE_ADDR"); $ip = sprintf("%u", ip2long($addr)); $country_query = "SELECT * FROM tbl_ips ". "WHERE ip_from<='".$ip."' ". "AND ip_to>='".$ip."'"; $country_exec = mysql_query($country_query); $ccode_array=mysql_fetch_array($country_exec); $country_name=$ccode_array['country_code2']; if ($country_name == "PK" || $country_name == "HK") { if (ch_session('login_MOG_auth') == "Yes") { }else{ header("Location: auth.php"); die; } } ?>
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||