/var/www/sondagesen/htmlpublic/framework/db/CDbCommand.php(543)
531 { 532 if($this->_connection->enableProfiling) 533 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query'); 534 535 $errorInfo=$e instanceof PDOException ? $e->errorInfo : null; 536 $message=$e->getMessage(); 537 Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.', 538 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 539 540 if(YII_DEBUG) 541 $message.='. The SQL statement executed was: '.$this->getText().$par; 542 543 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 544 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 545 } 546 } 547 548 /** 549 * Builds a SQL SELECT statement from the given query specification. 550 * @param array $query the query specification in name-value pairs. The following 551 * query options are supported: {@link select}, {@link distinct}, {@link from}, 552 * {@link where}, {@link join}, {@link group}, {@link having}, {@link order}, 553 * {@link limit}, {@link offset} and {@link union}. 554 * @throws CDbException if "from" key is not present in given query parameter 555 * @return string the SQL statement
#0 |
+
–
/var/www/sondagesen/htmlpublic/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/sondagesen/htmlpublic/framework/db/ar/CActiveRecord.php(1609): CDbCommand->queryScalar() 1604 $builder=$this->getCommandBuilder(); 1605 $criteria=$builder->createCriteria($condition,$params); 1606 $this->applyScopes($criteria); 1607 1608 if(empty($criteria->with)) 1609 return $builder->createCountCommand($this->getTableSchema(),$criteria)->queryScalar(); 1610 else 1611 { 1612 $finder=$this->getActiveFinder($criteria->with); 1613 return $finder->count($criteria); 1614 } |
#2 |
+
–
/var/www/sondagesen/htmlpublic/application/controllers/admin/useraction.php(324): CActiveRecord->count("uid=:uid AND parent_id=:parent_id)", array(":uid" => 17, "parent_id" => 16)) 319 if (Yii::app()->request->getParam('uid') != '') { 320 $postuserid = (int) Yii::app()->request->getParam("uid"); 321 if ( 322 Permission::model()->hasGlobalPermission('superadmin', 'read') // Super admin have all right on user 323 || Yii::app()->session['loginID'] == $postuserid // User can edit himself 324 || (Permission::model()->hasGlobalPermission('users', 'update') && User::model()->count("uid=:uid AND parent_id=:parent_id)", array(':uid' => $postuserid, 'parent_id' => Yii::app()->session['loginID']))) // User with users update can only update own Users 325 ) { 326 $oUser = User::model()->findByPk($postuserid); 327 $aData = array(); 328 $aData['oUser'] = $oUser; 329 |
#3 |
unknown(0): UserAction->modifyuser()
|
#4 |
+
–
/var/www/sondagesen/htmlpublic/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(UserAction, array()) 104 elseif($param->isDefaultValueAvailable()) 105 $ps[]=$param->getDefaultValue(); 106 else 107 return false; 108 } 109 $method->invokeArgs($object,$ps); 110 return true; 111 } 112 } |
#5 |
+
–
/var/www/sondagesen/htmlpublic/application/core/Survey_Common_Action.php(83): CAction->runWithParamsInternal(UserAction, ReflectionMethod, array("sa" => "modifyuser")) 78 $oMethod = new ReflectionMethod($this, $sDefault); 79 } 80 81 // We're all good to go, let's execute it 82 // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params 83 return parent::runWithParamsInternal($this, $oMethod, $params); 84 } 85 86 /** 87 * Some functions have different parameters, which are just an alias of the 88 * usual parameters we're getting in the url. This function just populates |
#6 |
+
–
/var/www/sondagesen/htmlpublic/framework/web/CController.php(308): Survey_Common_Action->runWithParams(array("sa" => "modifyuser")) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
#7 |
+
–
/var/www/sondagesen/htmlpublic/framework/web/CController.php(286): CController->runAction(UserAction) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
#8 |
+
–
/var/www/sondagesen/htmlpublic/framework/web/CController.php(265): CController->runActionWithFilters(UserAction, array()) 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); |
#9 |
+
–
/var/www/sondagesen/htmlpublic/application/controllers/AdminController.php(158): CController->run("user") 153 $this->redirect(array('/admin/authentication/sa/login')); 154 } 155 } 156 } 157 158 return parent::run($action); 159 } 160 161 /** 162 * Routes all the actions to their respective places 163 * |
#10 |
+
–
/var/www/sondagesen/htmlpublic/framework/web/CWebApplication.php(282): AdminController->run("user") 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))); |
#11 |
+
–
/var/www/sondagesen/htmlpublic/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/user/sa/modifyuser") 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. |
#12 |
+
–
/var/www/sondagesen/htmlpublic/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 /** |
#13 |
+
–
/var/www/sondagesen/htmlpublic/index.php(194): CApplication->run() 189 require_once APPPATH . 'core/LSYii_Application' . EXT; 190 191 $config = require_once(APPPATH . 'config/internal' . EXT); 192 193 Yii::$enableIncludePath = false; 194 Yii::createApplication('LSYii_Application', $config)->run(); 195 196 /* End of file index.php */ 197 /* Location: ./index.php */ |