/media/shnoulle/data/webdev/master/application/helpers/admin/import_helper.php(2222)
2210 $results['importwarnings'][] = gT("The desired survey ID was already in use, therefore a random one was assigned."); 2211 } 2212 } else { 2213 $results['error'] = CHtml::errorSummary($newSurvey, gT("Unable to import survey.")); 2214 return $results; 2215 } 2216 } 2217 2218 // Single flag to indicate if the attachements format is wrong, to avoid showing the warning multiple times 2219 $wrongAttachmentsFormat = false; 2220 2221 // Import survey languagesettings table =================================================================================== 2222 foreach ($xml->surveys_languagesettings->rows->row as $row) { 2223 $insertdata = array(); 2224 foreach ($row as $key => $value) { 2225 $insertdata[(string) $key] = (string) $value; 2226 } 2227 2228 if (!in_array($insertdata['surveyls_language'], $aLanguagesSupported)) { 2229 continue; 2230 } 2231 2232 // Assign new survey ID 2233 $insertdata['surveyls_survey_id'] = $iNewSID; 2234
| #0 |
+
–
/media/shnoulle/data/webdev/master/application/helpers/admin/import_helper.php(1272): XMLImportSurvey("/media/shnoulle/data/webdev/master/tmp/xu4bqbnhx9mmsdmmpvzqi79ze...", "<?xml version="1.0" encoding="UTF-8"?>
<document>
<LimeSurve...", null, null, ...) 1267 } else { 1268 $sExtension = ""; 1269 } 1270 switch ($sExtension) { 1271 case 'lss': 1272 $aImportResults = XMLImportSurvey($sFullFilePath, null, $sNewSurveyName, $DestSurveyID, $bTranslateLinksFields); 1273 if (!empty($aImportResults['newsid'])) { 1274 $SurveyIntegrity = new LimeSurvey\Models\Services\SurveyIntegrity(Survey::model()->findByPk($aImportResults['newsid'])); 1275 $SurveyIntegrity->fixSurveyIntegrity(); 1276 finalizeSurveyImportFile($aImportResults['newsid'], $baselang); 1277 } |
| #1 |
+
–
/media/shnoulle/data/webdev/master/application/controllers/SurveyAdministrationController.php(2264): importSurveyFile("/media/shnoulle/data/webdev/master/tmp/xu4bqbnhx9mmsdmmpvzqi79ze...", true) 2259 2260 // Now, we have the survey : start importing 2261 Yii::app()->loadHelper('admin/import'); 2262 2263 if ($action == 'importsurvey' && !$aData['bFailed']) { 2264 $aImportResults = importSurveyFile($sFullFilepath, (Yii::app()->request->getPost('translinksfields') == '1')); 2265 if (is_null($aImportResults)) { 2266 $aImportResults = array( 2267 'error' => gT("Unknown error while reading the file, no survey created.") 2268 ); 2269 } |
| #2 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/actions/CInlineAction.php(49): SurveyAdministrationController->actionCopy() 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 49 $controller->$methodName(); 50 return true; 51 } 52 } |
| #3 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CController.php(308): CInlineAction->runWithParams(array("r" => "surveyAdministration/copy")) 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; |
| #4 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/filters/CFilterChain.php(134): CController->runAction(CInlineAction) 129 $filter=$this->itemAt($this->filterIndex++); 130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 131 $filter->filter($this); 132 } 133 else 134 $this->controller->runAction($this->action); 135 } 136 } |
| #5 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CController.php(1119): CFilterChain->run() 1114 * @throws CHttpException if the current request is not a POST request 1115 */ 1116 public function filterPostOnly($filterChain) 1117 { 1118 if(Yii::app()->getRequest()->getIsPostRequest()) 1119 $filterChain->run(); 1120 else 1121 throw new CHttpException(400,Yii::t('yii','Your request is invalid.')); 1122 } 1123 1124 /** |
| #6 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/filters/CInlineFilter.php(58): CController->filterPostOnly(CFilterChain) 53 * @param CFilterChain $filterChain the filter chain that the filter is on. 54 */ 55 public function filter($filterChain) 56 { 57 $method='filter'.$this->name; 58 $filterChain->controller->$method($filterChain); 59 } 60 } |
| #7 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/filters/CFilterChain.php(131): CInlineFilter->filter(CFilterChain) 126 { 127 if($this->offsetExists($this->filterIndex)) 128 { 129 $filter=$this->itemAt($this->filterIndex++); 130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 131 $filter->filter($this); 132 } 133 else 134 $this->controller->runAction($this->action); 135 } 136 } |
| #8 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CController.php(291): CFilterChain->run() 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); 292 $this->_action=$priorAction; 293 } 294 } 295 296 /** |
| #9 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array("postOnly + copy")) 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 |
+
–
/media/shnoulle/data/webdev/master/application/controllers/LSBaseController.php(145): CController->run("copy") 140 $this->redirect(array('/admin/authentication/sa/login')); 141 } 142 } 143 } 144 145 parent::run($action); 146 } 147 148 /** 149 * Load and set session vars 150 * |
| #11 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CWebApplication.php(282): LSBaseController->run("copy") 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 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("surveyAdministration/copy") 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 |
+
–
/media/shnoulle/data/webdev/master/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 |
+
–
/media/shnoulle/data/webdev/master/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 */ |