Source for file function.geoIP.php
Documentation is available at function.geoIP.php
* A smarty plugin to access the GeoIP database.
* @author Christopher Troup <mini@chatetheory.com>
* Provide a wrapper to the GeoIP database.
* @return string The requested field
if ($geoip = @Net_GeoIP::getInstance('./include/GeoLiteCity.dat', Net_GeoIP::STANDARD)) {
if ($location = $geoip->lookupLocation($ip)) {
return $location->$params['field'];
|