summaryrefslogtreecommitdiffstats
path: root/application/modules/dev/controllers/BootisoController.php
diff options
context:
space:
mode:
authormichael pereira2011-03-21 15:19:20 +0100
committermichael pereira2011-03-21 15:19:20 +0100
commit5236e6ae88b1614df492886c0427f7f1b6660459 (patch)
treef56825655de51c3708c413da3f0a0bc0219be9dd /application/modules/dev/controllers/BootisoController.php
parentPreboot download working (diff)
downloadpbs2-5236e6ae88b1614df492886c0427f7f1b6660459.tar.gz
pbs2-5236e6ae88b1614df492886c0427f7f1b6660459.tar.xz
pbs2-5236e6ae88b1614df492886c0427f7f1b6660459.zip
Preboot und BootISO fertig
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 - ./");
- }
+ }