summaryrefslogtreecommitdiffstats
path: root/application/controllers/ResourceController.php
diff options
context:
space:
mode:
authormichael pereira2011-04-12 15:34:04 +0200
committermichael pereira2011-04-12 15:34:04 +0200
commitb9c216945d1a9556d2cf9aa7a04431cf3a50f13c (patch)
tree358ffb04fefc473156802716b91ad37814988a13 /application/controllers/ResourceController.php
parentbootmenu anzeige fix (diff)
downloadpbs2-b9c216945d1a9556d2cf9aa7a04431cf3a50f13c.tar.gz
pbs2-b9c216945d1a9556d2cf9aa7a04431cf3a50f13c.tar.xz
pbs2-b9c216945d1a9556d2cf9aa7a04431cf3a50f13c.zip
getconfig test
Diffstat (limited to 'application/controllers/ResourceController.php')
-rw-r--r--application/controllers/ResourceController.php26
1 files changed, 13 insertions, 13 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()