/home/hgctoo5/public_html/truewiring.com/app/s/application/core/LSETwigViewRenderer.php(712)
700 $aData["aSurveyInfo"]['iTotalquestions'] = $_SESSION['survey_' . 701 $aData['aSurveyInfo']['sid']]['totalquestions']; 702 } 703 704 // Add the survey theme options 705 if ($oTemplate->oOptions) { 706 foreach ($oTemplate->oOptions as $key => $value) { 707 // TODO: Same issue as commit 2972aea41c51c74db95bfe40c337ae839471152c 708 // Options are not loaded the same way in all places. 709 if ($value instanceof stdClass) { 710 $value = 'N/A'; 711 } 712 $aData["aSurveyInfo"]["options"][$key] = (string) $value; 713 } 714 } 715 } else { 716 // Add the global theme options 717 $oTemplateConfigurationCurrent = Template::getInstance($oTemplate->sTemplateName); 718 $aData["aSurveyInfo"]["options"] = isJson($oTemplateConfigurationCurrent['options']) 719 ? json_decode((string) $oTemplateConfigurationCurrent['options'], true) 720 : $oTemplateConfigurationCurrent['options']; 721 } 722 723 $aData = $this->fixDataCoherence($aData); 724
#0 |
+
–
/home/hgctoo5/public_html/truewiring.com/app/s/application/core/LSETwigViewRenderer.php(508): LSETwigViewRenderer->getAdditionalInfos(array("aSurveyInfo" => array("htmlemail" => "Y", "format" => "G", "tokenencryptionoptions" => "{"enabled":"N","columns":{"firstname":"N","lastname":"N","email"...", "template" => "TW_Main", ...)), TemplateConfiguration) 503 $this->_twig = $twig = parent::getTwig(); 504 505 //Run theme related things only if a theme is provided! 506 if ($oTemplate !== null) { 507 // Get the additional infos for the view, such as language, direction, etc 508 $aData = $this->getAdditionalInfos($aData, $oTemplate); 509 510 // Add to the loader the path of the template and its parents. 511 $this->addRecursiveTemplatesPath($oTemplate); 512 513 // Plugin for blocks replacement |
#1 |
+
–
/home/hgctoo5/public_html/truewiring.com/app/s/application/core/LSETwigViewRenderer.php(72): LSETwigViewRenderer->convertTwigToHtml("{#
LimeSurvey
Copyright (C) 2007-2017 The LimeSurvey Pro...", array("aSurveyInfo" => array("htmlemail" => "Y", "format" => "G", "tokenencryptionoptions" => "{"enabled":"N","columns":{"firstname":"N","lastname":"N","email"...", "template" => "TW_Main", ...)), TemplateConfiguration) 67 { 68 $oTemplate = Template::getLastInstance(); 69 $oLayoutTemplate = $this->getTemplateForView($sLayout, $oTemplate); 70 if ($oLayoutTemplate) { 71 $line = file_get_contents($oLayoutTemplate->viewPath . $sLayout); 72 $sHtml = $this->convertTwigToHtml($line, $aData, $oTemplate); 73 $sEmHiddenInputs = LimeExpressionManager::FinishProcessPublicPage(true); 74 if ($sEmHiddenInputs) { 75 $sHtml = str_replace( 76 "<!-- emScriptsAndHiddenInputs -->", 77 "<!-- emScriptsAndHiddenInputs updated -->\n" . |
#2 |
+
–
/home/hgctoo5/public_html/truewiring.com/app/s/application/helpers/frontend_helper.php(1360): LSETwigViewRenderer->renderTemplateFromFile("layout_user_forms.twig", array("aSurveyInfo" => array("htmlemail" => "Y", "format" => "G", "tokenencryptionoptions" => "{"enabled":"N","columns":{"firstname":"N","lastname":"N","email"...", "template" => "TW_Main", ...)), false) 1355 1356 $aData['aSurveyInfo'] = $thissurvey; 1357 1358 $aData['aSurveyInfo'] = array_merge($aSurveyInfo, $aData['aSurveyInfo']); 1359 1360 Yii::app()->twigRenderer->renderTemplateFromFile("layout_user_forms.twig", $aData, false); 1361 break; 1362 1363 case "register": //Register new user 1364 // Add the event and test if done 1365 Yii::app()->runController("register/index/sid/{$surveyid}"); |
#3 |
+
–
/home/hgctoo5/public_html/truewiring.com/app/s/application/helpers/SurveyRuntimeHelper.php(1688): renderRenderWayForm("main", array("tokenRequired" => true, "captchaRequired" => false), "/home/hgctoo5/public_html/truewiring.com/app/s/upload/themes/sur...", array("bNewTest" => false, "bDirectReload" => false, "iSurveyId" => "162179", "sLangCode" => "en", ...), ...) 1683 1684 $aEnterTokenData['aEnterErrors'] = $aEnterErrors; 1685 $renderWay = getRenderWay($renderToken, $renderCaptcha); 1686 1687 /* This function end if an form need to be shown */ 1688 renderRenderWayForm($renderWay, $scenarios, $this->sTemplateViewPath, $aEnterTokenData, $this->iSurveyid, $this->aSurveyInfo); 1689 } 1690 1691 1692 private function initTemplate() 1693 { |
#4 |
+
–
/home/hgctoo5/public_html/truewiring.com/app/s/application/helpers/SurveyRuntimeHelper.php(202): SurveyRuntimeHelper->showTokenOrCaptchaFormsIfNeeded() 197 extract($args); 198 199 /////////////////////////////////////////////////////////// 200 // 1: We check if token and/or captcha form shouls be shown 201 if (!isset($_SESSION[$this->LEMsessid]['step'])) { 202 $this->showTokenOrCaptchaFormsIfNeeded(); 203 } 204 if (!$this->previewgrp && !$this->previewquestion) { 205 $this->initMove(); // main methods to init session, LEM, moves, errors, etc 206 $this->checkForDataSecurityAccepted(); // must be called after initMove to allow LEM to be initialized 207 if (EmCacheHelper::useCache()) { |
#5 |
+
–
/home/hgctoo5/public_html/truewiring.com/app/s/application/controllers/survey/SurveyIndex.php(643): SurveyRuntimeHelper->run(162179, array("surveyid" => 162179, "thissurvey" => array("htmlemail" => "Y", "format" => "G", "tokenencryptionoptions" => "{"enabled":"N","columns":{"firstname":"N","lastname":"N","email"...", "template" => "TW_Main", ...), "thisstep" => 0, "clienttoken" => "", ...)) 638 unset($redata); 639 $redata = compact(array_keys(get_defined_vars())); 640 Yii::import('application.helpers.SurveyRuntimeHelper'); 641 $tmp = new SurveyRuntimeHelper(); 642 // try { 643 $tmp->run($surveyid, $redata); 644 // } catch (WrongTemplateVersionException $ex) { 645 // echo $ex->getMessage(); 646 // } 647 } 648 |
#6 |
+
–
/home/hgctoo5/public_html/truewiring.com/app/s/application/controllers/survey/SurveyIndex.php(22): SurveyIndex->action() 17 public $oTemplate; 18 19 public function run() 20 { 21 useFirebug(); 22 $this->action(); 23 } 24 25 /** 26 * 27 * todo: this function is toooo long, to many things happening here. Should be refactored asap! |
#7 |
+
–
/home/hgctoo5/public_html/truewiring.com/app/s/vendor/yiisoft/yii/framework/web/actions/CAction.php(76): SurveyIndex->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. |
#8 |
+
–
/home/hgctoo5/public_html/truewiring.com/app/s/vendor/yiisoft/yii/framework/web/CController.php(308): CAction->runWithParams(array("lang" => "en", "sid" => "162179")) 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; |
#9 |
+
–
/home/hgctoo5/public_html/truewiring.com/app/s/vendor/yiisoft/yii/framework/web/CController.php(286): CController->runAction(SurveyIndex) 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(); |
#10 |
+
–
/home/hgctoo5/public_html/truewiring.com/app/s/vendor/yiisoft/yii/framework/web/CController.php(265): CController->runActionWithFilters(SurveyIndex, 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); |
#11 |
+
–
/home/hgctoo5/public_html/truewiring.com/app/s/vendor/yiisoft/yii/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))); |
#12 |
+
–
/home/hgctoo5/public_html/truewiring.com/app/s/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("survey/index/sid/162179") 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. |
#13 |
+
–
/home/hgctoo5/public_html/truewiring.com/app/s/vendor/yiisoft/yii/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 /** |
#14 |
+
–
/home/hgctoo5/public_html/truewiring.com/app/s/index.php(161): CApplication->run() 156 require_once APPPATH . 'core/LSYii_Application' . EXT; 157 158 $config = require_once(APPPATH . 'config/internal' . EXT); 159 160 Yii::$enableIncludePath = false; 161 Yii::createApplication('LSYii_Application', $config)->run(); 162 163 /* End of file index.php */ 164 /* Location: ./index.php */ |