diff options
| author | michael pereira | 2011-03-21 15:19:20 +0100 |
|---|---|---|
| committer | michael pereira | 2011-03-21 15:19:20 +0100 |
| commit | 5236e6ae88b1614df492886c0427f7f1b6660459 (patch) | |
| tree | f56825655de51c3708c413da3f0a0bc0219be9dd /application/modules/dev/controllers/BootisoController.php | |
| parent | Preboot download working (diff) | |
| download | pbs2-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.php | 9 |
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 - ./"); - } + } |
