/home/sondages.pro/htdocs/limesurvey_GIT/testing/develop/application/helpers/SurveyRuntimeHelper.php(1458)
1446 Yii::app()->twigRenderer->renderTemplateFromFile("layout_clearall.twig", array('aSurveyInfo'=>$this->aSurveyInfo), false); 1447 } 1448 } 1449 1450 /** 1451 * NOTE: right now, captcha works ONLY if reloaded... need to be debug. 1452 * NOTE: I bet we have the same problem on 2.6x.x 1453 * NOTE: when token + captcha: works fine 1454 */ 1455 private function showTokenOrCaptchaFormsIfNeeded() 1456 { 1457 $this->iSurveyid = $this->aSurveyInfo['sid']; 1458 $preview = $this->preview; 1459 1460 // Template settings 1461 $oTemplate = $this->oTemplate; 1462 $this->sTemplateViewPath = $oTemplate->viewPath; 1463 1464 1465 // TODO: find where they are defined before this call 1466 global $clienttoken; 1467 global $tokensexist; 1468 /** 1469 * This method has multiple outcomes that virtually do the same thing 1470 * Possible scenarios/subscenarios are =>
#0 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/testing/develop/application/helpers/SurveyRuntimeHelper.php(98): SurveyRuntimeHelper->showTokenOrCaptchaFormsIfNeeded() 093 extract($args); 094 095 /////////////////////////////////////////////////////////// 096 // 1: We check if token and/or captcha form shouls be shown 097 if (!isset($_SESSION[$this->LEMsessid]['step'])){ 098 $this->showTokenOrCaptchaFormsIfNeeded(); 099 } 100 101 if ( !$this->previewgrp && !$this->previewquestion){ 102 $this->initMove(); // main methods to init session, LEM, moves, errors, etc 103 $this->checkQuotas(); // check quotas (then the process will stop here) |
#1 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/testing/develop/application/controllers/survey/index.php(580): SurveyRuntimeHelper->run("65265", array("surveyid" => "65265", "thissurvey" => array("htmlemail" => "Y", "format" => "A", "template" => "default", "language" => "fr", ...), "thisstep" => null, "tokensexist" => 0, ...)) 575 //Send local variables to the appropriate survey type 576 unset($redata); 577 $redata = compact(array_keys(get_defined_vars())); 578 Yii::import('application.helpers.SurveyRuntimeHelper'); 579 $tmp = new SurveyRuntimeHelper(); 580 $tmp->run($surveyid,$redata); 581 582 if (App()->request->getPost('saveall') || isset($flashmessage)){ 583 App()->clientScript->registerScript("saveflashmessage","alert('".gT("Your responses were successfully saved.","js")."');",CClientScript::POS_READY); 584 } 585 } |
#2 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/testing/develop/application/controllers/survey/index.php(21): index->action() 16 public $oTemplate; 17 18 public function run() 19 { 20 useFirebug(); 21 $this->action(); 22 } 23 24 function action() 25 { 26 global $surveyid; |
#3 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/testing/develop/framework/web/actions/CAction.php(76): index->run() 71 { 72 $method=new ReflectionMethod($this, 'run'); 73 if($method->getNumberOfParameters()>0) 74 return $this->runWithParamsInternal($this, $method, $params); 75 76 $this->run(); 77 return true; 78 } 79 80 /** 81 * Executes a method of an object with the supplied named parameters. |
#4 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/testing/develop/framework/web/CController.php(308): CAction->runWithParams(array("sid" => "65265")) 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; |
#5 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/testing/develop/framework/web/CController.php(286): CController->runAction(index) 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(); |
#6 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/testing/develop/framework/web/CController.php(265): CController->runActionWithFilters(index, 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); |
#7 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/testing/develop/framework/web/CWebApplication.php(282): CController->run("index") 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))); |
#8 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/testing/develop/framework/web/CWebApplication.php(141): CWebApplication->runController("survey/index/sid/65265") 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. |
#9 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/testing/develop/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 /** |
#10 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/testing/develop/index.php(205): CApplication->run() 200 require_once APPPATH . 'core/LSYii_Application' . EXT; 201 202 $config = require_once(APPPATH . 'config/internal' . EXT); 203 204 Yii::$enableIncludePath = false; 205 Yii::createApplication('LSYii_Application', $config)->run(); 206 207 /* End of file index.php */ 208 /* Location: ./index.php */ |