diff options
| author | Björn Geiger | 2011-04-12 15:45:25 +0200 |
|---|---|---|
| committer | Björn Geiger | 2011-04-12 15:45:25 +0200 |
| commit | b8942eba75e1553264289200f33f4ba5fae18495 (patch) | |
| tree | 8fedd65e2fb743f4af2baf82c8852d1fa0f781d0 /application/controllers/ResourceController.php | |
| parent | Anzeige Request bei Personendetails (diff) | |
| parent | config test (diff) | |
| download | pbs2-b8942eba75e1553264289200f33f4ba5fae18495.tar.gz pbs2-b8942eba75e1553264289200f33f4ba5fae18495.tar.xz pbs2-b8942eba75e1553264289200f33f4ba5fae18495.zip | |
Merge branch 'master' of ssh://git.openslx.org/lsfks/master-teamprojekt/pbs2
Diffstat (limited to 'application/controllers/ResourceController.php')
| -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..542fcda 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 *"); } } |
