/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/db/ar/CActiveRecord.php(2387)
2375 2376 /** 2377 * Constructor. 2378 * @param CActiveRecord $model the model instance 2379 * @throws CDbException if specified table for active record class cannot be found in the database 2380 */ 2381 public function __construct($model) 2382 { 2383 $this->_modelClassName=get_class($model); 2384 2385 $tableName=$model->tableName(); 2386 if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null) 2387 throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.', 2388 array('{class}'=>$this->_modelClassName,'{table}'=>$tableName))); 2389 2390 if(($modelPk=$model->primaryKey())!==null || $table->primaryKey===null) 2391 { 2392 $table->primaryKey=$modelPk; 2393 if(is_string($table->primaryKey) && isset($table->columns[$table->primaryKey])) 2394 $table->columns[$table->primaryKey]->isPrimaryKey=true; 2395 elseif(is_array($table->primaryKey)) 2396 { 2397 foreach($table->primaryKey as $name) 2398 { 2399 if(isset($table->columns[$name]))
#0 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/db/ar/CActiveRecord.php(411): CActiveRecordMetaData->__construct(Permission) 406 { 407 $className=get_class($this); 408 if(!array_key_exists($className,self::$_md)) 409 { 410 self::$_md[$className]=null; // preventing recursive invokes of {@link getMetaData()} via {@link __get()} 411 self::$_md[$className]=new CActiveRecordMetaData($this); 412 } 413 return self::$_md[$className]; 414 } 415 416 /** |
#1 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/db/ar/CActiveRecord.php(680): CActiveRecord->getMetaData() 675 * @param string $name attribute name 676 * @return boolean whether this AR has the named attribute (table column). 677 */ 678 public function hasAttribute($name) 679 { 680 return isset($this->getMetaData()->columns[$name]); 681 } 682 683 /** 684 * Returns the named attribute value. 685 * If this is a new record and the attribute is not set before, |
#2 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/models/LSActiveRecord.php(29): CActiveRecord->hasAttribute("created") 24 * @return array 25 */ 26 public function behaviors() 27 { 28 $aBehaviors=array(); 29 $sCreateFieldName=($this->hasAttribute('created')?'created':null); 30 $sUpdateFieldName=($this->hasAttribute('modified')?'modified':null); 31 $sDriverName = Yii::app()->db->getDriverName(); 32 if ($sDriverName=='sqlsrv' || $sDriverName=='dblib') 33 { 34 $sTimestampExpression=new CDbExpression('GETDATE()'); |
#3 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/db/ar/CActiveRecord.php(396): LSActiveRecord->behaviors() 391 if(isset(self::$_models[$className])) 392 return self::$_models[$className]; 393 else 394 { 395 $model=self::$_models[$className]=new $className(null); 396 $model->attachBehaviors($model->behaviors()); 397 return $model; 398 } 399 } 400 401 /** |
#4 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/models/Permission.php(38): CActiveRecord::model("Permission") 33 * @param string $class 34 * @return Permission 35 */ 36 public static function model($class = __CLASS__) 37 { 38 return parent::model($class); 39 } 40 41 /** 42 * Returns the base permissions 43 * |
#5 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/models/Survey.php(281): Permission::model() 276 * @return CActiveRecord 277 */ 278 public function permission($loginID) 279 { 280 $loginID = (int) $loginID; 281 if(Permission::model()->hasGlobalPermission('surveys','read',$loginID))// Test global before adding criteria 282 return $this; 283 $criteria = $this->getDBCriteria(); 284 $criteria->mergeWith(array( 285 'condition' => 'sid IN (SELECT entity_id FROM {{permissions}} WHERE entity = :entity AND uid = :uid AND permission = :permission AND read_p = 1) 286 OR owner_id = :owner_id', |
#6 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/core/Survey_Common_Action.php(458): Survey->permission("1") 453 { 454 Yii::app()->session['flashmessage'] = gT("Warning: You are still using the default password ('password'). Please change your password and re-login again."); 455 } 456 457 // Count active survey 458 $aData['dataForConfigMenu']['activesurveyscount'] = $aData['activesurveyscount'] = Survey::model()->permission(Yii::app()->user->getId())->active()->count(); 459 460 // Count survey 461 $aData['dataForConfigMenu']['surveyscount'] = Survey::model()->count(); 462 463 // Count user |
#7 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/core/Survey_Common_Action.php(244): Survey_Common_Action->_showadminmenu() 239 240 241 ob_start(); //// That was used before the MVC pattern, in procedural code. Will not be used anymore. 242 243 $this->_showHeaders($aData); //// THe headers will be called from the layout 244 $this->_showadminmenu(); //// The admin menu will be called from the layout, probably as a widget for dynamic content. 245 $this->_userGroupBar($aData); 246 247 //// Here will start the rendering from the controller of the main view. 248 //// For example, the Group controller will use the main.php layout, and then render the view list_group.php 249 //// This view will call as a subview the questiongroupbar, and then _listquestiongroup subview. |
#8 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/admin/databaseupdate.php(48): Survey_Common_Action->_renderWrappedTemplate("update", array("output" => "
<div class="jumbotron message-box">
<h2 cla..."), array("display" => array("header" => true), "updatedbaction" => true)) 43 $aViewUrls['output'] = CheckForDBUpgrades(); 44 } 45 46 $aData['updatedbaction'] = true; 47 48 $this->_renderWrappedTemplate('update', $aViewUrls, $aData); 49 } 50 } |
#9 |
unknown(0): databaseupdate->db(null)
|
#10 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(databaseupdate, array(null)) 104 elseif($param->isDefaultValueAvailable()) 105 $ps[]=$param->getDefaultValue(); 106 else 107 return false; 108 } 109 $method->invokeArgs($object,$ps); 110 return true; 111 } 112 } |
#11 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/core/Survey_Common_Action.php(101): CAction->runWithParamsInternal(databaseupdate, ReflectionMethod, array("sa" => "db")) 096 $oMethod = new ReflectionMethod($this, $sDefault); 097 } 098 099 // We're all good to go, let's execute it 100 // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params 101 return parent::runWithParamsInternal($this, $oMethod, $params); 102 } 103 104 /** 105 * Some functions have different parameters, which are just an alias of the 106 * usual parameters we're getting in the url. This function just populates |
#12 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CController.php(308): Survey_Common_Action->runWithParams(array("sa" => "db")) 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; |
#13 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CController.php(286): CController->runAction(databaseupdate) 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(); |
#14 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CController.php(265): CController->runActionWithFilters(databaseupdate, 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); |
#15 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/AdminController.php(161): CController->run("databaseupdate") 156 $this->redirect(array('/admin/authentication/sa/login')); 157 } 158 159 } 160 161 return parent::run($action); 162 } 163 164 /** 165 * Routes all the actions to their respective places 166 * |
#16 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CWebApplication.php(282): AdminController->run("databaseupdate") 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/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/databaseupdate/sa/db") 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/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/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 /** |
#19 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/index.php(211): CApplication->run() 206 die (sprintf('%s should be writable by the webserver (766 or 776).', $runtimePath)); 207 } 208 } 209 210 Yii::$enableIncludePath = false; 211 Yii::createApplication('LSYii_Application', $config)->run(); 212 213 /* End of file index.php */ 214 /* Location: ./index.php */ |