/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/admin/htmleditor_helper.php(28)
16 function initKcfinder() 17 { 18 Yii::app()->session['KCFINDER'] = array(); 19 20 $sAllowedExtensions = implode(' ', array_map('trim', explode(',', Yii::app()->getConfig('allowedresourcesuploads')))); 21 $_SESSION['KCFINDER']['types'] = array( 22 'files' => $sAllowedExtensions, 23 'flash' => $sAllowedExtensions, 24 'images' => $sAllowedExtensions 25 ); 26 if (Yii::app()->getRequest()->enableCsrfValidation) 27 { 28 $_SESSION['KCFINDER']['cookieDomain'] = Yii::app()->getRequest()->csrfCookie->domain; 29 } 30 31 if (Yii::app()->getConfig('demoMode') === false && 32 isset(Yii::app()->session['loginID']) && 33 isset(Yii::app()->session['FileManagerContext'])) 34 { 35 // disable upload at survey creation time 36 // because we don't know the sid yet 37 if (preg_match('/^(create|edit):(question|group|answer)/', Yii::app()->session['FileManagerContext']) != 0 || 38 preg_match('/^edit:survey/', Yii::app()->session['FileManagerContext']) != 0 || 39 preg_match('/^edit:assessments/', Yii::app()->session['FileManagerContext']) != 0 || 40 preg_match('/^edit:emailsettings/', Yii::app()->session['FileManagerContext']) != 0)
#0 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/admin/htmleditor_helper.php(133): initKcfinder() 128 } 129 } 130 131 function getEditor($fieldtype,$fieldname,$fieldtext, $surveyID=null,$gID=null,$qID=null,$action=null) 132 { 133 initKcfinder(); 134 //error_log("TIBO fieldtype=$fieldtype,fieldname=$fieldname,fieldtext=$fieldtext,surveyID=$surveyID,gID=$gID,qID=$qID,action=$action"); 135 $session = &Yii::app()->session; 136 137 if ($session['htmleditormode'] && 138 $session['htmleditormode'] == 'none') |
#1 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/views/admin/survey/Question/question_subviews/_tabs.php(47):
getEditor("question-text", "question_en", "[Question:](en)", "666412", ...) 42 <div class="form-group"> 43 <label class="col-sm-3 control-label" for='question_<?php echo $eqrow['language']; ?>' class=""><?php eT("Question:"); ?></label> 44 <div class="col-sm-9"> 45 <div class="htmleditor input-group"> 46 <?php echo CHtml::textArea("question_{$eqrow['language']}",$eqrow['question'],array('class'=>'form-control','cols'=>'60','rows'=>'8','id'=>"question_{$eqrow['language']}")); ?> 47 <?php echo getEditor("question-text","question_".$eqrow['language'], "[".gT("Question:", "js")."](".$eqrow['language'].")",$surveyid,$gid,$qid,$action); ?> 48 </div> 49 </div> 50 </div> 51 52 <!-- Question Help --> |
#2 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CBaseController.php(126): require("/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/...") 121 $data=$_data_; 122 if($_return_) 123 { 124 ob_start(); 125 ob_implicit_flush(false); 126 require($_viewFile_); 127 return ob_get_clean(); 128 } 129 else 130 require($_viewFile_); 131 } |
#3 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CBaseController.php(95): CBaseController->renderInternal("/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/...",
array("eqrow" => array("qid" => "51349", "parent_qid" => "0",
"sid" => "666412", "gid" => "2653", ...), "addlanguages" =>
array(), "surveyid" => "666412", "gid" => "2653", ...), true) 090 { 091 $widgetCount=count($this->_widgetStack); 092 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 093 $content=$renderer->renderFile($this,$viewFile,$data,$return); 094 else 095 $content=$this->renderInternal($viewFile,$data,$return); 096 if(count($this->_widgetStack)===$widgetCount) 097 return $content; 098 else 099 { 100 $widget=end($this->_widgetStack); |
#4 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CController.php(869): CBaseController->renderFile("/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/...",
array("eqrow" => array("qid" => "51349", "parent_qid" => "0",
"sid" => "666412", "gid" => "2653", ...), "addlanguages" =>
array(), "surveyid" => "666412", "gid" => "2653", ...), true) 864 */ 865 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 866 { 867 if(($viewFile=$this->getViewFile($view))!==false) 868 { 869 $output=$this->renderFile($viewFile,$data,true); 870 if($processOutput) 871 $output=$this->processOutput($output); 872 if($return) 873 return $output; 874 else |
#5 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/views/admin/survey/Question/editQuestion_view.php(59):
CController->renderPartial("./survey/Question/question_subviews/_tabs",
array("eqrow" => array("qid" => "51349", "parent_qid" => "0",
"sid" => "666412", "gid" => "2653", ...), "addlanguages" =>
array(), "surveyid" => "666412", "gid" => "2653", ...)) 54 'gid'=>$gid, 'qid'=>$qid, 55 'adding'=>$adding, 56 'aqresult'=>$aqresult, 57 'action'=>$action 58 ) 59 ); ?> 60 61 <?php endif;?> 62 </div> 63 64 <!-- The Accordion --> |
#6 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CBaseController.php(126): require("/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/...") 121 $data=$_data_; 122 if($_return_) 123 { 124 ob_start(); 125 ob_implicit_flush(false); 126 require($_viewFile_); 127 return ob_get_clean(); 128 } 129 else 130 require($_viewFile_); 131 } |
#7 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CBaseController.php(95): CBaseController->renderInternal("/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/...",
array("surveyid" => "666412", "gid" => "2653", "qid" =>
"51349", "display" => array("menu_bars" => array("surveysummary"
=> "viewgroup", "gid_action" => "addquestion", "qid_action" =>
"editquestion")), ...), true) 090 { 091 $widgetCount=count($this->_widgetStack); 092 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 093 $content=$renderer->renderFile($this,$viewFile,$data,$return); 094 else 095 $content=$this->renderInternal($viewFile,$data,$return); 096 if(count($this->_widgetStack)===$widgetCount) 097 return $content; 098 else 099 { 100 $widget=end($this->_widgetStack); |
#8 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CController.php(869): CBaseController->renderFile("/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/...",
array("surveyid" => "666412", "gid" => "2653", "qid" =>
"51349", "display" => array("menu_bars" => array("surveysummary"
=> "viewgroup", "gid_action" => "addquestion", "qid_action" =>
"editquestion")), ...), true) 864 */ 865 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 866 { 867 if(($viewFile=$this->getViewFile($view))!==false) 868 { 869 $output=$this->renderFile($viewFile,$data,true); 870 if($processOutput) 871 $output=$this->processOutput($output); 872 if($return) 873 return $output; 874 else |
#9 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/core/Survey_Common_Action.php(321): CController->renderPartial("/admin/survey/Question/editQuestion_view",
array("surveyid" => "666412", "gid" => "2653", "qid" =>
"51349", "display" => array("menu_bars" => array("surveysummary"
=> "viewgroup", "gid_action" => "addquestion", "qid_action" =>
"editquestion")), ...)) 316 elseif (is_array($viewUrl)) 317 { 318 foreach ($viewUrl as $aSubData) 319 { 320 $aSubData = array_merge($aData, $aSubData); 321 Yii::app()->getController()->renderPartial($sViewPath . $sViewKey, $aSubData); 322 } 323 } 324 } 325 else 326 { |
#10 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/admin/questions.php(1893): Survey_Common_Action->_renderWrappedTemplate("survey/Question",
array("editQuestion_view" => array(array("surveyid" => "666412",
"gid" => "2653", "qid" => "51349", "display" =>
array("menu_bars" => array("surveysummary" => "viewgroup",
"gid_action" => "addquestion", "qid_action" => "editquestion")),
...)), "questionJavascript_view" => array(array("type" => "D"))),
array("surveyid" => "666412", "gid" => "2653", "qid" =>
"51349", "display" => array("menu_bars" => array("surveysummary"
=> "viewgroup", "gid_action" => "addquestion", "qid_action" =>
"editquestion")), ...)) 1888 * @param string|array $aViewUrls View url(s) 1889 * @param array $aData Data to be passed on. Optional. 1890 */ 1891 protected function _renderWrappedTemplate($sAction = 'survey/Question', $aViewUrls = array(), $aData = array()) 1892 { 1893 parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData); 1894 } 1895 1896 /** 1897 * Show error and redirect back if survey is active 1898 * |
#11 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/admin/questions.php(1364): questions->_renderWrappedTemplate("survey/Question",
array("editQuestion_view" => array(array("surveyid" => "666412",
"gid" => "2653", "qid" => "51349", "display" =>
array("menu_bars" => array("surveysummary" => "viewgroup",
"gid_action" => "addquestion", "qid_action" => "editquestion")),
...)), "questionJavascript_view" => array(array("type" => "D"))),
array("surveyid" => "666412", "gid" => "2653", "qid" =>
"51349", "display" => array("menu_bars" => array("surveysummary"
=> "viewgroup", "gid_action" => "addquestion", "qid_action" =>
"editquestion")), ...)) 1359 $aData['sidemenu']['explorer']['state'] = true; 1360 $aData['sidemenu']['explorer']['gid'] = (isset($gid))?$gid:false; 1361 $aData['sidemenu']['explorer']['qid'] = (isset($qid))?$qid:false; 1362 1363 1364 $this->_renderWrappedTemplate('survey/Question', $aViewUrls, $aData); 1365 } 1366 1367 /** 1368 * Function responsible for deleting a question. 1369 * |
#12 |
unknown(0): questions->index("editquestion", "666412", "2653", "51349")
|
#13 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(questions, array("editquestion", "666412", "2653", "51349")) 104 elseif($param->isDefaultValueAvailable()) 105 $ps[]=$param->getDefaultValue(); 106 else 107 return false; 108 } 109 $method->invokeArgs($object,$ps); 110 return true; 111 } 112 } |
#14 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/core/Survey_Common_Action.php(101): CAction->runWithParamsInternal(questions,
ReflectionMethod, array("surveyid" => "666412", "gid" => "2653",
"qid" => "51349", "sa" => "editquestion", ...)) 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 |
#15 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CController.php(308): Survey_Common_Action->runWithParams(array("surveyid" => "666412", "gid" => "2653", "qid" => "51349", "sa" => "editquestion")) 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; |
#16 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CController.php(286): CController->runAction(questions) 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(); |
#17 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CController.php(265): CController->runActionWithFilters(questions, 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); |
#18 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/AdminController.php(160): CController->run("questions") 155 $this->redirect(array('/admin/authentication/sa/login')); 156 } 157 158 } 159 160 return parent::run($action); 161 } 162 163 /** 164 * Routes all the actions to their respective places 165 * |
#19 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CWebApplication.php(282): AdminController->run("questions") 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))); |
#20 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/questions/sa/editquestion") 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. |
#21 |
+
–
/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 /** |
#22 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/index.php(212): CApplication->run() 207 die (sprintf('%s should be writable by the webserver (766 or 776).', $runtimePath)); 208 } 209 } 210 211 Yii::$enableIncludePath = false; 212 Yii::createApplication('LSYii_Application', $config)->run(); 213 214 /* End of file index.php */ 215 /* Location: ./index.php */ |