summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authormichael pereira2011-04-12 15:39:24 +0200
committermichael pereira2011-04-12 15:39:24 +0200
commit3eda55b48ef19ea1059bd2fe57a3236ee1bf7aff (patch)
treec26ffd3f85ad1cd4bd8d0b35d472e5a600aae32c /application
parentconfig test (diff)
downloadpbs2-3eda55b48ef19ea1059bd2fe57a3236ee1bf7aff.tar.gz
pbs2-3eda55b48ef19ea1059bd2fe57a3236ee1bf7aff.tar.xz
pbs2-3eda55b48ef19ea1059bd2fe57a3236ee1bf7aff.zip
config test
Diffstat (limited to 'application')
-rw-r--r--application/controllers/ResourceController.php11
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()