function geoip_org_by_addr in GeoIP API 7
Same name and namespace in other branches
- 6 lib/geoip.inc \geoip_org_by_addr()
File
- lib/
geoip.inc, line 485
Code
function geoip_org_by_addr($gi, $addr) {
if ($addr == NULL) {
return 0;
}
$ipnum = ip2long($addr);
return _get_org($gi, $ipnum);
}