/home/uahorses/public_html/framework/db/CDbConnection.php(381)
369 throw new CDbException('CDbConnection.connectionString cannot be empty.'); 370 try 371 { 372 Yii::trace('Opening DB connection','system.db.CDbConnection'); 373 $this->_pdo=$this->createPdoInstance(); 374 $this->initConnection($this->_pdo); 375 $this->_active=true; 376 } 377 catch(PDOException $e) 378 { 379 if(YII_DEBUG) 380 { 381 throw new CDbException('CDbConnection failed to open the DB connection: '. 382 $e->getMessage(),(int)$e->getCode(),$e->errorInfo); 383 } 384 else 385 { 386 Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException'); 387 throw new CDbException('CDbConnection failed to open the DB connection.',(int)$e->getCode(),$e->errorInfo); 388 } 389 } 390 } 391 } 392 393 /**
#0 |
+
–
/home/uahorses/public_html/framework/db/CDbConnection.php(330): CDbConnection->open() 325 public function setActive($value) 326 { 327 if($value!=$this->_active) 328 { 329 if($value) 330 $this->open(); 331 else 332 $this->close(); 333 } 334 } 335 |
#1 |
+
–
/home/uahorses/public_html/framework/db/CDbConnection.php(308): CDbConnection->setActive(true) 303 */ 304 public function init() 305 { 306 parent::init(); 307 if($this->autoConnect) 308 $this->setActive(true); 309 } 310 311 /** 312 * Returns whether the DB connection is established. 313 * @return boolean whether the DB connection is established |
#2 |
+
–
/home/uahorses/public_html/framework/base/CModule.php(387): CDbConnection->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 |
#3 |
+
–
/home/uahorses/public_html/framework/web/auth/CDbAuthManager.php(589): CModule->getComponent("db") 584 */ 585 protected function getDbConnection() 586 { 587 if($this->db!==null) 588 return $this->db; 589 elseif(($this->db=Yii::app()->getComponent($this->connectionID)) instanceof CDbConnection) 590 return $this->db; 591 else 592 throw new CException(Yii::t('yii','CDbAuthManager.connectionID "{id}" is invalid. Please make sure it refers to the ID of a CDbConnection application component.', 593 array('{id}'=>$this->connectionID))); 594 } |
#4 |
+
–
/home/uahorses/public_html/framework/web/auth/CDbAuthManager.php(59): CDbAuthManager->getDbConnection() 54 * This method overrides the parent implementation by establishing the database connection. 55 */ 56 public function init() 57 { 58 parent::init(); 59 $this->_usingSqlite=!strncmp($this->getDbConnection()->getDriverName(),'sqlite',6); 60 } 61 62 /** 63 * Performs access check for the specified user. 64 * @param string $itemName the name of the operation that need access check |
#5 |
+
–
/home/uahorses/public_html/framework/base/CModule.php(387): CDbAuthManager->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 |
+
–
/home/uahorses/public_html/framework/web/CWebApplication.php(185): CModule->getComponent("authManager") 180 /** 181 * @return IAuthManager the authorization manager component 182 */ 183 public function getAuthManager() 184 { 185 return $this->getComponent('authManager'); 186 } 187 188 /** 189 * @return CAssetManager the asset manager component 190 */ |
#7 |
+
–
/home/uahorses/public_html/framework/web/auth/CWebUser.php(806): CWebApplication->getAuthManager() 801 public function checkAccess($operation,$params=array(),$allowCaching=true) 802 { 803 if($allowCaching && $params===array() && isset($this->_access[$operation])) 804 return $this->_access[$operation]; 805 806 $access=Yii::app()->getAuthManager()->checkAccess($operation,$this->getId(),$params); 807 if($allowCaching && $params===array()) 808 $this->_access[$operation]=$access; 809 810 return $access; 811 } |
#8 |
+
–
/home/uahorses/public_html/protected/modules/rights/components/RWebUser.php(43): CWebUser->checkAccess("Ad.*", array(), true) 38 * @return boolean whether the operations can be performed by this user. 39 */ 40 public function checkAccess($operation, $params=array(), $allowCaching=true) 41 { 42 // Allow superusers access implicitly and do CWebUser::checkAccess for others. 43 return $this->isSuperuser===true ? true : parent::checkAccess($operation, $params, $allowCaching); 44 } 45 46 /** 47 * @param boolean $value whether the user is a superuser. 48 */ |
#9 |
+
–
/home/uahorses/public_html/protected/modules/rights/components/RightsFilter.php(43): RWebUser->checkAccess("Ad.*") 38 39 // Append the controller id to the authorization item name 40 $authItem .= ucfirst($controller->id); 41 42 // Check if user has access to the controller 43 if( $user->checkAccess($authItem.'.*')!==true ) 44 { 45 // Append the action id to the authorization item name 46 $authItem .= '.'.ucfirst($action->id); 47 48 // Check if the user has access to the controller action |
#10 |
+
–
/home/uahorses/public_html/framework/web/filters/CFilter.php(38): RightsFilter->preFilter(CFilterChain) 33 * if the action should be executed. 34 * @param CFilterChain $filterChain the filter chain that the filter is on. 35 */ 36 public function filter($filterChain) 37 { 38 if($this->preFilter($filterChain)) 39 { 40 $filterChain->run(); 41 $this->postFilter($filterChain); 42 } 43 } |
#11 |
+
–
/home/uahorses/public_html/protected/modules/rights/components/RController.php(40): CFilter->filter(CFilterChain) 35 */ 36 public function filterRights($filterChain) 37 { 38 $filter = new RightsFilter; 39 $filter->allowedActions = $this->allowedActions(); 40 $filter->filter($filterChain); 41 } 42 43 /** 44 * @return string the actions that are always allowed separated by commas. 45 */ |
#12 |
+
–
/home/uahorses/public_html/framework/web/filters/CInlineFilter.php(58): RController->filterRights(CFilterChain) 53 * @param CFilterChain $filterChain the filter chain that the filter is on. 54 */ 55 public function filter($filterChain) 56 { 57 $method='filter'.$this->name; 58 $filterChain->controller->$method($filterChain); 59 } 60 } |
#13 |
+
–
/home/uahorses/public_html/framework/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 } |
#14 |
+
–
/home/uahorses/public_html/framework/web/CController.php(291): CFilterChain->run() 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); 292 $this->_action=$priorAction; 293 } 294 } 295 296 /** |
#15 |
+
–
/home/uahorses/public_html/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array("rights")) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#16 |
+
–
/home/uahorses/public_html/framework/web/CWebApplication.php(282): CController->run("view") 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}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
#17 |
+
–
/home/uahorses/public_html/framework/web/CWebApplication.php(141): CWebApplication->runController("ad/view") 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. |
#18 |
+
–
/home/uahorses/public_html/framework/base/CApplication.php(169): CWebApplication->processRequest() 164 public function run() 165 { 166 if($this->hasEventHandler('onBeginRequest')) 167 $this->onBeginRequest(new CEvent($this)); 168 register_shutdown_function(array($this,'end'),0,false); 169 $this->processRequest(); 170 if($this->hasEventHandler('onEndRequest')) 171 $this->onEndRequest(new CEvent($this)); 172 } 173 174 /** |
#19 |
+
–
/home/uahorses/public_html/index.php(37): CApplication->run() 32 // specify how many levels of call stack should be shown in each log message 33 defined ( 'YII_TRACE_LEVEL' ) or define ( 'YII_TRACE_LEVEL', 3 ); 34 35 require_once ($yii); 36 37 Yii::createWebApplication ( $config )->run (); 38 39 if (Yii::app ()->user->isGuest && isset ( $_SESSION ['mc'] ['id'] ) && $_SESSION ['mc'] ['id'] != 0) { 40 41 /* простой парсинг (для phpMyAdmin) 42 * INSERT INTO `ua_horses`.`tbl_users`(`forum_id_member`, `username`, `password`, `email`, `superuser`, `status`, `nickname`) SELECT `id_member` as forum_id_member, `member_name` as username, `passwd` as password, `email_address` as email, 0 as superuser, 1 as status, `member_name` as nickname FROM `arplaorg_forum`.`smf_members` WHERE `passwd` <> "migrated" GROUP BY `email_address` |