/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/expressions/em_core_helper.php(2030)
2018 $result = call_user_func_array('sprintf',$params); 2019 break; 2020 default: 2021 $result = $funcName($params); 2022 break; 2023 } 2024 } 2025 // Call function with the params passed 2026 } elseif (in_array($argsPassed, $numArgsAllowed)) { 2027 switch ($argsPassed) { 2028 case 0: 2029 if (!$this->RDP_onlyparse) { 2030 $result = $funcName(); 2031 } 2032 break; 2033 case 1: 2034 if (!$this->RDP_onlyparse) { 2035 switch($funcName) { 2036 case 'acos': 2037 case 'asin': 2038 case 'atan': 2039 case 'cos': 2040 case 'exp': 2041 case 'is_nan': 2042 case 'sin':
#0 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/expressions/em_core_helper.php(2030): mktime() 2025 // Call function with the params passed 2026 } elseif (in_array($argsPassed, $numArgsAllowed)) { 2027 switch ($argsPassed) { 2028 case 0: 2029 if (!$this->RDP_onlyparse) { 2030 $result = $funcName(); 2031 } 2032 break; 2033 case 1: 2034 if (!$this->RDP_onlyparse) { 2035 switch($funcName) { |
#1 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/expressions/em_core_helper.php(814): ExpressionManager->RDP_RunFunction(array("mktime", 0, "WORD"), array()) 809 } 810 } 811 if ($token3[2] == 'RP') 812 { 813 ++$this->RDP_pos; // consume the token so can process next clause 814 return $this->RDP_RunFunction($funcNameToken,$params); 815 } 816 else 817 { 818 if ($this->RDP_EvaluateExpression()) 819 { |
#2 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/expressions/em_core_helper.php(568): ExpressionManager->RDP_EvaluateFunction() 563 break; 564 case 'WORD': 565 case 'SGQA': 566 if (($this->RDP_pos + 1) < $this->RDP_count and $this->RDP_tokens[($this->RDP_pos + 1)][2] == 'LP') 567 { 568 return $this->RDP_EvaluateFunction(); 569 } 570 else 571 { 572 if ($this->RDP_isValidVariable($token[0])) 573 { |
#3 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/expressions/em_core_helper.php(997): ExpressionManager->RDP_EvaluateConstantVarOrFunction() 0992 } 0993 } 0994 else 0995 { 0996 --$this->RDP_pos; 0997 return $this->RDP_EvaluateConstantVarOrFunction(); 0998 } 0999 } 1000 1001 /** 1002 * Process "a op b" where op in (lt, gt, le, ge, <, >, <=, >=) |
#4 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/expressions/em_core_helper.php(1079): ExpressionManager->RDP_EvaluatePrimaryExpression() 1074 } 1075 } 1076 else 1077 { 1078 --$this->RDP_pos; 1079 return $this->RDP_EvaluatePrimaryExpression(); 1080 } 1081 } 1082 1083 /** 1084 * Returns array of all JavaScript-equivalent variable names used when parsing a string via sProcessStringContainingExpressions |
#5 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/expressions/em_core_helper.php(923): ExpressionManager->RDP_EvaluateUnaryExpression() 918 * @return boolean - true if success, false if any error occurred 919 */ 920 921 private function RDP_EvaluateMultiplicativeExpression() 922 { 923 if (!$this->RDP_EvaluateUnaryExpression()) 924 { 925 return false; 926 } 927 while (($this->RDP_pos + 1) < $this->RDP_count) 928 { |
#6 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/expressions/em_core_helper.php(503): ExpressionManager->RDP_EvaluateMultiplicativeExpression() 498 * Process "a op b" where op in (+,-,concatenate) 499 * @return boolean - true if success, false if any error occurred 500 */ 501 private function RDP_EvaluateAdditiveExpression() 502 { 503 if (!$this->RDP_EvaluateMultiplicativeExpression()) 504 { 505 return false; 506 } 507 while (($this->RDP_pos + 1) < $this->RDP_count) 508 { |
#7 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/expressions/em_core_helper.php(1007): ExpressionManager->RDP_EvaluateAdditiveExpression() 1002 * Process "a op b" where op in (lt, gt, le, ge, <, >, <=, >=) 1003 * @return boolean - true if success, false if any error occurred 1004 */ 1005 private function RDP_EvaluateRelationExpression() 1006 { 1007 if (!$this->RDP_EvaluateAdditiveExpression()) 1008 { 1009 return false; 1010 } 1011 while (($this->RDP_pos + 1) < $this->RDP_count) 1012 { |
#8 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/expressions/em_core_helper.php(618): ExpressionManager->RDP_EvaluateRelationExpression() 613 * Process "a == b", "a eq b", "a != b", "a ne b" 614 * @return boolean - true if success, false if any error occurred 615 */ 616 private function RDP_EvaluateEqualityExpression() 617 { 618 if (!$this->RDP_EvaluateRelationExpression()) 619 { 620 return false; 621 } 622 while (($this->RDP_pos + 1) < $this->RDP_count) 623 { |
#9 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/expressions/em_core_helper.php(843): ExpressionManager->RDP_EvaluateEqualityExpression() 838 * @return boolean - true if success, false if any error occurred 839 */ 840 841 private function RDP_EvaluateLogicalAndExpression() 842 { 843 if (!$this->RDP_EvaluateEqualityExpression()) 844 { 845 return false; 846 } 847 while (($this->RDP_pos + 1) < $this->RDP_count) 848 { |
#10 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/expressions/em_core_helper.php(881): ExpressionManager->RDP_EvaluateLogicalAndExpression() 876 * Process "a || b" or "a or b" 877 * @return boolean - true if success, false if any error occurred 878 */ 879 private function RDP_EvaluateLogicalOrExpression() 880 { 881 if (!$this->RDP_EvaluateLogicalAndExpression()) 882 { 883 return false; 884 } 885 while (($this->RDP_pos + 1) < $this->RDP_count) 886 { |
#11 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/expressions/em_core_helper.php(704): ExpressionManager->RDP_EvaluateLogicalOrExpression() 699 } 700 else 701 { 702 // not an assignment expression, so try something else 703 $this->RDP_pos -= 2; 704 return $this->RDP_EvaluateLogicalOrExpression(); 705 } 706 } 707 else 708 { 709 return $this->RDP_EvaluateLogicalOrExpression(); |
#12 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/expressions/em_core_helper.php(720): ExpressionManager->RDP_EvaluateExpression() 715 * @return boolean - true if success, false if any error occurred 716 */ 717 718 private function RDP_EvaluateExpressions() 719 { 720 $evalStatus = $this->RDP_EvaluateExpression(); 721 if (!$evalStatus) 722 { 723 return false; 724 } 725 |
#13 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/expressions/em_core_helper.php(466): ExpressionManager->RDP_EvaluateExpressions() 461 $this->jsExpression = NULL; 462 463 if ($this->HasSyntaxErrors()) { 464 return false; 465 } 466 elseif ($this->RDP_EvaluateExpressions()) 467 { 468 if ($this->RDP_pos < $this->RDP_count) 469 { 470 $this->RDP_AddError(gT("Extra tokens found"), $this->RDP_tokens[$this->RDP_pos]); 471 return false; |
#14 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/expressions/em_core_helper.php(1880): ExpressionManager->RDP_Evaluate("mktime()") 1875 $prettyPrintParts[] = $stringPart[0]; 1876 } 1877 else { 1878 ++$this->substitutionNum; 1879 $expr = $this->ExpandThisVar(substr($stringPart[0],1,-1)); 1880 if ($this->RDP_Evaluate($expr)) 1881 { 1882 $resolvedPart = $this->GetResult(); 1883 } 1884 else 1885 { |
#15 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/expressions/em_core_helper.php(1843): ExpressionManager->sProcessStringContainingExpressionsHelper("{mktime()}", "51290", false) 1838 $errors = array(); 1839 1840 for($i=1;$i<=$numRecursionLevels;++$i) 1841 { 1842 // TODO - Since want to use <span> for dynamic substitution, what if there are recursive substititons? 1843 $result = $this->sProcessStringContainingExpressionsHelper($result ,$questionNum, $staticReplacement); 1844 if ($i == $whichPrettyPrintIteration) 1845 { 1846 $prettyPrint = $this->prettyPrintSource; 1847 } 1848 $errors = array_merge($errors, $this->RDP_errs); |
#16 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/expressions/em_manager_helper.php(4416):
ExpressionManager->sProcessStringContainingExpressions("{mktime()}", "51290", 3, 1, ...) 4411 $questionSeq = isset($LEM->questionId2questionSeq[$questionNum]) ? $LEM->questionId2questionSeq[$questionNum] : -1; 4412 $groupSeq = isset($LEM->questionId2groupSeq[$questionNum]) ? $LEM->questionId2groupSeq[$questionNum] : -1; 4413 } 4414 $stringToParse = $string; // decode called later htmlspecialchars_decode($string,ENT_QUOTES); 4415 $qnum = is_null($questionNum) ? 0 : $questionNum; 4416 $result = $LEM->em->sProcessStringContainingExpressions($stringToParse,$qnum, $numRecursionLevels, $whichPrettyPrintIteration, $groupSeq, $questionSeq, $staticReplacement); 4417 4418 if ($timeit) { 4419 $LEM->runtimeTimings[] = array(__METHOD__,(microtime(true) - $now)); 4420 } 4421 |
#17 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/replacements_helper.php(718): LimeExpressionManager::ProcessString("{mktime()}",
"51290", array("ACTIVE" => false, "ANSWERSCLEARED" => "Answers
cleared", "ASSESSMENTS" => "", "ASSESSMENT_CURRENT_TOTAL" => "",
...), false, ...) 713 { 714 $doTheseReplacements = $coreReplacements; 715 } 716 717 // Now do all of the replacements - In rare cases, need to do 3 deep recursion, that that is default 718 $line = LimeExpressionManager::ProcessString($line, $questionNum, $doTheseReplacements, false, 3, 1, false, true, $bStaticReplacement); 719 720 return $line; 721 722 } 723 |
#18 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/views/admin/survey/Question/question_view.php(38):
templatereplace("{mktime()}", array(), null, "Unspecified", ...) 33 <?php eT("Question:"); ?> 34 </strong> 35 </td> 36 <td> 37 <?php 38 templatereplace($qrrow['question'],array(),$aReplacementData,'Unspecified', false ,$qid); 39 echo viewHelper::stripTagsEM(LimeExpressionManager::GetLastPrettyPrintExpression()); 40 ?> 41 </td> 42 </tr> 43 |
#19 |
+
–
/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 } |
#20 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CBaseController.php(95): CBaseController->renderInternal("/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/...",
array("surveyid" => "516953", "gid" => "2638", "qid" =>
"51290", "qct" => 0, ...), 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); |
#21 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CController.php(869): CBaseController->renderFile("/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/...",
array("surveyid" => "516953", "gid" => "2638", "qid" =>
"51290", "qct" => 0, ...), 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 |
#22 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/core/Survey_Common_Action.php(314): CController->renderPartial("/admin/survey/Question/question_view",
array("surveyid" => "516953", "gid" => "2638", "qid" =>
"51290", "qct" => 0, ...)) 309 { 310 if (empty($sViewKey) || !in_array($sViewKey, array('message', 'output'))) 311 { 312 if (is_numeric($sViewKey)) 313 { 314 Yii::app()->getController()->renderPartial($sViewPath . $viewUrl, $aData); 315 } 316 elseif (is_array($viewUrl)) 317 { 318 foreach ($viewUrl as $aSubData) 319 { |
#23 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/admin/questions.php(1752): Survey_Common_Action->_renderWrappedTemplate("survey/Question",
"question_view", array("surveyid" => "516953", "gid" => "2638",
"qid" => "51290", "qct" => 0, ...)) 1747 * @param string|array $aViewUrls View url(s) 1748 * @param array $aData Data to be passed on. Optional. 1749 */ 1750 protected function _renderWrappedTemplate($sAction = 'survey/Question', $aViewUrls = array(), $aData = array()) 1751 { 1752 parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData); 1753 } 1754 1755 /** 1756 * Show error and redirect back if survey is active 1757 * |
#24 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/admin/questions.php(133): questions->_renderWrappedTemplate("survey/Question",
"question_view", array("surveyid" => "516953", "gid" => "2638",
"qid" => "51290", "qct" => 0, ...)) 128 $setting_entry = 'last_question_'.Yii::app()->user->getId().'_'.$iSurveyID.'_gid'; 129 setGlobalSetting($setting_entry, $gid); 130 131 $aData['surveyIsActive'] = $survey->active !== 'N'; 132 133 $this->_renderWrappedTemplate('survey/Question', 'question_view', $aData); 134 } 135 136 /** 137 * Display import view 138 */ |
#25 |
unknown(0): questions->view("516953", "2638", "51290")
|
#26 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(questions, array("516953", "2638", "51290")) 104 elseif($param->isDefaultValueAvailable()) 105 $ps[]=$param->getDefaultValue(); 106 else 107 return false; 108 } 109 $method->invokeArgs($object,$ps); 110 return true; 111 } 112 } |
#27 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/core/Survey_Common_Action.php(101): CAction->runWithParamsInternal(questions,
ReflectionMethod, array("surveyid" => "516953", "gid" => "2638",
"qid" => "51290", "sa" => "view", ...)) 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 |
#28 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CController.php(308): Survey_Common_Action->runWithParams(array("surveyid" => "516953", "gid" => "2638", "qid" => "51290", "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; |
#29 |
+
–
/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(); |
#30 |
+
–
/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); |
#31 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/AdminController.php(161): CController->run("questions") 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 * |
#32 |
+
–
/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))); |
#33 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/questions/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. |
#34 |
+
–
/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 /** |
#35 |
+
–
/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 */ |