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