summaryrefslogtreecommitdiffstats
path: root/application/modules/dev/controllers/BootisoController.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/modules/dev/controllers/BootisoController.php')
-rw-r--r--application/modules/dev/controllers/BootisoController.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/application/modules/dev/controllers/BootisoController.php b/application/modules/dev/controllers/BootisoController.php
index b0f4c2f..901c901 100644
--- a/application/modules/dev/controllers/BootisoController.php
+++ b/application/modules/dev/controllers/BootisoController.php
@@ -34,6 +34,7 @@ class dev_BootisoController extends Zend_Controller_Action
$this->_helper->viewRenderer->setNoRender();
$prebootID = $this->_request->getParam('prebootID');
+ $serialnumber = $this->_request->getParam('serialnumber');
if(is_dir("../resources/bootmedium/$prebootID/") && is_numeric($prebootID)){
@@ -43,11 +44,15 @@ class dev_BootisoController extends Zend_Controller_Action
header('Pragma: no-cache');
header('Expires: 0');
+ $fp = fopen("bootisoSerial.txt", "w");
+ fputs ($fp, $serialnumber);
+ fclose ($fp);
+
// create the gzipped tarfile.
- chdir("../resources/bootmedium/$prebootID/");
+ chdir("../resources/bootmedium/$prebootID/preboot/");
passthru("zip -r - ./");
- }
+ }