/home/sondages.pro/htdocs/limesurvey_GIT/testing/develop/application/helpers/SurveyRuntimeHelper.php(569)
557 } 558 559 resetTimers(); 560 561 //Before doing the "templatereplace()" function, check the $this->aSurveyInfo['url'] 562 //field for limereplace stuff, and do transformations! 563 $this->aSurveyInfo['surveyls_url'] = passthruReplace($this->aSurveyInfo['surveyls_url'], $this->aSurveyInfo); 564 $this->aSurveyInfo['surveyls_url'] = templatereplace($this->aSurveyInfo['surveyls_url'], array(), $redata, 'URLReplace', false, NULL, array(), true ); // to do INSERTANS substitutions 565 566 567 //THE FOLLOWING DEALS WITH SUBMITTING ANSWERS AND COMPLETING AN ACTIVE SURVEY 568 //don't use cookies if tokens are being used 569 if ($this->aSurveyInfo['active'] == "Y"){ 570 global $tokensexist; 571 if ($this->aSurveyInfo['usecookie'] == "Y" && $tokensexist != 1) { 572 setcookie("LS_" . $this->iSurveyid . "_STATUS", "COMPLETE", time() + 31536000); //Cookie will expire in 365 days 573 } 574 } 575 } 576 } 577 578 579 /** 580 * Retreive the survey format (mode?) 581 * TODO: move to survey model
#0 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/testing/develop/application/helpers/SurveyRuntimeHelper.php(1648): SurveyRuntimeHelper->setArgs() 1643 private function setSurveySettings( $surveyid, $args ) 1644 { 1645 $this->setVarFromArgs($args); // Set the private variable from $args 1646 $this->initTemplate(); // Template settings 1647 $this->setJavascriptVar(); 1648 $this->setArgs(); 1649 1650 extract($args); 1651 1652 $this->LEMsessid = 'survey_' . $this->iSurveyid; 1653 $this->aSurveyInfo = (!$thissurvey)?getSurveyInfo($this->iSurveyid):$thissurvey; |
#1 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/testing/develop/application/helpers/SurveyRuntimeHelper.php(89): SurveyRuntimeHelper->setSurveySettings("69285",
array("surveyid" => "69285", "thissurvey" => array("template"
=> "default", "language" => "fr", "sid" => "69285", "owner_id"
=> "1", ...), "thisstep" => "2", "tokensexist" => 0, ...)) 84 * @param mixed $args 85 */ 86 public function run($surveyid,$args) 87 { 88 // Survey settings 89 $this->setSurveySettings( $surveyid, $args); 90 91 // Start rendering 92 $this->makeLanguageChanger(); // language changer can be used on any entry screen, so it must be set first 93 94 extract($args); |
#2 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/testing/develop/application/controllers/survey/index.php(580): SurveyRuntimeHelper->run("69285",
array("surveyid" => "69285", "thissurvey" => array("template"
=> "default", "language" => "fr", "sid" => "69285", "owner_id"
=> "1", ...), "thisstep" => "2", "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 } |
#3 |
+
–
/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; |
#4 |
+
–
/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. |
#5 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/testing/develop/framework/web/CController.php(308): CAction->runWithParams(array("sid" => "69285")) 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; |
#6 |
+
–
/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(); |
#7 |
+
–
/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); |
#8 |
+
–
/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))); |
#9 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/testing/develop/framework/web/CWebApplication.php(141): CWebApplication->runController("survey/index/sid/69285") 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. |
#10 |
+
–
/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 /** |
#11 |
+
–
/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 */ |