From c2cd241b00899b662c6d1ac9fc2dbe6cc6131c7b Mon Sep 17 00:00:00 2001 From: michael pereira Date: Tue, 12 Apr 2011 15:43:26 +0200 Subject: config test --- application/controllers/ResourceController.php | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'application/controllers/ResourceController.php') 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 ./*"); } } -- cgit v1.2.3-55-g7522