/var/www/html/protected/components/BaseController.php(50)
38 $this->isMainSite = $site->is_main == 1; 39 $this->personalyList = Personaly::getActiveList(); 40 41 shuffle($this->personalyList); 42 43 $this->initiativeCategory = InitiativeArticleCategory::getUsedInitiativeCategories(); 44 45 $this->sitesList = Site::model()->findAll([ 46 'condition' => 't.name NOT LIKE \'http%\'', 47 'order' => 't.is_main DESC, name', 48 ]); 49 50 if (Yii::app()->user->getState('chronicle') === null) { 51 Yii::app()->user->setState('chronicle', 1); 52 } 53 54 if ($this->isMainSite) { 55 $this->specialRegionNewsList = Article::model()->with(['newsInfo', 'newsInfo.site'])->findAll([ 56 'condition' => 't.status = "published" AND t.is_verified = "1" AND t.type = "news" AND newsInfo.site_id != :site_id AND newsInfo.on_main_site = "1"', 57 'params' => [':site_id' => $this->currentSiteId], 58 'order' => 'newsInfo.starting_date DESC', 59 'limit' => 10, 60 ]); 61 } else { 62 $this->specialRegionNewsList = Article::model()->with(['newsInfo', 'newsInfo.site'])->findAll([
#0 |
+
–
/var/www/html/protected/libs/framework/db/CDbCommand.php(433): CDbCommand->queryInternal("fetchColumn", 0, array()) 428 * @return mixed the value of the first column in the first row of the query result. False is returned if there is no value. 429 * @throws CException execution failed 430 */ 431 public function queryScalar($params=array()) 432 { 433 $result=$this->queryInternal('fetchColumn',0,$params); 434 if(is_resource($result) && get_resource_type($result)==='stream') 435 return stream_get_contents($result); 436 else 437 return $result; 438 } |
#1 |
+
–
/var/www/html/protected/libs/framework/web/CDbHttpSession.php(230): CDbCommand->queryScalar() 225 $select='data'; 226 $data=$db->createCommand() 227 ->select($select) 228 ->from($this->sessionTableName) 229 ->where('expire>:expire AND id=:id',array(':expire'=>time(),':id'=>$id)) 230 ->queryScalar(); 231 return $data===false?'':$data; 232 } 233 234 /** 235 * Session write handler. |
#2 |
unknown(0): CDbHttpSession->readSession("04p6ek8okt6njkcjnquqg1rln7")
|
#3 |
+
–
/var/www/html/protected/libs/framework/web/CHttpSession.php(114): session_start() 109 public function open() 110 { 111 if($this->getUseCustomStorage()) 112 @session_set_save_handler(array($this,'openSession'),array($this,'closeSession'),array($this,'readSession'),array($this,'writeSession'),array($this,'destroySession'),array($this,'gcSession')); 113 114 @session_start(); 115 if(YII_DEBUG && session_id()=='') 116 { 117 $message=Yii::t('yii','Failed to start session.'); 118 if(function_exists('error_get_last')) 119 { |
#4 |
+
–
/var/www/html/protected/libs/framework/web/CHttpSession.php(88): CHttpSession->open() 83 public function init() 84 { 85 parent::init(); 86 87 if($this->autoStart) 88 $this->open(); 89 register_shutdown_function(array($this,'close')); 90 } 91 92 /** 93 * Returns a value indicating whether to use custom session storage. |
#5 |
+
–
/var/www/html/protected/libs/framework/base/CModule.php(387): CHttpSession->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 |
#6 |
+
–
/var/www/html/protected/libs/framework/web/CWebApplication.php(201): CModule->getComponent("session") 196 /** 197 * @return CHttpSession the session component 198 */ 199 public function getSession() 200 { 201 return $this->getComponent('session'); 202 } 203 204 /** 205 * @return CWebUser the user session information 206 */ |
#7 |
+
–
/var/www/html/protected/libs/framework/web/auth/CWebUser.php(199): CWebApplication->getSession() 194 * performing cookie-based authentication if enabled, and updating the flash variables. 195 */ 196 public function init() 197 { 198 parent::init(); 199 Yii::app()->getSession()->open(); 200 if($this->getIsGuest() && $this->allowAutoLogin) 201 $this->restoreFromCookie(); 202 elseif($this->autoRenewCookie && $this->allowAutoLogin) 203 $this->renewCookie(); 204 if($this->autoUpdateFlash) |
#8 |
+
–
/var/www/html/protected/libs/framework/base/CModule.php(387): CWebUser->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 |
#9 |
+
–
/var/www/html/protected/libs/framework/base/CModule.php(103): CModule->getComponent("user") 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 /** |
#10 |
+
–
/var/www/html/protected/components/BaseController.php(50): CModule->__get("user") 45 $this->sitesList = Site::model()->findAll([ 46 'condition' => 't.name NOT LIKE \'http%\'', 47 'order' => 't.is_main DESC, name', 48 ]); 49 50 if (Yii::app()->user->getState('chronicle') === null) { 51 Yii::app()->user->setState('chronicle', 1); 52 } 53 54 if ($this->isMainSite) { 55 $this->specialRegionNewsList = Article::model()->with(['newsInfo', 'newsInfo.site'])->findAll([ |
#11 |
+
–
/var/www/html/protected/controllers/SiteController.php(20): BaseController->init() 15 public $bugReportForm; 16 17 public $slogan; 18 19 public function init() { 20 parent::init(); 21 22 if (!Yii::app()->user->isGuest && Yii::app()->user->getState('role') == 'user') { 23 $this->siteUser = User::model()->with(['avatar', 'cityInfo'])->findByPk(Yii::app()->user->id, 'deleted IS NULL'); 24 } elseif (!Yii::app()->user->isGuest && Yii::app()->user->getState('role') == 'admin') { 25 $admin = Admin::model()->with('user')->findByPk(Yii::app()->user->id); |
#12 |
+
–
/var/www/html/protected/libs/framework/web/CWebApplication.php(281): SiteController->init() 276 if(($ca=$this->createController($route))!==null) 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', |
#13 |
+
–
/var/www/html/protected/libs/framework/web/CWebApplication.php(141): CWebApplication->runController("site/newsView") 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. 146 * This method overrides the parent implementation by registering additional core components. |
#14 |
+
–
/var/www/html/protected/libs/framework/base/CApplication.php(180): CWebApplication->processRequest() 175 public function run() 176 { 177 if($this->hasEventHandler('onBeginRequest')) 178 $this->onBeginRequest(new CEvent($this)); 179 register_shutdown_function(array($this,'end'),0,false); 180 $this->processRequest(); 181 if($this->hasEventHandler('onEndRequest')) 182 $this->onEndRequest(new CEvent($this)); 183 } 184 185 /** |
#15 |
+
–
/var/www/html/index.php(17): CApplication->run() 12 defined('YII_DEBUG') or define('YII_DEBUG', Config::$debug); 13 14 require_once ROOT_PATH . '/protected/libs/framework/yii.php' ; 15 $config = ROOT_PATH . '/configs/yii.php'; 16 17 Yii::createWebApplication($config)->run(); |