GeoIP/copy_this/modules/d3_geoip/views/d3_oxcmp_cur_geoip.php

22 lines
503 B
PHP
Raw Normal View History

<?php
2009-12-15 09:52:22 +01:00
class d3_oxcmp_cur_geoip extends d3_oxcmp_cur_geoip_parent
{
private $_sModId = 'd3_geoip';
2009-12-15 09:52:22 +01:00
public function init()
{
if (d3_cfg_mod::get($this->_sModId)->getValue('blDebugmodeGlobal'))
{
$oGeoIp = oxNew('d3geoip');
echo $oGeoIp->getIP();
}
$oLocation = oxNew('d3geoip');
2009-12-15 10:05:46 +01:00
//$oLocation->setUserCountry();
2009-12-15 09:52:22 +01:00
$oLocation->setCountryCurrency();
return parent::init();
}
}