GeoIP/copy_this/modules/d3/d3geoip/modules/components/d3_oxcmp_cur_geoip.php

43 lines
1.1 KiB
PHP
Raw Normal View History

2012-02-15 14:15:28 +01:00
<?php
2013-04-22 11:40:11 +02:00
/**
* This Software is the property of Data Development and is protected
* by copyright law - it is NOT Freeware.
*
* Any unauthorized use of this software without a valid license
* is a violation of the license agreement and will be prosecuted by
* civil and criminal law.
*
* http://www.shopmodule.com
*
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
* @author D3 Data Development - Daniel Seifert <ds@shopmodule.com>
* @link http://www.oxidmodule.com
*/
2012-02-15 14:15:28 +01:00
class d3_oxcmp_cur_geoip extends d3_oxcmp_cur_geoip_parent
{
private $_sModId = 'd3_geoip';
2013-04-22 11:25:27 +02:00
2013-04-22 11:40:11 +02:00
/**
* @return null
*/
2012-02-15 14:15:28 +01:00
public function init()
{
2013-04-22 11:40:11 +02:00
if (d3_cfg_mod::get($this->_sModId)->isActive())
{
2013-04-22 11:40:11 +02:00
if (d3_cfg_mod::get($this->_sModId)->hasDebugMode())
{
/** @var $oGeoIp d3geoip */
$oGeoIp = oxNew('d3geoip');
echo $oGeoIp->getIP();
}
2013-04-22 11:25:27 +02:00
2013-04-22 11:40:11 +02:00
/** @var $oLocation d3geoip */
$oLocation = oxNew('d3geoip');
$oLocation->setCountryCurrency();
}
2012-02-15 14:15:28 +01:00
return parent::init();
}
2009-12-15 09:52:22 +01:00
}