summaryrefslogtreecommitdiffstats
path: root/application/modules/dev
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
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')
-rw-r--r--application/modules/dev/controllers/BootisoController.php17
-rw-r--r--application/modules/dev/controllers/PrebootController.php2
2 files changed, 11 insertions, 8 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 ./");
- }
+
+ }
diff --git a/application/modules/dev/controllers/PrebootController.php b/application/modules/dev/controllers/PrebootController.php
index cfcbeca..df8daf2 100644
--- a/application/modules/dev/controllers/PrebootController.php
+++ b/application/modules/dev/controllers/PrebootController.php
@@ -65,7 +65,7 @@ class dev_PrebootController extends Zend_Controller_Action
echo "Message: " . $e->getMessage() . "<br/>";
}
- //$this->_redirect('/dev/preboot');
+ $this->_redirect('/dev/preboot');
}
}