summaryrefslogtreecommitdiffstats
path: root/application/controllers/ResourceController.php
diff options
context:
space:
mode:
authormichael pereira2011-04-12 15:43:26 +0200
committermichael pereira2011-04-12 15:43:26 +0200
commitc2cd241b00899b662c6d1ac9fc2dbe6cc6131c7b (patch)
treed482604ede47ccdd50ffab733595ba10f905d4b0 /application/controllers/ResourceController.php
parentconfig test (diff)
downloadpbs2-c2cd241b00899b662c6d1ac9fc2dbe6cc6131c7b.tar.gz
pbs2-c2cd241b00899b662c6d1ac9fc2dbe6cc6131c7b.tar.xz
pbs2-c2cd241b00899b662c6d1ac9fc2dbe6cc6131c7b.zip
config test
Diffstat (limited to 'application/controllers/ResourceController.php')
-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 ./*");
}
}