You are here

function geoip_region_by_addr in Smart IP 6.2

Same name and namespace in other branches
  1. 7.2 includes/geoip.inc \geoip_region_by_addr()

File

includes/geoip.inc, line 767

Code

function geoip_region_by_addr($gi, $addr) {
  if ($addr == NULL) {
    return 0;
  }
  $ipnum = ip2long($addr);
  return _get_region($gi, $ipnum);
}