summaryrefslogtreecommitdiffstats
path: root/application/controllers/ResourceController.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/controllers/ResourceController.php')
-rw-r--r--application/controllers/ResourceController.php11
1 files changed, 4 insertions, 7 deletions
diff --git a/application/controllers/ResourceController.php b/application/controllers/ResourceController.php
index bb6ada9..10e1c22 100644
--- a/application/controllers/ResourceController.php
+++ b/application/controllers/ResourceController.php
@@ -84,22 +84,19 @@ class ResourceController extends Zend_Controller_Action
$configID = $bootmenuentry->getConfigID();
-
- print_a("../resources/config/$configID/");
if(is_dir("../resources/config/$configID/") && is_numeric($configID)){
- print_a(is_dir("../resources/config/$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 ./");
+ // create the gzipped tarfile.
+ chdir("../resources/config/$configID/");
+ echo getcwd();
+ passthru( "tar cz ./");
}
- print_a(is_dir("../resources/config/$configID/"));
}
public function getkernelAction()