/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/models/Survey.php(268)
256 array_unshift($sLanguages,$baselang); 257 return $sLanguages; 258 } 259 260 /** 261 * Returns the additional token attributes 262 * 263 * @access public 264 * @return array 265 */ 266 public function getTokenAttributes() 267 { 268 $attdescriptiondata = unserialize($this->attributedescriptions); 269 // Catches malformed data 270 if ($attdescriptiondata && strpos(key(reset($attdescriptiondata)),'attribute_')===false) 271 { 272 // don't know why yet but this breaks normal tokenAttributes functionning 273 //$attdescriptiondata=array_flip(GetAttributeFieldNames($this->sid)); 274 } 275 elseif (is_null($attdescriptiondata)) 276 { 277 $attdescriptiondata=array(); 278 } 279 // Legacy records support 280 if ($attdescriptiondata === false)
#0 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/models/Survey.php(268): unserialize("[]") 263 * @access public 264 * @return array 265 */ 266 public function getTokenAttributes() 267 { 268 $attdescriptiondata = unserialize($this->attributedescriptions); 269 // Catches malformed data 270 if ($attdescriptiondata && strpos(key(reset($attdescriptiondata)),'attribute_')===false) 271 { 272 // don't know why yet but this breaks normal tokenAttributes functionning 273 //$attdescriptiondata=array_flip(GetAttributeFieldNames($this->sid)); |
#1 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/base/CComponent.php(111): Survey->getTokenAttributes() 106 */ 107 public function __get($name) 108 { 109 $getter='get'.$name; 110 if(method_exists($this,$getter)) 111 return $this->$getter(); 112 elseif(strncasecmp($name,'on',2)===0 && method_exists($this,$name)) 113 { 114 // duplicating getEventHandlers() here for performance 115 $name=strtolower($name); 116 if(!isset($this->_e[$name])) |
#2 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/db/ar/CActiveRecord.php(145): CComponent->__get("tokenAttributes") 140 elseif(isset($this->_related[$name])) 141 return $this->_related[$name]; 142 elseif(isset($this->getMetaData()->relations[$name])) 143 return $this->getRelated($name); 144 else 145 return parent::__get($name); 146 } 147 148 /** 149 * PHP setter magic method. 150 * This method is overridden so that AR attributes can be accessed like properties. |
#3 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/common_helper.php(1379): CActiveRecord->__get("tokenAttributes") 1374 $thissurvey['email_remind']=$thissurvey['surveyls_email_remind']; 1375 $thissurvey['email_confirm_subj']=$thissurvey['surveyls_email_confirm_subj']; 1376 $thissurvey['email_confirm']=$thissurvey['surveyls_email_confirm']; 1377 $thissurvey['email_register_subj']=$thissurvey['surveyls_email_register_subj']; 1378 $thissurvey['email_register']=$thissurvey['surveyls_email_register']; 1379 $thissurvey['attributedescriptions'] = $result->survey->tokenAttributes; 1380 $thissurvey['attributecaptions'] = $result->attributeCaptions; 1381 if (!isset($thissurvey['adminname'])) {$thissurvey['adminname']=Yii::app()->getConfig('siteadminemail');} 1382 if (!isset($thissurvey['adminemail'])) {$thissurvey['adminemail']=Yii::app()->getConfig('siteadminname');} 1383 if (!isset($thissurvey['urldescrip']) || $thissurvey['urldescrip'] == '' ) {$thissurvey['urldescrip']=$thissurvey['surveyls_url'];} 1384 |
#4 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/models/Permission.php(341): getSurveyInfo("974232") 336 else return false; 337 } 338 339 if ($iEntityID>0 && $sEntityName=='survey') 340 { 341 $thissurvey=getSurveyInfo($iEntityID); 342 if (!$thissurvey) return false; 343 // If you own a survey you have access to the whole survey 344 if ($iEntityID==$thissurvey['owner_id']) return true; 345 } 346 |
#5 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/models/Permission.php(404): Permission->hasPermission("974232", "survey", "survey", "read", ...) 399 * @param $iUserID integer User ID - if not given the one of the current user is used 400 * @return bool True if user has the permission 401 */ 402 function hasSurveyPermission($iSurveyID, $sPermission, $sCRUD, $iUserID=null) 403 { 404 return $this->hasPermission($iSurveyID, 'survey', $sPermission, $sCRUD, $iUserID); 405 } 406 407 /** 408 * Returns true if a user has permission to use a certain template 409 * @param $sPermission string Name of the permission - see function getGlobalPermissions |
#6 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/core/Survey_Common_Action.php(73): Permission->hasSurveyPermission("974232", "survey", "read") 68 { 69 if(!Survey::model()->findByPk($params['iSurveyId'])) 70 { 71 $this->getController()->error('Invalid survey id'); 72 } 73 elseif (!Permission::model()->hasSurveyPermission($params['iSurveyId'], 'survey', 'read')) 74 { 75 $this->getController()->error('No permission'); 76 } 77 else 78 { |
#7 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CController.php(308): Survey_Common_Action->runWithParams(array("surveyid" => "974232", "sa" => "view")) 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; |
#8 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CController.php(286): CController->runAction(SurveyAdmin) 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(); |
#9 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CController.php(265): CController->runActionWithFilters(SurveyAdmin, 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); |
#10 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/AdminController.php(169): CController->run("survey") 164 $this->redirect(array('/admin/authentication/sa/login')); 165 } 166 167 } 168 169 return parent::run($action); 170 } 171 172 /** 173 * Routes all the actions to their respective places 174 * |
#11 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CWebApplication.php(282): AdminController->run("survey") 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))); |
#12 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/survey/sa/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. |
#13 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/base/CApplication.php(180): CWebApplication->processRequest() 175 public function run() 176 { 177 if($this->hasEventHandler('onBeginRequest')) 178 $this->onBeginRequest(new CEvent($this)); 179 register_shutdown_function(array($this,'end'),0,false); 180 $this->processRequest(); 181 if($this->hasEventHandler('onEndRequest')) 182 $this->onEndRequest(new CEvent($this)); 183 } 184 185 /** |
#14 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/index.php(190): CApplication->run() 185 die (sprintf('%s should be writable by the webserver (755 or 775).', $runtimePath)); 186 } 187 } 188 189 190 Yii::createApplication('LSYii_Application', $config)->run(); 191 192 /* End of file index.php */ 193 /* Location: ./index.php */ |