/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/application/helpers/common_helper.php(874)
862 $result = SurveyLanguageSetting::model()->with('survey')->findByPk(array('surveyls_survey_id' => $surveyid, 'surveyls_language' => $languagecode)); 863 if (is_null($result)) { 864 // When additional language was added, but not saved it does not exists 865 // We should revert to the base language then 866 $languagecode = Survey::model()->findByPk($surveyid)->language; 867 $result = SurveyLanguageSetting::model()->with('survey')->findByPk(array('surveyls_survey_id' => $surveyid, 'surveyls_language' => $languagecode)); 868 } 869 if ($result) { 870 $thissurvey = array_merge($result->survey->attributes, $result->attributes); 871 $thissurvey['name'] = $thissurvey['surveyls_title']; 872 $thissurvey['description'] = $thissurvey['surveyls_description']; 873 $thissurvey['welcome'] = $thissurvey['surveyls_welcometext']; 874 $thissurvey['datasecurity_notice_label'] = $thissurvey['surveyls_policy_notice_label']; 875 $thissurvey['datasecurity_error'] = $thissurvey['surveyls_policy_error']; 876 $thissurvey['datasecurity_notice'] = $thissurvey['surveyls_policy_notice']; 877 $thissurvey['templatedir'] = $thissurvey['template']; 878 $thissurvey['adminname'] = $thissurvey['admin']; 879 $thissurvey['tablename'] = $oSurvey->responsesTableName; 880 $thissurvey['urldescrip'] = $thissurvey['surveyls_urldescription']; 881 $thissurvey['url'] = $thissurvey['surveyls_url']; 882 $thissurvey['expiry'] = $thissurvey['expires']; 883 $thissurvey['email_invite_subj'] = $thissurvey['surveyls_email_invite_subj']; 884 $thissurvey['email_invite'] = $thissurvey['surveyls_email_invite']; 885 $thissurvey['email_remind_subj'] = $thissurvey['surveyls_email_remind_subj']; 886 $thissurvey['email_remind'] = $thissurvey['surveyls_email_remind'];
#0 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/application/helpers/common_helper.php(2693): getSurveyInfo("431846") 2688 2689 // getEmailFormat: returns email format for the survey 2690 // returns 'text' or 'html' 2691 function getEmailFormat($surveyid) 2692 { 2693 $surveyInfo = getSurveyInfo($surveyid); 2694 if ($surveyInfo['htmlemail'] == 'Y') { 2695 return 'html'; 2696 } else { 2697 return 'text'; 2698 } |
#1 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/application/helpers/admin/htmleditor_helper.php(136):
getEmailFormat("431846") 131 if (!$session['htmleditormode'] || ($session['htmleditormode'] != 'inline' && $session['htmleditormode'] != 'popup')) { 132 $htmleditormode = Yii::app()->getConfig('defaulthtmleditormode'); 133 } else { 134 $htmleditormode = $session['htmleditormode']; 135 } 136 if ($surveyID && getEmailFormat($surveyID) != 'html' && substr($fieldtype, 0, 6) === "email-") { 137 // email but survey as text email 138 return ''; 139 } 140 141 if ($htmleditormode == 'popup' || ($fieldtype == 'editanswer' || $fieldtype == 'addanswer' || $fieldtype == 'editlabel' || $fieldtype == 'addlabel') && (preg_match("/^translate/", $action) == 0)) { |
#2 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/application/views/admin/survey/Question/question_subviews/_tabs.php(50):
getEditor("question-text", "question_fr", "[Question :](fr)", "431846", ...) 45 <div class="form-group"> 46 <label class=" control-label" for='question_<?php echo $oSurvey->language; ?>'><?php eT("Question:"); ?></label> 47 <div class=""> 48 <div class="htmleditor input-group"> 49 <?php echo CHtml::textArea("question_{$oSurvey->language}",$eqrow['question'],array('class'=>'form-control','cols'=>'60','rows'=>'8','id'=>"question_{$oSurvey->language}")); ?> 50 <?php echo getEditor("question-text","question_".$oSurvey->language, "[".gT("Question:", "js")."](".$oSurvey->language.")",$surveyid,$gid,$qid,$action); ?> 51 </div> 52 </div> 53 </div> 54 55 <!-- Question Help --> |
#3 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/framework/web/CBaseController.php(126): require("/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/appli...") 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 } |
#4 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/framework/web/CBaseController.php(95): CBaseController->renderInternal("/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/appli...",
array("oSurvey" => Survey, "eqrow" => array("qid" => "20",
"parent_qid" => "0", "sid" => "431846", "type" => "L", ...),
"surveyid" => "431846", "gid" => "10", ...), 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); |
#5 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/framework/web/CController.php(872): CBaseController->renderFile("/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/appli...",
array("oSurvey" => Survey, "eqrow" => array("qid" => "20",
"parent_qid" => "0", "sid" => "431846", "type" => "L", ...),
"surveyid" => "431846", "gid" => "10", ...), true) 867 */ 868 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 869 { 870 if(($viewFile=$this->getViewFile($view))!==false) 871 { 872 $output=$this->renderFile($viewFile,$data,true); 873 if($processOutput) 874 $output=$this->processOutput($output); 875 if($return) 876 return $output; 877 else |
#6 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/application/views/admin/survey/Question/editQuestion_view.php(79):
CController->renderPartial("./survey/Question/question_subviews/_tabs",
array("oSurvey" => Survey, "eqrow" => array("qid" => "20",
"parent_qid" => "0", "sid" => "431846", "type" => "L", ...),
"surveyid" => "431846", "gid" => "10", ...)) 74 'gid'=>$gid, 'qid'=>$qid, 75 'adding'=>$adding, 76 'aqresult'=>$aqresult, 77 'action'=>$action 78 ) 79 ); ?> 80 81 <?php endif;?> 82 </div> 83 84 <!-- The Accordion --> |
#7 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/framework/web/CBaseController.php(126): require("/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/appli...") 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 } |
#8 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/framework/web/CBaseController.php(95): CBaseController->renderInternal("/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/appli...",
array("oQuestionGroup" => QuestionGroup, "surveyid" => "431846",
"gid" => "10", "qid" => "20", ...), 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); |
#9 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/framework/web/CController.php(872): CBaseController->renderFile("/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/appli...",
array("oQuestionGroup" => QuestionGroup, "surveyid" => "431846",
"gid" => "10", "qid" => "20", ...), true) 867 */ 868 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 869 { 870 if(($viewFile=$this->getViewFile($view))!==false) 871 { 872 $output=$this->renderFile($viewFile,$data,true); 873 if($processOutput) 874 $output=$this->processOutput($output); 875 if($return) 876 return $output; 877 else |
#10 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/application/core/Survey_Common_Action.php(271): CController->renderPartial("/admin/survey/Question/editQuestion_view",
array("oQuestionGroup" => QuestionGroup, "surveyid" => "431846",
"gid" => "10", "qid" => "20", ...), true) 266 if (is_numeric($sViewKey)) { 267 $content .= Yii::app()->getController()->renderPartial($sViewPath.$viewUrl, $aData, true); 268 } elseif (is_array($viewUrl)) { 269 foreach ($viewUrl as $aSubData) { 270 $aSubData = array_merge($aData, $aSubData); 271 $content .= Yii::app()->getController()->renderPartial($sViewPath.$sViewKey, $aSubData, true); 272 } 273 } 274 } else { 275 switch ($sViewKey) { 276 //// We'll use some Bootstrap alerts, and call them inside each correct view. |
#11 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/application/core/Survey_Common_Action.php(338): Survey_Common_Action->renderCentralContents("survey/Question",
array("editQuestion_view" => array(array("oQuestionGroup" =>
QuestionGroup, "surveyid" => "431846", "gid" => "10", "qid" =>
"20", ...))), array("oQuestionGroup" => QuestionGroup, "surveyid"
=> "431846", "gid" => "10", "qid" => "20", ...)) 333 } 334 } else { 335 $renderFile = $basePath.'/'.$sRenderFile; 336 } 337 338 $content = $this->renderCentralContents($sAction, $aViewUrls, $aData); 339 $out = $this->renderInternal($renderFile, ['content' => $content, 'aData' => $aData], true); 340 341 App()->getClientScript()->render($out); 342 echo $out; 343 } |
#12 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/application/controllers/admin/questions.php(1851): Survey_Common_Action->_renderWrappedTemplate("survey/Question",
array("editQuestion_view" => array(array("oQuestionGroup" =>
QuestionGroup, "surveyid" => "431846", "gid" => "10", "qid" =>
"20", ...))), array("oQuestionGroup" => QuestionGroup, "surveyid"
=> "431846", "gid" => "10", "qid" => "20", ...), false) 1846 * @param string|array $aViewUrls View url(s) 1847 * @param array $aData Data to be passed on. Optional. 1848 */ 1849 protected function _renderWrappedTemplate($sAction = 'survey/Question', $aViewUrls = array(), $aData = array(), $sRenderFile = false) 1850 { 1851 parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData, $sRenderFile); 1852 } 1853 1854 /** 1855 * Show error and redirect back if survey is active 1856 * |
#13 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/application/controllers/admin/questions.php(1351): questions->_renderWrappedTemplate("survey/Question",
array("editQuestion_view" => array(array("oQuestionGroup" =>
QuestionGroup, "surveyid" => "431846", "gid" => "10", "qid" =>
"20", ...))), array("oQuestionGroup" => QuestionGroup, "surveyid"
=> "431846", "gid" => "10", "qid" => "20", ...)) 1346 $aData['sidemenu']['explorer']['state'] = true; 1347 $aData['sidemenu']['explorer']['gid'] = (isset($gid)) ? $gid : false; 1348 $aData['sidemenu']['explorer']['qid'] = (isset($qid)) ? $qid : false; 1349 1350 1351 $this->_renderWrappedTemplate('survey/Question', $aViewUrls, $aData); 1352 } 1353 1354 1355 /** 1356 * Delete multiple questions. |
#14 |
unknown(0): questions->index("editquestion", "431846", "10", "20")
|
#15 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(questions, array("editquestion", "431846", "10", "20")) 104 elseif($param->isDefaultValueAvailable()) 105 $ps[]=$param->getDefaultValue(); 106 else 107 return false; 108 } 109 $method->invokeArgs($object,$ps); 110 return true; 111 } 112 } |
#16 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/application/core/Survey_Common_Action.php(83): CAction->runWithParamsInternal(questions,
ReflectionMethod, array("surveyid" => "431846", "gid" => "10",
"qid" => "20", "sa" => "editquestion", ...)) 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 |
#17 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/framework/web/CController.php(308): Survey_Common_Action->runWithParams(array("surveyid" => "431846", "gid" => "10", "qid" => "20", "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; |
#18 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/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(); |
#19 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/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); |
#20 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/application/controllers/AdminController.php(158): CController->run("questions") 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 * |
#21 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/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))); |
#22 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/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. |
#23 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/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 /** |
#24 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/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 */ |