C:\limesurvey_train\application\helpers\replacements_helper.php(465)
453 } 454 elseif (isset($surveyid) && (!isset($_SESSION['survey_'.$surveyid]['step']) || !$_SESSION['survey_'.$surveyid]['step'])) 455 { //First page, show LOAD 456 if ($thissurvey['tokenanswerspersistence'] != 'Y' || !isset($surveyid) || !tableExists('tokens_'.$surveyid)) 457 { 458 $_saveall = "\t\t\t<input type='button' name='loadall' value='" . $clang->gT("Load unfinished survey") . "' class='saveall' onclick=\"javascript:addHiddenField(document.getElementById('limesurvey'),'loadall',this.value);document.getElementById('limesurvey').submit();\" " . (($thissurvey['active'] != "Y") ? "disabled='disabled'" : "") . "/>"; 459 } 460 else 461 { 462 $_saveall = ''; 463 } 464 } 465 elseif (isset($_SESSION['survey_'.$surveyid]['scid']) && (isset($move) && $move == "movelast")) 466 { //Already saved and on Submit Page, dont show Save So Far button 467 $_saveall = ''; 468 } 469 else 470 { 471 $_saveall = "<input type='button' name='saveallbtn' value='" . $clang->gT("Resume later") . "' class='saveall' onclick=\"javascript:document.limesurvey.move.value = this.value;addHiddenField(document.getElementById('limesurvey'),'saveall',this.value);document.getElementById('limesurvey').submit();\" " . (($thissurvey['active'] != "Y") ? "disabled='disabled'" : "") . "/>"; // Show Save So Far button 472 } 473 } 474 else 475 { 476 $_saveall = ""; 477 }
#0 |
+
– C:\limesurvey_train\application\helpers\admin\template_helper.php(25):
templatereplace("<meta http-equiv="content-type"
content="text/html; charset=UTF-...", array(), array("sitename" =>
"TRAINING Places for People Consultation Platform", "thissurvey" =>
array("active" => "Y", "name" => "Template Sample", "description"
=> "<p>This is a sample survey description. It could be quite
long.<...", "welcome" => "<p>Welcome to this sample
survey<p><p>You should have a great ti...", ...),
"percentcomplete" => "<script type="text/javascript">
$(document).ready(functi...", "groupname" => "Group 1: The first lot of
questions", ...)) 20 foreach(file($file) as $op) { 21 $output[]=templatereplace($op); 22 } 23 return $output; 24 */ 25 return (array)templatereplace(file_get_contents($file),array(),$data); 26 } 27 28 29 30 function getListOfFiles($wh){ |
#1 |
+
– C:\limesurvey_train\application\controllers\admin\templates.php(1014):
doreplacement("C:\limesurvey_train\templates\default/startpage.pstpl",
array("sitename" => "TRAINING Places for People Consultation Platform",
"thissurvey" => array("active" => "Y", "name" => "Template
Sample", "description" => "<p>This is a sample survey
description. It could be quite long.<...", "welcome" =>
"<p>Welcome to this sample survey<p><p>You should have a
great ti...", ...), "percentcomplete" => "<script
type="text/javascript"> $(document).ready(functi...", "groupname" =>
"Group 1: The first lot of questions", ...)) 1009 unset($files); 1010 $myoutput[] = ""; 1011 foreach ($Welcome as $qs) 1012 { 1013 $files[] = array("name" => $qs); 1014 $myoutput = array_merge($myoutput, doreplacement(getTemplatePath($templatename) . "/$qs", $aData)); 1015 } 1016 break; 1017 1018 case 'register': 1019 unset($files); |
#2 |
+
– C:\limesurvey_train\application\controllers\admin\templates.php(319):
templates->_initialise("default",
"welcome", "startpage.pstpl") 314 * @param string $templatename 315 * @return void 316 */ 317 public function index($editfile = 'startpage.pstpl', $screenname = 'welcome', $templatename = 'default') 318 { 319 $aViewUrls = $this->_initialise($templatename, $screenname, $editfile); 320 $this->getController()->_js_admin_includes(Yii::app()->getConfig('adminscripts') . 'templates.js'); 321 $this->getController()->_css_admin_includes(Yii::app()->getConfig('adminscripts') . 'codemirror_ui/lib/CodeMirror-2.0/lib/codemirror.css'); 322 $this->getController()->_css_admin_includes(Yii::app()->getConfig('adminscripts') . 'codemirror_ui/lib/CodeMirror-2.0/mode/css/css.css'); 323 $this->getController()->_css_admin_includes(Yii::app()->getConfig('adminscripts') . 'codemirror_ui/lib/CodeMirror-2.0/mode/javascript/javascript.css'); 324 $this->getController()->_css_admin_includes(Yii::app()->getConfig('adminscripts') . 'codemirror_ui/lib/CodeMirror-2.0/mode/xml/xml.css'); |
#3 |
unknown(0):
templates->index("startpage.pstpl",
"welcome", "default") |
#4 |
+
– C:\limesurvey_train\framework\web\actions\CAction.php(107):
ReflectionMethod->invokeArgs(templates,
array("startpage.pstpl", "welcome", "default")) 102 else if($param->isDefaultValueAvailable()) 103 $ps[]=$param->getDefaultValue(); 104 else 105 return false; 106 } 107 $method->invokeArgs($object,$ps); 108 return true; 109 } 110 } |
#5 |
+
– C:\limesurvey_train\application\core\Survey_Common_Action.php(82):
CAction->runWithParamsInternal(templates,
ReflectionMethod, array("r" => "admin/templates/sa/view", "sa" =>
"view")) 77 $oMethod = new ReflectionMethod($this, $sDefault); 78 } 79 80 // We're all good to go, let's execute it 81 // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params 82 return parent::runWithParamsInternal($this, $oMethod, $params); 83 } 84 85 /** 86 * Some functions have different parameters, which are just an alias of the 87 * usual parameters we're getting in the url. This function just populates |
#6 |
+
– C:\limesurvey_train\framework\web\CController.php(309):
Survey_Common_Action->runWithParams(array("r"
=> "admin/templates/sa/view", "sa" => "view")) 304 { 305 $priorAction=$this->_action; 306 $this->_action=$action; 307 if($this->beforeAction($action)) 308 { 309 if($action->runWithParams($this->getActionParams())===false) 310 $this->invalidActionParams($action); 311 else 312 $this->afterAction($action); 313 } 314 $this->_action=$priorAction; |
#7 |
+
– C:\limesurvey_train\framework\web\CController.php(287):
CController->runAction(templates)
282 * @see runAction 283 */ 284 public function runActionWithFilters($action,$filters) 285 { 286 if(empty($filters)) 287 $this->runAction($action); 288 else 289 { 290 $priorAction=$this->_action; 291 $this->_action=$action; 292 CFilterChain::create($this,$action,$filters)->run(); |
#8 |
+
– C:\limesurvey_train\framework\web\CController.php(266):
CController->runActionWithFilters(templates,
array()) 261 { 262 if(($parent=$this->getModule())===null) 263 $parent=Yii::app(); 264 if($parent->beforeControllerAction($this,$action)) 265 { 266 $this->runActionWithFilters($action,$this->filters()); 267 $parent->afterControllerAction($this,$action); 268 } 269 } 270 else 271 $this->missingAction($actionID); |
#9 |
+
– C:\limesurvey_train\application\controllers\AdminController.php(169):
CController->run("templates") 164 $this->redirect($this->createUrl('/admin/authentication/sa/login')); 165 } 166 167 } 168 169 return parent::run($action); 170 } 171 172 /** 173 * Routes all the actions to their respective places 174 * |
#10 |
+
– C:\limesurvey_train\framework\web\CWebApplication.php(276):
AdminController->run("templates")
271 { 272 list($controller,$actionID)=$ca; 273 $oldController=$this->_controller; 274 $this->_controller=$controller; 275 $controller->init(); 276 $controller->run($actionID); 277 $this->_controller=$oldController; 278 } 279 else 280 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 281 array('{route}'=>$route===''?$this->defaultController:$route))); |
#11 |
+
– C:\limesurvey_train\framework\web\CWebApplication.php(135):
CWebApplication->runController("admin/templates/sa/view")
130 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 131 $_GET[$name]=$value; 132 } 133 else 134 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 135 $this->runController($route); 136 } 137 138 /** 139 * Registers the core application components. 140 * This method overrides the parent implementation by registering additional core components. |
#12 |
+
– C:\limesurvey_train\framework\base\CApplication.php(162):
CWebApplication->processRequest()
157 */ 158 public function run() 159 { 160 if($this->hasEventHandler('onBeginRequest')) 161 $this->onBeginRequest(new CEvent($this)); 162 $this->processRequest(); 163 if($this->hasEventHandler('onEndRequest')) 164 $this->onEndRequest(new CEvent($this)); 165 } 166 167 /** |
#13 |
+
– C:\limesurvey_train\index.php(178):
CApplication->run() 173 * 174 */ 175 require_once BASEPATH . 'yii' . EXT; 176 require_once APPPATH . 'core/LSYii_Application' . EXT; 177 178 Yii::createApplication('LSYii_Application', APPPATH . 'config/config' . EXT)->run(); 179 180 /* End of file index.php */ 181 /* Location: ./index.php */ |