You are here

function geoip_country_id_by_addr in Smart IP 6.2

Same name and namespace in other branches
  1. 7.2 includes/geoip.inc \geoip_country_id_by_addr()
2 calls to geoip_country_id_by_addr()
geoip_country_code_by_addr in includes/geoip.inc
geoip_country_name_by_addr in includes/geoip.inc

File

includes/geoip.inc, line 532

Code

function geoip_country_id_by_addr($gi, $addr) {
  $ipnum = ip2long($addr);
  return _geoip_seek_country($gi, $ipnum) - GEOIP_COUNTRY_BEGIN;
}