You are here

function geoip_name_by_addr in Smart IP 7.2

Same name and namespace in other branches
  1. 6.2 includes/geoip.inc \geoip_name_by_addr()
1 call to geoip_name_by_addr()
geoip_org_by_addr in includes/geoip.inc

File

includes/geoip.inc, line 724

Code

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