$answer = new SimpleXMLElement($d);
}
- $country_code = $answer->CountryCode;
+ $country_code = strtolower($answer->CountryCode);
$country_name = $answer->CountryName;
$region_name = $answer->RegionName;
$city = $answer->City;
$ip = $_SERVER['REMOTE_ADDR'];
$ip_data = locateIp($ip);
+$country_code = $ip_data['country_code'];
if ($ip_data == false ) {
$fileName = "../manual/manual.conf" ;
}
}
-/*
+
echo "conf file is [".$fileName."]" ;
echo "IP : " . $ip_data['ip'] . "\n";
echo "Timezone : " . $ip_data['timezone'] . "\n";
echo "GmtOffset : " . $ip_data['gmtoffset'] . "\n";
echo "DstOffset : " . $ip_data['dstoffset'] . "\n";
-*/
-// echo "##################################\n" ;
+
+ echo "##################################\n" ;
echo file_get_contents ($fileName);
-// echo "##################################\n" ;
+ echo "##################################\n" ;
?>