diff options
| author | michael pereira | 2011-04-12 15:34:04 +0200 |
|---|---|---|
| committer | michael pereira | 2011-04-12 15:34:04 +0200 |
| commit | b9c216945d1a9556d2cf9aa7a04431cf3a50f13c (patch) | |
| tree | 358ffb04fefc473156802716b91ad37814988a13 /application | |
| parent | bootmenu anzeige fix (diff) | |
| download | pbs2-b9c216945d1a9556d2cf9aa7a04431cf3a50f13c.tar.gz pbs2-b9c216945d1a9556d2cf9aa7a04431cf3a50f13c.tar.xz pbs2-b9c216945d1a9556d2cf9aa7a04431cf3a50f13c.zip | |
getconfig test
Diffstat (limited to 'application')
| -rw-r--r-- | application/controllers/ResourceController.php | 26 | ||||
| -rw-r--r-- | application/modules/user/controllers/PrebootController.php | 2 |
2 files changed, 14 insertions, 14 deletions
diff --git a/application/controllers/ResourceController.php b/application/controllers/ResourceController.php index 77784f9..97f40d0 100644 --- a/application/controllers/ResourceController.php +++ b/application/controllers/ResourceController.php @@ -81,22 +81,22 @@ class ResourceController extends Zend_Controller_Action $bootmenuentry = new Application_Model_BootMenuEntries(); $bmm = new Application_Model_BootMenuEntriesMapper(); $bmm->find($bootmenuentryID,$bootmenuentry); - # print_a($bootmenuentry); + print_a($bootmenuentry); $configID = $bootmenuentry->getConfigID(); - if(is_dir("../resources/config/$configID/config/") && is_numeric($configID)){ - - header('Content-Type: application/x-gzip'); - $content_disp = ( ereg('MSIE ([0-9].[0-9]{1,2})', $_SERVER['HTTP_USER_AGENT']) == 'IE') ? 'inline' : 'attachment'; - header('Content-Disposition: ' . $content_disp . '; filename="default.tgz"'); - header('Pragma: no-cache'); - header('Expires: 0'); - - // create the gzipped tarfile. - chdir("../resources/config/$configID/"); - passthru( "tar cz ./"); - } +// if(is_dir("../resources/config/$configID/") && is_numeric($configID)){ +// +// header('Content-Type: application/x-gzip'); +// $content_disp = ( ereg('MSIE ([0-9].[0-9]{1,2})', $_SERVER['HTTP_USER_AGENT']) == 'IE') ? 'inline' : 'attachment'; +// header('Content-Disposition: ' . $content_disp . '; filename="default.tgz"'); +// header('Pragma: no-cache'); +// header('Expires: 0'); +// +// // create the gzipped tarfile. +// chdir("../resources/config/$configID/"); +// passthru( "tar cz ./"); +// } } public function getkernelAction() diff --git a/application/modules/user/controllers/PrebootController.php b/application/modules/user/controllers/PrebootController.php index 0a1432c..2aeafda 100644 --- a/application/modules/user/controllers/PrebootController.php +++ b/application/modules/user/controllers/PrebootController.php @@ -1,4 +1,4 @@ -l<?php +<?php class User_PrebootController extends Zend_Controller_Action { |
