You are here

function GeoIP_record_by_addr in Smart IP 7.2

Same name and namespace in other branches
  1. 6.2 includes/geoipcity.inc \GeoIP_record_by_addr()

File

includes/geoipcity.inc, line 229

Code

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