/home/andre/lamp/apache2/htdocs/site/framework/db/CDbCommand.php(516)
504 return $result; 505 } 506 catch(Exception $e) 507 { 508 if($this->_connection->enableProfiling) 509 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query'); 510 $errorInfo = $e instanceof PDOException ? $e->errorInfo : null; 511 $message = $e->getMessage(); 512 Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.', 513 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 514 if(YII_DEBUG) 515 $message .= '. The SQL statement executed was: '.$this->getText().$par; 516 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 517 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 518 } 519 } 520 521 /** 522 * Builds a SQL SELECT statement from the given query specification. 523 * @param array $query the query specification in name-value pairs. The following 524 * query options are supported: {@link select}, {@link distinct}, {@link from}, 525 * {@link where}, {@link join}, {@link group}, {@link having}, {@link order}, 526 * {@link limit}, {@link offset} and {@link union}. 527 * @return string the SQL statement 528 * @since 1.1.6
#0 |
+
–
/home/andre/lamp/apache2/htdocs/site/framework/db/CDbCommand.php(374): CDbCommand->queryInternal("fetchAll", array(2), array()) 369 * An empty array is returned if the query results in nothing. 370 * @throws CException execution failed 371 */ 372 public function queryAll($fetchAssociative=true,$params=array()) 373 { 374 return $this->queryInternal('fetchAll',$fetchAssociative ? $this->_fetchMode : PDO::FETCH_NUM, $params); 375 } 376 377 /** 378 * Executes the SQL statement and returns the first row of the result. 379 * This is a convenient method of {@link query} when only the first row of data is needed. |
#1 |
+
–
/home/andre/lamp/apache2/htdocs/site/framework/web/auth/CDbAuthManager.php(329): CDbCommand->queryAll() 324 { 325 $rows=$this->db->createCommand() 326 ->select() 327 ->from($this->assignmentTable) 328 ->where('userid=:userid', array(':userid'=>$userId)) 329 ->queryAll(); 330 $assignments=array(); 331 foreach($rows as $row) 332 { 333 if(($data=@unserialize($row['data']))===false) 334 $data=null; |
#2 |
+
–
/home/andre/lamp/apache2/htdocs/site/test/protected/modules/rights/components/RAuthorizer.php(341): CDbAuthManager->getAuthAssignments("admin") 336 * @param integer $userId the id of the user to do the check for. 337 * @return boolean whether the user is a superuser. 338 */ 339 public function isSuperuser($userId) 340 { 341 $assignments = $this->_authManager->getAuthAssignments($userId); 342 return isset($assignments[ $this->superuserName ]); 343 } 344 345 /** 346 * Returns the permissions for a specific authorization item. |
#3 |
+
–
/home/andre/lamp/apache2/htdocs/site/test/protected/modules/rights/components/RWebUser.php(21): RAuthorizer->isSuperuser("admin") 16 public function afterLogin($fromCookie) 17 { 18 parent::afterLogin($fromCookie); 19 20 // Mark the user as a superuser if necessary. 21 if( Rights::getAuthorizer()->isSuperuser($this->getId())===true ) 22 $this->isSuperuser = true; 23 } 24 25 /** 26 * Performs access check for this user. |
#4 |
+
–
/home/andre/lamp/apache2/htdocs/site/framework/web/auth/CWebUser.php(224): RWebUser->afterLogin(false) 219 else 220 throw new CException(Yii::t('yii','{class}.allowAutoLogin must be set true in order to use cookie-based authentication.', 221 array('{class}'=>get_class($this)))); 222 } 223 224 $this->afterLogin(false); 225 } 226 } 227 228 /** 229 * Logs out the current user. |
#5 |
+
–
/home/andre/lamp/apache2/htdocs/site/test/protected/models/LoginForm.php(71): CWebUser->login(UserIdentity, 0) 66 $this->_identity->authenticate(); 67 } 68 if($this->_identity->errorCode===UserIdentity::ERROR_NONE) 69 { 70 $duration=$this->rememberMe ? 3600*24*30 : 0; // 30 days 71 Yii::app()->user->login($this->_identity,$duration); 72 return true; 73 } 74 else 75 return false; 76 } |
#6 |
+
–
/home/andre/lamp/apache2/htdocs/site/test/protected/controllers/SiteController.php(88): LoginForm->login() 83 // collect user input data 84 if(isset($_POST['LoginForm'])) 85 { 86 $model->attributes=$_POST['LoginForm']; 87 // validate user input and redirect to the previous page if valid 88 if($model->validate() && $model->login()) 89 $this->redirect(Yii::app()->user->returnUrl); 90 } 91 // display the login form 92 $this->render('login',array('model'=>$model)); 93 } |
#7 |
+
–
/home/andre/lamp/apache2/htdocs/site/framework/web/actions/CInlineAction.php(50): SiteController->actionLogin() 45 $controller=$this->getController(); 46 $method=new ReflectionMethod($controller, $methodName); 47 if($method->getNumberOfParameters()>0) 48 return $this->runWithParamsInternal($controller, $method, $params); 49 else 50 return $controller->$methodName(); 51 } 52 53 } |
#8 |
+
–
/home/andre/lamp/apache2/htdocs/site/framework/web/CController.php(300): CInlineAction->runWithParams(array("r" => "site/login")) 295 { 296 $priorAction=$this->_action; 297 $this->_action=$action; 298 if($this->beforeAction($action)) 299 { 300 if($action->runWithParams($this->getActionParams())===false) 301 $this->invalidActionParams($action); 302 else 303 $this->afterAction($action); 304 } 305 $this->_action=$priorAction; |
#9 |
+
–
/home/andre/lamp/apache2/htdocs/site/framework/web/CController.php(278): CController->runAction(CInlineAction) 273 * @see runAction 274 */ 275 public function runActionWithFilters($action,$filters) 276 { 277 if(empty($filters)) 278 $this->runAction($action); 279 else 280 { 281 $priorAction=$this->_action; 282 $this->_action=$action; 283 CFilterChain::create($this,$action,$filters)->run(); |
#10 |
+
–
/home/andre/lamp/apache2/htdocs/site/framework/web/CController.php(257): CController->runActionWithFilters(CInlineAction, array()) 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); |
#11 |
+
–
/home/andre/lamp/apache2/htdocs/site/framework/web/CWebApplication.php(277): CController->run("login") 272 { 273 list($controller,$actionID)=$ca; 274 $oldController=$this->_controller; 275 $this->_controller=$controller; 276 $controller->init(); 277 $controller->run($actionID); 278 $this->_controller=$oldController; 279 } 280 else 281 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 282 array('{route}'=>$route===''?$this->defaultController:$route))); |
#12 |
+
–
/home/andre/lamp/apache2/htdocs/site/framework/web/CWebApplication.php(136): CWebApplication->runController("site/login") 131 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 132 $_GET[$name]=$value; 133 } 134 else 135 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 136 $this->runController($route); 137 } 138 139 /** 140 * Registers the core application components. 141 * This method overrides the parent implementation by registering additional core components. |
#13 |
+
–
/home/andre/lamp/apache2/htdocs/site/framework/base/CApplication.php(158): CWebApplication->processRequest() 153 */ 154 public function run() 155 { 156 if($this->hasEventHandler('onBeginRequest')) 157 $this->onBeginRequest(new CEvent($this)); 158 $this->processRequest(); 159 if($this->hasEventHandler('onEndRequest')) 160 $this->onEndRequest(new CEvent($this)); 161 } 162 163 /** |
#14 |
+
–
/home/andre/lamp/apache2/htdocs/site/test/index.php(13): CApplication->run() 08 defined('YII_DEBUG') or define('YII_DEBUG',true); 09 // specify how many levels of call stack should be shown in each log message 10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 11 12 require_once($yii); 13 Yii::createWebApplication($config)->run(); |