function geoip_region_by_addr in GeoIP API 6
Same name and namespace in other branches
- 7 lib/geoip.inc \geoip_region_by_addr()
File
- lib/
geoip.inc, line 524
Code
function geoip_region_by_addr($gi, $addr) {
if ($addr == NULL) {
return 0;
}
$ipnum = ip2long($addr);
return _get_region($gi, $ipnum);
}