Source for file LUrlKeeper.php
Documentation is available at LUrlKeeper.php
* @license http://opensource.org/licenses/mozilla1.1.php Mozilla Public License
* @copyright 2005, diemeisterei GmbH. All rights reserved.
* @author $Author: schmunk $
* @version $Revision: 1 $ $Date: 2006-06-01 15:11:24 +0000 (Do, 01 Jun 2006) $
* @package Phundament.Components
public function init($config)
#echo $this->Request->RequestUri;
$culture= $config->getElementByTagName("culture");
$pattern= $culture->getAttribute("pattern");
$param= $culture->getAttribute("param");
$url= $this->Request-> $param;
if ($this->Application->Globalization->Culture != $match[1])
Prado :: log("Switching culture to '" . $match[1] . "'", TLogger :: DEBUG, "Lithron.LUrlKeeper");
$this->Session['Culture']= $match[1];
$this->getApplication()->getGlobalization()->Culture= $match[1];
$this->Session['LGeoIP_OverrideIp']= "127.0.0.1";
Prado :: log("Using GeoIp for INT", TLogger :: DEBUG, "Lithron.LUrlKeeper");
#$this->Application->getModule('geo_ip')->init(null);
|