C:\xampp\htdocs\limesurvey250\application\controllers\admin\templates.php(52)
40 * 41 * @access public 42 * @param string $templatename 43 * @return void 44 */ 45 public function templatezip($templatename) 46 { 47 global $oEditedTemplate; 48 if (!Permission::model()->hasGlobalPermission('templates','export')) 49 { 50 die('No permission'); 51 } 52 $templatedir = $oEditedTemplate->viewPath . DIRECTORY_SEPARATOR; 53 $tempdir = Yii::app()->getConfig('tempdir'); 54 55 $zipfile = "$tempdir/$templatename.zip"; 56 Yii::app()->loadLibrary('admin.pclzip'); 57 $zip = new PclZip($zipfile); 58 $zip->create($templatedir, PCLZIP_OPT_REMOVE_PATH, $oEditedTemplate->viewPath); 59 60 if (is_file($zipfile)) { 61 // Send the file for download! 62 header("Pragma: public"); 63 header("Expires: 0"); 64 header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
#0 |
unknown(0): templates->templatezip("default")
|
#1 |
+
–
C:\xampp\htdocs\limesurvey250\framework\web\actions\CAction.php(109): ReflectionMethod->invokeArgs(templates, array("default")) 104 elseif($param->isDefaultValueAvailable()) 105 $ps[]=$param->getDefaultValue(); 106 else 107 return false; 108 } 109 $method->invokeArgs($object,$ps); 110 return true; 111 } 112 } |
#2 |
+
–
C:\xampp\htdocs\limesurvey250\application\core\Survey_Common_Action.php(101): CAction->runWithParamsInternal(templates, ReflectionMethod, array("templatename" => "default", "sa" => "templatezip")) 096 $oMethod = new ReflectionMethod($this, $sDefault); 097 } 098 099 // We're all good to go, let's execute it 100 // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params 101 return parent::runWithParamsInternal($this, $oMethod, $params); 102 } 103 104 /** 105 * Some functions have different parameters, which are just an alias of the 106 * usual parameters we're getting in the url. This function just populates |
#3 |
+
–
C:\xampp\htdocs\limesurvey250\application\controllers\admin\templates.php(33): Survey_Common_Action->runWithParams(array("templatename" => "default", "sa" => "templatezip")) 28 { 29 if (!Permission::model()->hasGlobalPermission('templates','read')) 30 { 31 die('No permission'); 32 } 33 parent::runWithParams($params); 34 } 35 36 37 38 /** |
#4 |
+
–
C:\xampp\htdocs\limesurvey250\framework\web\CController.php(308): templates->runWithParams(array("templatename" => "default", "sa" => "templatezip")) 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; |
#5 |
+
–
C:\xampp\htdocs\limesurvey250\framework\web\CController.php(286): CController->runAction(templates) 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(); |
#6 |
+
–
C:\xampp\htdocs\limesurvey250\framework\web\CController.php(265): CController->runActionWithFilters(templates, 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); |
#7 |
+
–
C:\xampp\htdocs\limesurvey250\application\controllers\AdminController.php(164): CController->run("templates") 159 $this->redirect(array('/admin/authentication/sa/login')); 160 } 161 162 } 163 164 return parent::run($action); 165 } 166 167 /** 168 * Routes all the actions to their respective places 169 * |
#8 |
+
–
C:\xampp\htdocs\limesurvey250\framework\web\CWebApplication.php(282): AdminController->run("templates") 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))); |
#9 |
+
–
C:\xampp\htdocs\limesurvey250\framework\web\CWebApplication.php(141): CWebApplication->runController("admin/templates/sa/templatezip") 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. |
#10 |
+
–
C:\xampp\htdocs\limesurvey250\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 /** |
#11 |
+
–
C:\xampp\htdocs\limesurvey250\index.php(211): CApplication->run() 206 die (sprintf('%s should be writable by the webserver (766 or 776).', $runtimePath)); 207 } 208 } 209 210 Yii::$enableIncludePath = false; 211 Yii::createApplication('LSYii_Application', $config)->run(); 212 213 /* End of file index.php */ 214 /* Location: ./index.php */ |