Source for file Geoip.php
Documentation is available at Geoip.php
* DotBoost Technologies Inc.
* DotKernel Application Framework
* @copyright Copyright (c) 2009 DotBoost Technologies (http://www.dotboost.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* @version $Id: Geoip.php 153 2010-06-23 10:06:25Z teo $
* @author DotKernel Team <team@dotkernel.com>
* Return an array with : short name, like 'us' and long name, like 'United States'
$this->config = Zend_Registry::get('configuration');
* Return an array with : short name, like 'us' and long name, like 'United States'
// GeoIp extension is not active
$geoipPath = 'externals/geoip/';
$country = $api->getCountryByAddr($geoipPath, $ip);
$country[0] = geoip_country_code_by_name ($ip);
$country[1] = geoip_country_name_by_name($ip);
|