diff options
| author | michael pereira | 2011-04-12 15:43:26 +0200 |
|---|---|---|
| committer | michael pereira | 2011-04-12 15:43:26 +0200 |
| commit | c2cd241b00899b662c6d1ac9fc2dbe6cc6131c7b (patch) | |
| tree | d482604ede47ccdd50ffab733595ba10f905d4b0 /application | |
| parent | config test (diff) | |
| download | pbs2-c2cd241b00899b662c6d1ac9fc2dbe6cc6131c7b.tar.gz pbs2-c2cd241b00899b662c6d1ac9fc2dbe6cc6131c7b.tar.xz pbs2-c2cd241b00899b662c6d1ac9fc2dbe6cc6131c7b.zip | |
config test
Diffstat (limited to 'application')
| -rw-r--r-- | application/controllers/ResourceController.php | 15 |
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 ./*"); } } |
