diff options
| author | michael pereira | 2011-04-12 15:39:24 +0200 |
|---|---|---|
| committer | michael pereira | 2011-04-12 15:39:24 +0200 |
| commit | 3eda55b48ef19ea1059bd2fe57a3236ee1bf7aff (patch) | |
| tree | c26ffd3f85ad1cd4bd8d0b35d472e5a600aae32c /application | |
| parent | config test (diff) | |
| download | pbs2-3eda55b48ef19ea1059bd2fe57a3236ee1bf7aff.tar.gz pbs2-3eda55b48ef19ea1059bd2fe57a3236ee1bf7aff.tar.xz pbs2-3eda55b48ef19ea1059bd2fe57a3236ee1bf7aff.zip | |
config test
Diffstat (limited to 'application')
| -rw-r--r-- | application/controllers/ResourceController.php | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/application/controllers/ResourceController.php b/application/controllers/ResourceController.php index bb6ada9..10e1c22 100644 --- a/application/controllers/ResourceController.php +++ b/application/controllers/ResourceController.php @@ -84,22 +84,19 @@ class ResourceController extends Zend_Controller_Action $configID = $bootmenuentry->getConfigID(); - - print_a("../resources/config/$configID/"); if(is_dir("../resources/config/$configID/") && is_numeric($configID)){ - print_a(is_dir("../resources/config/$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'); // -// // create the gzipped tarfile. -// chdir("../resources/config/$configID/"); -// passthru( "tar cz ./"); + // create the gzipped tarfile. + chdir("../resources/config/$configID/"); + echo getcwd(); + passthru( "tar cz ./"); } - print_a(is_dir("../resources/config/$configID/")); } public function getkernelAction() |
