summaryrefslogtreecommitdiffstats
path: root/application/modules/dev/controllers/BootisoController.php
diff options
context:
space:
mode:
authormichael pereira2011-03-22 12:29:36 +0100
committermichael pereira2011-03-22 12:29:36 +0100
commit01da64858b8624588d5da7bd44763e55b41eefdf (patch)
tree911c775c13c4a377d5e37e792f46108be4939f39 /application/modules/dev/controllers/BootisoController.php
parentfallback lösungen für fbgui hinzugefügt (diff)
downloadpbs2-01da64858b8624588d5da7bd44763e55b41eefdf.tar.gz
pbs2-01da64858b8624588d5da7bd44763e55b41eefdf.tar.xz
pbs2-01da64858b8624588d5da7bd44763e55b41eefdf.zip
Bootos fix
Diffstat (limited to 'application/modules/dev/controllers/BootisoController.php')
-rw-r--r--application/modules/dev/controllers/BootisoController.php17
1 files changed, 10 insertions, 7 deletions
diff --git a/application/modules/dev/controllers/BootisoController.php b/application/modules/dev/controllers/BootisoController.php
index 901c901..dc4ec58 100644
--- a/application/modules/dev/controllers/BootisoController.php
+++ b/application/modules/dev/controllers/BootisoController.php
@@ -40,19 +40,22 @@ class dev_BootisoController 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="preboot.zip"');
+ header('Content-Disposition: ' . $content_disp . '; filename="preboot.tgz"');
header('Pragma: no-cache');
header('Expires: 0');
- $fp = fopen("bootisoSerial.txt", "w");
- fputs ($fp, $serialnumber);
- fclose ($fp);
+ chdir("../resources/bootmedium/$prebootID/preboot/");
+
+// $fp = fopen("bootisoSerial.txt", "w");
+// fputs ($fp, $serialnumber);
+// fclose ($fp);
// create the gzipped tarfile.
- chdir("../resources/bootmedium/$prebootID/preboot/");
- passthru("zip -r - ./");
+
+ passthru("tar -cz ./");
- }
+
+ }