diff options
| author | michael pereira | 2011-03-25 13:13:36 +0100 |
|---|---|---|
| committer | michael pereira | 2011-03-25 13:13:36 +0100 |
| commit | 1873a542b79f5020592d3b61e529ceb7369efb10 (patch) | |
| tree | aefda6850eb2e049291e90fd4ca6f7fec014ec5f /application/modules/dev | |
| parent | ausgewählte Mitgliedschaft kann nun geändert werden (diff) | |
| download | pbs2-1873a542b79f5020592d3b61e529ceb7369efb10.tar.gz pbs2-1873a542b79f5020592d3b61e529ceb7369efb10.tar.xz pbs2-1873a542b79f5020592d3b61e529ceb7369efb10.zip | |
fbgui auth erstellt
Diffstat (limited to 'application/modules/dev')
| -rw-r--r-- | application/modules/dev/controllers/BootosController.php | 7 | ||||
| -rw-r--r-- | application/modules/dev/controllers/ResourceController.php | 2 |
2 files changed, 6 insertions, 3 deletions
diff --git a/application/modules/dev/controllers/BootosController.php b/application/modules/dev/controllers/BootosController.php index 5f8aaf0..1f31a69 100644 --- a/application/modules/dev/controllers/BootosController.php +++ b/application/modules/dev/controllers/BootosController.php @@ -70,9 +70,12 @@ class dev_BootosController extends Zend_Controller_Action $initpath = "../resources/bootos/".$bootosID."/initramfs/"; $kernelpath = "../resources/bootos/".$bootosID."/kernel/"; + + mkdir($initpath ,0777, true); + mkdir($kernelpath ,0777, true); - exec("wget -P ".$kernelpath." ".$bootos->getPath_kernel()); - exec("wget -P ".$initpath." ".$bootos->getPath_init()); + exec("wget -O '".$kernelpath."kernel' ".$bootos->getPath_kernel()); + exec("wget -O '".$initpath."initramfs' ".$bootos->getPath_init()); diff --git a/application/modules/dev/controllers/ResourceController.php b/application/modules/dev/controllers/ResourceController.php index f37e0bc..03807c7 100644 --- a/application/modules/dev/controllers/ResourceController.php +++ b/application/modules/dev/controllers/ResourceController.php @@ -61,7 +61,7 @@ class dev_ResourceController extends Zend_Controller_Action 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="config.tar.gz"'); + header('Content-Disposition: ' . $content_disp . '; filename="config.tgz"'); header('Pragma: no-cache'); header('Expires: 0'); |
