/home/w/webarena8a/favorite.su/public_html/protected/modules/lang/models/Lang.php(434)
422 if(isFree()){ 423 return array(Yii::app()->language); 424 } else { 425 return array('ru', 'en', 'de', 'es', 'ar'); 426 } 427 } 428 429 if (!isset(self::$_activeLangs) || $requery) { 430 $sql = "SELECT isRTL, priceDecimalsPoint, priceThousandsSeparator, id, name_iso, flag_img, main, name_" . Yii::app()->language . " AS name, name_rfc3066, currency_id, price_tpl_default, price_tpl_from, price_tpl_to 431 FROM {{lang}} 432 WHERE active=1 433 ORDER BY sorter ASC"; 434 $activeLangs = Yii::app()->db->createCommand($sql)->queryAll(); 435 436 // Загружаем данные актвных языков и определяем главный ( дефолтный ) 437 438 foreach ($activeLangs as $lang) { 439 self::$_activeLangs[$lang['name_iso']] = $lang['name_iso']; 440 self::$_activeLangsFull[$lang['name_iso']] = $lang; 441 self::$_activeLangsTranslated[$lang['name_iso']] = $lang['name']; 442 self::$_activeLangsTranslated[$lang['name_iso']] = $lang['name_rfc3066']; 443 444 if ($lang['main']) { 445 self::$_mainLang = $lang['name_iso']; 446 }
#0 |
+
–
/home/w/webarena8a/favorite.su/public_html/framework/db/CDbConnection.php(347): CDbConnection->open() 342 public function setActive($value) 343 { 344 if($value!=$this->_active) 345 { 346 if($value) 347 $this->open(); 348 else 349 $this->close(); 350 } 351 } 352 |
#1 |
+
–
/home/w/webarena8a/favorite.su/public_html/framework/db/CDbConnection.php(325): CDbConnection->setActive(true) 320 */ 321 public function init() 322 { 323 parent::init(); 324 if($this->autoConnect) 325 $this->setActive(true); 326 } 327 328 /** 329 * Returns whether the DB connection is established. 330 * @return boolean whether the DB connection is established |
#2 |
+
–
/home/w/webarena8a/favorite.su/public_html/framework/base/CModule.php(394): CDbConnection->init() 389 if(!isset($config['enabled']) || $config['enabled']) 390 { 391 Yii::trace("Loading \"$id\" application component",'system.CModule'); 392 unset($config['enabled']); 393 $component=Yii::createComponent($config); 394 $component->init(); 395 return $this->_components[$id]=$component; 396 } 397 } 398 } 399 |
#3 |
+
–
/home/w/webarena8a/favorite.su/public_html/framework/base/CModule.php(103): CModule->getComponent("db") 098 * @return mixed the named property value 099 */ 100 public function __get($name) 101 { 102 if($this->hasComponent($name)) 103 return $this->getComponent($name); 104 else 105 return parent::__get($name); 106 } 107 108 /** |
#4 |
+
–
/home/w/webarena8a/favorite.su/public_html/protected/modules/lang/models/Lang.php(434): CModule->__get("db") 429 if (!isset(self::$_activeLangs) || $requery) { 430 $sql = "SELECT isRTL, priceDecimalsPoint, priceThousandsSeparator, id, name_iso, flag_img, main, name_" . Yii::app()->language . " AS name, name_rfc3066, currency_id, price_tpl_default, price_tpl_from, price_tpl_to 431 FROM {{lang}} 432 WHERE active=1 433 ORDER BY sorter ASC"; 434 $activeLangs = Yii::app()->db->createCommand($sql)->queryAll(); 435 436 // Загружаем данные актвных языков и определяем главный ( дефолтный ) 437 438 foreach ($activeLangs as $lang) { 439 self::$_activeLangs[$lang['name_iso']] = $lang['name_iso']; |
#5 |
+
–
/home/w/webarena8a/favorite.su/public_html/protected/components/CustomUrlManager.php(26): Lang::getActiveLangs() 21 class CustomUrlManager extends CUrlManager { 22 private $langRoute; 23 private $isInstalled = false; 24 25 public function init() { 26 $langs = Lang::getActiveLangs(); 27 $defaultLang = Lang::getDefaultLang(); 28 $this->isInstalled = oreInstall::isInstalled(); 29 30 $keyDefault = array_search($defaultLang, $langs); 31 if($keyDefault !== false && $this->isInstalled){ |
#6 |
+
–
/home/w/webarena8a/favorite.su/public_html/framework/base/CModule.php(394): CustomUrlManager->init() 389 if(!isset($config['enabled']) || $config['enabled']) 390 { 391 Yii::trace("Loading \"$id\" application component",'system.CModule'); 392 unset($config['enabled']); 393 $component=Yii::createComponent($config); 394 $component->init(); 395 return $this->_components[$id]=$component; 396 } 397 } 398 } 399 |
#7 |
+
–
/home/w/webarena8a/favorite.su/public_html/framework/base/CApplication.php(531): CModule->getComponent("urlManager") 526 * Returns the URL manager component. 527 * @return CUrlManager the URL manager component 528 */ 529 public function getUrlManager() 530 { 531 return $this->getComponent('urlManager'); 532 } 533 534 /** 535 * Returns the formatter component. 536 * @return CFormatter the formatter component |
#8 |
+
–
/home/w/webarena8a/favorite.su/public_html/framework/web/CWebApplication.php(140): CApplication->getUrlManager() 135 $route=$this->catchAllRequest[0]; 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. |
#9 |
+
–
/home/w/webarena8a/favorite.su/public_html/framework/base/CApplication.php(185): CWebApplication->processRequest() 180 public function run() 181 { 182 if($this->hasEventHandler('onBeginRequest')) 183 $this->onBeginRequest(new CEvent($this)); 184 register_shutdown_function(array($this,'end'),0,false); 185 $this->processRequest(); 186 if($this->hasEventHandler('onEndRequest')) 187 $this->onEndRequest(new CEvent($this)); 188 } 189 190 /** |
#10 |
+
–
/home/w/webarena8a/favorite.su/public_html/index.php(23): CApplication->run() 18 19 define('ALREADY_INSTALL_FILE', ROOT_PATH . DIRECTORY_SEPARATOR . 'protected' . DIRECTORY_SEPARATOR 20 . 'runtime' . DIRECTORY_SEPARATOR . 'already_install'); 21 22 require_once($yii); 23 Yii::createWebApplication($config)->run(); |