function geoip_org_by_addr in GeoIP API 6
Same name and namespace in other branches
- 7 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);
}