/data/webdev/master/application/helpers/expressions/em_manager_helper.php(8462)
8450 if (!preg_match('/_filecount$/', $sq)) { 8451 $json = $value; 8452 $aFiles = json_decode($json); 8453 $iSize = (is_null($aFiles)) ? 0 : @count($aFiles); 8454 // if the files have not been saved already, 8455 // move the files from tmp to the files folder 8456 8457 $tmp = $LEM->surveyOptions['tempdir'] . 'upload' . DIRECTORY_SEPARATOR; 8458 if (!is_null($aFiles) && $iSize > 0) { 8459 // Move the (unmoved, temp) files from temp to files directory. 8460 // Check all possible file uploads 8461 for ($i = 0; $i < $iSize; $i++) { 8462 $aFiles[$i]->name = sanitize_filename($aFiles[$i]->name, false, false, true); 8463 $aFiles[$i]->filename = get_absolute_path($aFiles[$i]->filename); 8464 if (file_exists($tmp . $aFiles[$i]->filename)) { 8465 $sDestinationFileName = 'fu_' . randomChars(15); 8466 if (!is_dir($LEM->surveyOptions['target'])) { 8467 mkdir($LEM->surveyOptions['target'], 0777, true); 8468 } 8469 if (!rename($tmp . $aFiles[$i]->filename, $LEM->surveyOptions['target'] . $sDestinationFileName)) { 8470 echo "Error moving file to target destination"; 8471 } 8472 $aFiles[$i]->filename = $sDestinationFileName; 8473 } 8474 }
#0 |
+
–
/data/webdev/master/application/helpers/expressions/em_manager_helper.php(5316): LimeExpressionManager::ProcessCurrentResponses() 5311 // NB: No break needed 5312 case 'group': 5313 // First validate the current group 5314 $LEM->StartProcessingPage(); 5315 if ($processPOST) { 5316 $updatedValues = $LEM->ProcessCurrentResponses(); 5317 } else { 5318 $updatedValues = []; 5319 } 5320 $message = ''; 5321 if ($LEM->currentGroupSeq != -1 && $seq > $LEM->currentGroupSeq) { // only re-validate if jumping forward |
#1 |
+
–
/data/webdev/master/application/helpers/SurveyRuntimeHelper.php(960): LimeExpressionManager::JumpTo(1, false) 955 // Save actual page , 956 LimeExpressionManager::JumpTo($_SESSION[$this->LEMsessid]['step'], false, true, true); 957 // Review whole before set finished to true (see #09906), index==1 don't need it because never force move 958 LimeExpressionManager::JumpTo(0, false, false, true); // no preview, no post and force 959 } 960 $this->aMoveResult = LimeExpressionManager::JumpTo($_SESSION[$this->LEMsessid]['totalsteps'] + 1, false); 961 } 962 } 963 if ($this->sMove == 'clearall') { 964 $this->manageClearAll(); 965 } |
#2 |
+
–
/data/webdev/master/application/helpers/SurveyRuntimeHelper.php(647): SurveyRuntimeHelper->setMoveResult() 642 $this->initFirstStep(); // If it's the first time user load this survey, will init session and LEM 643 $this->initTotalAndMaxSteps(); 644 $this->checkIfUseBrowserNav(); // Check if user used browser navigation, or relaoded page 645 if ($this->sMove != 'clearcancel' && $this->sMove != 'confirmquota') { 646 $this->checkPrevStep(); // Check if prev step is set, else set it 647 $this->setMoveResult(); 648 $this->checkClearCancel(); 649 $this->setPrevStep(); 650 $this->checkIfFinished(); 651 $this->setStep(); 652 |
#3 |
+
–
/data/webdev/master/application/helpers/SurveyRuntimeHelper.php(203): SurveyRuntimeHelper->initMove() 198 // 1: We check if token and/or captcha form shouls be shown 199 if (!isset($_SESSION[$this->LEMsessid]['step'])) { 200 $this->showTokenOrCaptchaFormsIfNeeded(); 201 } 202 if (!$this->previewgrp && !$this->previewquestion) { 203 $this->initMove(); // main methods to init session, LEM, moves, errors, etc 204 $this->checkForDataSecurityAccepted(); // must be called after initMove to allow LEM to be initialized 205 if (EmCacheHelper::useCache()) { 206 $this->aSurveyInfo['emcache'] = true; 207 } 208 $this->checkQuotas(); // check quotas (then the process will stop here) |
#4 |
+
–
/data/webdev/master/application/controllers/survey/index.php(618): SurveyRuntimeHelper->run("753126",
array("surveyid" => "753126", "thissurvey" => array("htmlemail"
=> "Y", "format" => "G", "tokenencryptionoptions" => "",
"template" => "skelvanilla", ...), "thisstep" => "1",
"tokensexist" => 0, ...)) 613 unset($redata); 614 $redata = compact(array_keys(get_defined_vars())); 615 Yii::import('application.helpers.SurveyRuntimeHelper'); 616 $tmp = new SurveyRuntimeHelper(); 617 // try { 618 $tmp->run($surveyid, $redata); 619 // } catch (WrongTemplateVersionException $ex) { 620 // echo $ex->getMessage(); 621 // } 622 } 623 |
#5 |
+
–
/data/webdev/master/application/controllers/survey/index.php(22): Index->action() 17 public $oTemplate; 18 19 public function run() 20 { 21 useFirebug(); 22 $this->action(); 23 } 24 25 public function action() 26 { 27 global $surveyid; |
#6 |
+
–
/data/webdev/master/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. |
#7 |
+
–
/data/webdev/master/framework/web/CController.php(308): CAction->runWithParams(array("r" => "survey/index", "sid" => "753126")) 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; |
#8 |
+
–
/data/webdev/master/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(); |
#9 |
+
–
/data/webdev/master/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); |
#10 |
+
–
/data/webdev/master/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))); |
#11 |
+
–
/data/webdev/master/framework/web/CWebApplication.php(141): CWebApplication->runController("survey/index") 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. |
#12 |
+
–
/data/webdev/master/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 /** |
#13 |
+
–
/data/webdev/master/index.php(192): CApplication->run() 187 require_once APPPATH . 'core/LSYii_Application' . EXT; 188 189 $config = require_once(APPPATH . 'config/internal' . EXT); 190 191 Yii::$enableIncludePath = false; 192 Yii::createApplication('LSYii_Application', $config)->run(); 193 194 /* End of file index.php */ 195 /* Location: ./index.php */ |