function geoip_country_id_by_addr in GeoIP API 7
Same name and namespace in other branches
- 6 lib/geoip.inc \geoip_country_id_by_addr()
3 calls to geoip_country_id_by_addr()
- geoip_country_code_by_addr in lib/
geoip.inc - geoip_country_id_by_name in lib/
geoip.inc - geoip_country_name_by_addr in lib/
geoip.inc
File
- lib/
geoip.inc, line 386
Code
function geoip_country_id_by_addr($gi, $addr) {
$ipnum = ip2long($addr);
return _geoip_seek_country($gi, $ipnum) - GEOIP_COUNTRY_BEGIN;
}