summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--application/controllers/ResourceController.php15
1 files changed, 7 insertions, 8 deletions
diff --git a/application/controllers/ResourceController.php b/application/controllers/ResourceController.php
index 10e1c22..7c1c9e0 100644
--- a/application/controllers/ResourceController.php
+++ b/application/controllers/ResourceController.php
@@ -86,16 +86,15 @@ class ResourceController extends Zend_Controller_Action
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');
-//
+ 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/");
- echo getcwd();
- passthru( "tar cz ./");
+ passthru( "tar cz ./*");
}
}