/var/www/codebase/seehere/common/lib/yii/db/CDbConnection.php(287)
275 throw new CDbException(Yii::t('yii','CDbConnection.connectionString cannot be empty.')); 276 try 277 { 278 Yii::trace('Opening DB connection','system.db.CDbConnection'); 279 $this->_pdo=$this->createPdoInstance(); 280 $this->initConnection($this->_pdo); 281 $this->_active=true; 282 } 283 catch(PDOException $e) 284 { 285 if(YII_DEBUG) 286 { 287 throw new CDbException(Yii::t('yii','CDbConnection failed to open the DB connection: {error}', 288 array('{error}'=>$e->getMessage())),(int)$e->getCode(),$e->errorInfo); 289 } 290 else 291 { 292 Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException'); 293 throw new CDbException(Yii::t('yii','CDbConnection failed to open the DB connection.'),(int)$e->getCode(),$e->errorInfo); 294 } 295 } 296 } 297 } 298 299 /**
#0 |
+
–
/var/www/codebase/seehere/common/lib/yii/db/CDbConnection.php(260): CDbConnection->open() 255 public function setActive($value) 256 { 257 if($value!=$this->_active) 258 { 259 if($value) 260 $this->open(); 261 else 262 $this->close(); 263 } 264 } 265 |
#1 |
+
–
/var/www/codebase/seehere/common/lib/yii/db/CDbConnection.php(238): CDbConnection->setActive(true) 233 */ 234 public function init() 235 { 236 parent::init(); 237 if($this->autoConnect) 238 $this->setActive(true); 239 } 240 241 /** 242 * Returns whether the DB connection is established. 243 * @return boolean whether the DB connection is established |
#2 |
+
–
/var/www/codebase/seehere/common/lib/yii/base/CModule.php(372): CDbConnection->init() 367 if(!isset($config['enabled']) || $config['enabled']) 368 { 369 Yii::trace("Loading \"$id\" application component",'system.CModule'); 370 unset($config['enabled']); 371 $component=Yii::createComponent($config); 372 $component->init(); 373 return $this->_components[$id]=$component; 374 } 375 } 376 } 377 |
#3 |
+
–
/var/www/codebase/seehere/common/lib/yii/web/CDbHttpSession.php(109): CModule->getComponent("db") 104 { 105 if($this->_db!==null) 106 return $this->_db; 107 else if(($id=$this->connectionID)!==null) 108 { 109 if(($this->_db=Yii::app()->getComponent($id)) instanceof CDbConnection) 110 return $this->_db; 111 else 112 throw new CException(Yii::t('yii','CDbHttpSession.connectionID "{id}" is invalid. Please make sure it refers to the ID of a CDbConnection application component.', 113 array('{id}'=>$id))); 114 } |
#4 |
+
–
/var/www/codebase/seehere/common/lib/yii/web/CDbHttpSession.php(131): CDbHttpSession->getDbConnection() 126 * @param string $sessionName session name 127 * @return boolean whether session is opened successfully 128 */ 129 public function openSession($savePath,$sessionName) 130 { 131 $db=$this->getDbConnection(); 132 $db->setActive(true); 133 134 if($this->autoCreateSessionTable) 135 { 136 $sql="DELETE FROM {$this->sessionTableName} WHERE expire<".time(); |
#5 |
unknown(0): CDbHttpSession->openSession("/var/lib/php5/sessions", "PHPSESSID")
|
#6 |
+
–
/var/www/codebase/seehere/common/lib/yii/web/CHttpSession.php(100): session_start() 095 */ 096 public function open() 097 { 098 if($this->getUseCustomStorage()) 099 @session_set_save_handler(array($this,'openSession'),array($this,'closeSession'),array($this,'readSession'),array($this,'writeSession'),array($this,'destroySession'),array($this,'gcSession')); 100 @session_start(); 101 } 102 103 /** 104 * Ends the current session and store session data. 105 */ |
#7 |
+
–
/var/www/codebase/seehere/common/lib/yii/web/CHttpSession.php(75): CHttpSession->open() 70 */ 71 public function init() 72 { 73 parent::init(); 74 if($this->autoStart) 75 $this->open(); 76 register_shutdown_function(array($this,'close')); 77 } 78 79 /** 80 * Returns a value indicating whether to use custom session storage. |
#8 |
+
–
/var/www/codebase/seehere/common/lib/yii/base/CModule.php(372): CHttpSession->init() 367 if(!isset($config['enabled']) || $config['enabled']) 368 { 369 Yii::trace("Loading \"$id\" application component",'system.CModule'); 370 unset($config['enabled']); 371 $component=Yii::createComponent($config); 372 $component->init(); 373 return $this->_components[$id]=$component; 374 } 375 } 376 } 377 |
#9 |
+
–
/var/www/codebase/seehere/common/lib/yii/web/CWebApplication.php(181): CModule->getComponent("session") 176 /** 177 * @return CHttpSession the session component 178 */ 179 public function getSession() 180 { 181 return $this->getComponent('session'); 182 } 183 184 /** 185 * @return CWebUser the user session information 186 */ |
#10 |
+
–
/var/www/codebase/seehere/common/lib/yii/web/auth/CWebUser.php(163): CWebApplication->getSession() 158 * performing cookie-based authentication if enabled, and updating the flash variables. 159 */ 160 public function init() 161 { 162 parent::init(); 163 Yii::app()->getSession()->open(); 164 if($this->getIsGuest() && $this->allowAutoLogin) 165 $this->restoreFromCookie(); 166 else if($this->autoRenewCookie && $this->allowAutoLogin) 167 $this->renewCookie(); 168 $this->updateFlash(); |
#11 |
+
–
/var/www/codebase/seehere/common/lib/yii/base/CModule.php(372): CWebUser->init() 367 if(!isset($config['enabled']) || $config['enabled']) 368 { 369 Yii::trace("Loading \"$id\" application component",'system.CModule'); 370 unset($config['enabled']); 371 $component=Yii::createComponent($config); 372 $component->init(); 373 return $this->_components[$id]=$component; 374 } 375 } 376 } 377 |
#12 |
+
–
/var/www/codebase/seehere/common/lib/yii/web/CWebApplication.php(189): CModule->getComponent("user") 184 /** 185 * @return CWebUser the user session information 186 */ 187 public function getUser() 188 { 189 return $this->getComponent('user'); 190 } 191 192 /** 193 * Returns the view renderer. 194 * If this component is registered and enabled, the default |
#13 |
+
–
/var/www/codebase/seehere/common/lib/yii/web/auth/CAccessControlFilter.php(109): CWebApplication->getUser() 104 */ 105 protected function preFilter($filterChain) 106 { 107 $app=Yii::app(); 108 $request=$app->getRequest(); 109 $user=$app->getUser(); 110 $verb=$request->getRequestType(); 111 $ip=$request->getUserHostAddress(); 112 113 foreach($this->getRules() as $rule) 114 { |
#14 |
+
–
/var/www/codebase/seehere/common/lib/yii/web/filters/CFilter.php(39): CAccessControlFilter->preFilter(CFilterChain) 34 * if the action should be executed. 35 * @param CFilterChain $filterChain the filter chain that the filter is on. 36 */ 37 public function filter($filterChain) 38 { 39 if($this->preFilter($filterChain)) 40 { 41 $filterChain->run(); 42 $this->postFilter($filterChain); 43 } 44 } |
#15 |
+
–
/var/www/codebase/seehere/common/lib/yii/web/CController.php(1088): CFilter->filter(CFilterChain) 1083 */ 1084 public function filterAccessControl($filterChain) 1085 { 1086 $filter=new CAccessControlFilter; 1087 $filter->setRules($this->accessRules()); 1088 $filter->filter($filterChain); 1089 } 1090 1091 /** 1092 * Generates pagination information. 1093 * This method can be used to generate pagination information given item count |
#16 |
+
–
/var/www/codebase/seehere/common/lib/yii/web/filters/CInlineFilter.php(59): CController->filterAccessControl(CFilterChain) 54 * @param CFilterChain $filterChain the filter chain that the filter is on. 55 */ 56 public function filter($filterChain) 57 { 58 $method='filter'.$this->name; 59 $filterChain->controller->$method($filterChain); 60 } 61 } |
#17 |
+
–
/var/www/codebase/seehere/common/lib/yii/web/filters/CFilterChain.php(130): CInlineFilter->filter(CFilterChain) 125 { 126 if($this->offsetExists($this->filterIndex)) 127 { 128 $filter=$this->itemAt($this->filterIndex++); 129 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 130 $filter->filter($this); 131 } 132 else 133 $this->controller->runAction($this->action); 134 } 135 } |
#18 |
+
–
/var/www/codebase/seehere/common/lib/yii/web/CController.php(283): CFilterChain->run() 278 $this->runAction($action); 279 else 280 { 281 $priorAction=$this->_action; 282 $this->_action=$action; 283 CFilterChain::create($this,$action,$filters)->run(); 284 $this->_action=$priorAction; 285 } 286 } 287 288 /** |
#19 |
+
–
/var/www/codebase/seehere/common/lib/yii/web/CController.php(257): CController->runActionWithFilters(CInlineAction, array("accessControl")) 252 { 253 if(($parent=$this->getModule())===null) 254 $parent=Yii::app(); 255 if($parent->beforeControllerAction($this,$action)) 256 { 257 $this->runActionWithFilters($action,$this->filters()); 258 $parent->afterControllerAction($this,$action); 259 } 260 } 261 else 262 $this->missingAction($actionID); |
#20 |
+
–
/var/www/codebase/seehere/common/lib/yii/web/CWebApplication.php(328): CController->run("index") 323 { 324 list($controller,$actionID)=$ca; 325 $oldController=$this->_controller; 326 $this->_controller=$controller; 327 $controller->init(); 328 $controller->run($actionID); 329 $this->_controller=$oldController; 330 } 331 else 332 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 333 array('{route}'=>$route===''?$this->defaultController:$route))); |
#21 |
+
–
/var/www/codebase/seehere/common/lib/yii/web/CWebApplication.php(121): CWebApplication->runController("listing/index") 116 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 117 $_GET[$name]=$value; 118 } 119 else 120 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 121 $this->runController($route); 122 } 123 124 /** 125 * Registers the core application components. 126 * This method overrides the parent implementation by registering additional core components. |
#22 |
+
–
/var/www/codebase/seehere/common/lib/yii/base/CApplication.php(155): CWebApplication->processRequest() 150 */ 151 public function run() 152 { 153 if($this->hasEventHandler('onBeginRequest')) 154 $this->onBeginRequest(new CEvent($this)); 155 $this->processRequest(); 156 if($this->hasEventHandler('onEndRequest')) 157 $this->onEndRequest(new CEvent($this)); 158 } 159 160 /** |
#23 |
+
–
/var/www/codebase/seehere/frontend/www/index.php(19): CApplication->run() 14 $config=$root.'/config/main-local.php'; 15 16 require_once($common.'/lib/yii/yii.php'); 17 require_once($common.'/lib/global.php'); 18 19 Yii::createWebApplication($config)->run(); 20 21 |