/var/www/lstgroup/data/www/lst-group.ru/protected/components/GeoParam.php(225)
213 //$cookie->expire = time()+60*60*24; 214 Yii::app()->request->cookies['domainID'] = $cookie; 215 } 216 217 if ($model->redirect) { 218 //перенаправление 219 $regions = NewStates::model()->findByPk($model->stateID); 220 header('HTTP/1.1 301 Moved Permanently'); 221 header('Location: http://'.$regions->stateDomain.'.lst-group'.$this->zone.$_SERVER['REQUEST_URI']); 222 exit(); 223 } 224 225 $model->name = 'city'; 226 $this->module = 'geoLocation'; 227 } 228 } 229 if($model and $model->active == 1){ 230 if(!$model->langDefault){ 231 //$country = NewCountries::model()->findByPk($model->countryID, array('select'=>'langPack, langDefault')); 232 233 if(empty($country)) 234 $country = NewCountries::model()->findByAttributes(array('countryDomain'=>'lst-group'.$zone), array('select'=>'countryID, h1, currencyType, langPack, langDefault, YandexCode, GoogleCode, textCounter')); 235 236 if($country->countryID != $model->countryID){ 237 header("HTTP/1.0 404 Not Found");
#0 |
+
–
/var/www/lstgroup/data/www/framework/base/CModule.php(387): GeoParam->init() 382 if(!isset($config['enabled']) || $config['enabled']) 383 { 384 Yii::trace("Loading \"$id\" application component",'system.CModule'); 385 unset($config['enabled']); 386 $component=Yii::createComponent($config); 387 $component->init(); 388 return $this->_components[$id]=$component; 389 } 390 } 391 } 392 |
#1 |
+
–
/var/www/lstgroup/data/www/framework/base/CModule.php(523): CModule->getComponent("GeoParam") 518 * Loads static application components. 519 */ 520 protected function preloadComponents() 521 { 522 foreach($this->preload as $id) 523 $this->getComponent($id); 524 } 525 526 /** 527 * Preinitializes the module. 528 * This method is called at the beginning of the module constructor. |
#2 |
+
–
/var/www/lstgroup/data/www/framework/base/CApplication.php(163): CModule->preloadComponents() 158 $this->initSystemHandlers(); 159 $this->registerCoreComponents(); 160 161 $this->configure($config); 162 $this->attachBehaviors($this->behaviors); 163 $this->preloadComponents(); 164 165 $this->init(); 166 } 167 168 |
#3 |
+
–
/var/www/lstgroup/data/www/framework/YiiBase.php(127): CApplication->__construct("/var/www/lstgroup/data/www/lst-group.ru/protected/config/main.ph...") 122 * to the constructor of the application class. 123 * @return mixed the application instance 124 */ 125 public static function createApplication($class,$config=null) 126 { 127 return new $class($config); 128 } 129 130 /** 131 * Returns the application singleton or null if the singleton has not been created yet. 132 * @return CApplication the application singleton, null if the singleton has not been created yet. |
#4 |
+
–
/var/www/lstgroup/data/www/framework/YiiBase.php(100): YiiBase::createApplication("CWebApplication", "/var/www/lstgroup/data/www/lst-group.ru/protected/config/main.ph...") 095 * If not, the directory will be defaulted to 'protected'. 096 * @return CWebApplication 097 */ 098 public static function createWebApplication($config=null) 099 { 100 return self::createApplication('CWebApplication',$config); 101 } 102 103 /** 104 * Creates a console application instance. 105 * @param mixed $config application configuration. |
#5 |
+
–
/var/www/lstgroup/data/www/lst-group.ru/index.php(17): YiiBase::createWebApplication("/var/www/lstgroup/data/www/lst-group.ru/protected/config/main.ph...") 12 define('HOST_SITE', "lst-group.ru"); 13 // remove the following line when in production mode 14 defined('YII_DEBUG') or define('YII_DEBUG', true); 15 16 require_once($yii); 17 Yii::createWebApplication($config)->run(); 18 19 //exit(include_show()); 20 ?> |