E:\WebSite\limesurvey\application\helpers\admin\activate_helper.php(528)
516 global $modifyoutput; 517 Yii::app()->loadHelper("database"); 518 519 // find out the name of the default constraint 520 // Did I already mention that this is the most suckiest thing I have ever seen in MSSQL database? 521 $dfquery = "SELECT c_obj.name AS constraint_name 522 FROM sys.sysobjects AS c_obj INNER JOIN 523 sys.sysobjects AS t_obj ON c_obj.parent_obj = t_obj.id INNER JOIN 524 sys.sysconstraints AS con ON c_obj.id = con.constid INNER JOIN 525 sys.syscolumns AS col ON t_obj.id = col.id AND con.colid = col.colid 526 WHERE (c_obj.xtype = 'D') AND (col.name = '$fieldname') AND (t_obj.name='{{{$tablename}}}')"; 527 $result = dbExecuteAssoc($dfquery)->read(); 528 $defaultname = $result['CONTRAINT_NAME']; 529 if ($defaultname != false) { 530 modifyDatabase("", "ALTER TABLE {{{$tablename}}} DROP CONSTRAINT {$defaultname[0]}"); echo $modifyoutput; flush(); 531 } 532 } 533 534 535 /** 536 * @param string $tablename 537 */ 538 function mssql_drop_primary_index($tablename) 539 { 540 Yii::app()->loadHelper("database");
#0 |
+
–
E:\WebSite\limesurvey\application\helpers\admin\activate_helper.php(449): mssql_drop_constraint("id", "survey_843642") 444 $iAutoNumberStart = Yii::app()->db->createCommand($sQuery)->queryScalar(); 445 //if there is an autonumber_start field, start auto numbering here 446 if ($iAutoNumberStart !== false && $iAutoNumberStart > 0) { 447 if (Yii::app()->db->driverName == 'mssql' || Yii::app()->db->driverName == 'sqlsrv' || Yii::app()->db->driverName == 'dblib') { 448 mssql_drop_primary_index('survey_'.$iSurveyID); 449 mssql_drop_constraint('id', 'survey_'.$iSurveyID); 450 $sQuery = "ALTER TABLE {{survey_{$iSurveyID}}} drop column id "; 451 Yii::app()->db->createCommand($sQuery)->execute(); 452 $sQuery = "ALTER TABLE {{survey_{$iSurveyID}}} ADD [id] int identity({$iAutoNumberStart},1)"; 453 Yii::app()->db->createCommand($sQuery)->execute(); 454 // Add back the primaryKey |
#1 |
+
–
E:\WebSite\limesurvey\application\helpers\admin\import_helper.php(822): activateSurvey("843642") 817 if ($aImportResults && $aImportResults['newsid']) { 818 TemplateConfiguration::checkAndcreateSurveyConfig($aImportResults['newsid']); 819 } 820 // Activate the survey 821 Yii::app()->loadHelper("admin/activate"); 822 activateSurvey($aImportResults['newsid']); 823 unlink(Yii::app()->getConfig('tempdir').DIRECTORY_SEPARATOR.$aFile['filename']); 824 break; 825 } 826 } 827 |
#2 |
+
–
E:\WebSite\limesurvey\application\controllers\admin\surveyadmin.php(1406): importSurveyFile("E:\WebSite\limesurvey\tmp\q6fgp2x87g9kmk2pxgpk98pe3tb6mc.lsa", true) 1401 1402 // Now, we have the survey : start importing 1403 Yii::app()->loadHelper('admin/import'); 1404 1405 if ($action == 'importsurvey' && !$aData['bFailed']) { 1406 $aImportResults = importSurveyFile($sFullFilepath, (Yii::app()->request->getPost('translinksfields') == '1')); 1407 if (is_null($aImportResults)) { 1408 $aImportResults = array( 1409 'error'=>gT("Unknown error while reading the file, no survey created.") 1410 ); 1411 } |
#3 |
unknown(0): SurveyAdmin->copy()
|
#4 |
+
–
E:\WebSite\limesurvey\framework\web\actions\CAction.php(115): ReflectionMethod->invokeArgs(SurveyAdmin, array()) 110 elseif($param->isDefaultValueAvailable()) 111 $ps[]=$param->getDefaultValue(); 112 else 113 return false; 114 } 115 $method->invokeArgs($object,$ps); 116 return true; 117 } 118 } |
#5 |
+
–
E:\WebSite\limesurvey\application\core\Survey_Common_Action.php(83): CAction->runWithParamsInternal(SurveyAdmin, ReflectionMethod, array("r" => "admin/survey/sa/copy", "sa" => "copy", "sAction" => "importsurvey")) 78 $oMethod = new ReflectionMethod($this, $sDefault); 79 } 80 81 // We're all good to go, let's execute it 82 // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params 83 return parent::runWithParamsInternal($this, $oMethod, $params); 84 } 85 86 /** 87 * Some functions have different parameters, which are just an alias of the 88 * usual parameters we're getting in the url. This function just populates |
#6 |
+
–
E:\WebSite\limesurvey\framework\web\CController.php(308): Survey_Common_Action->runWithParams(array("r" => "admin/survey/sa/copy", "sa" => "copy", "sAction" => "importsurvey")) 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; |
#7 |
+
–
E:\WebSite\limesurvey\framework\web\CController.php(286): CController->runAction(SurveyAdmin) 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(); |
#8 |
+
–
E:\WebSite\limesurvey\framework\web\CController.php(265): CController->runActionWithFilters(SurveyAdmin, 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); |
#9 |
+
–
E:\WebSite\limesurvey\application\controllers\AdminController.php(165): CController->run("survey") 160 $this->redirect(array('/admin/authentication/sa/login')); 161 } 162 } 163 } 164 165 return parent::run($action); 166 } 167 168 /** 169 * Routes all the actions to their respective places 170 * |
#10 |
+
–
E:\WebSite\limesurvey\framework\web\CWebApplication.php(282): AdminController->run("survey") 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 |
+
–
E:\WebSite\limesurvey\framework\web\CWebApplication.php(141): CWebApplication->runController("admin/survey/sa/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. |
#12 |
+
–
E:\WebSite\limesurvey\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 |
+
–
E:\WebSite\limesurvey\index.php(194): CApplication->run() 189 require_once APPPATH . 'core/LSYii_Application' . EXT; 190 191 $config = require_once(APPPATH . 'config/internal' . EXT); 192 193 Yii::$enableIncludePath = false; 194 Yii::createApplication('LSYii_Application', $config)->run(); 195 196 /* End of file index.php */ 197 /* Location: ./index.php */ |