summaryrefslogtreecommitdiffstats
path: root/application/modules/ipxe/controllers/ResourceController.php
diff options
context:
space:
mode:
authormichael pereira2011-09-19 16:23:04 +0200
committermichael pereira2011-09-19 16:23:04 +0200
commit7092483c1993d713b68436037f49ba3bb711af02 (patch)
treeb4e5d345d59568f1b1c7d941951c386212d28df0 /application/modules/ipxe/controllers/ResourceController.php
parentloop fetch_pxelinux (diff)
downloadpbs2-7092483c1993d713b68436037f49ba3bb711af02.tar.gz
pbs2-7092483c1993d713b68436037f49ba3bb711af02.tar.xz
pbs2-7092483c1993d713b68436037f49ba3bb711af02.zip
ipxe gefixt
Diffstat (limited to 'application/modules/ipxe/controllers/ResourceController.php')
-rw-r--r--application/modules/ipxe/controllers/ResourceController.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/application/modules/ipxe/controllers/ResourceController.php b/application/modules/ipxe/controllers/ResourceController.php
index 1ebfd55..fc0a7e4 100644
--- a/application/modules/ipxe/controllers/ResourceController.php
+++ b/application/modules/ipxe/controllers/ResourceController.php
@@ -69,6 +69,26 @@ class Ipxe_ResourceController extends Zend_Controller_Action
}
+ public function getpxemenuAction(){
+ if(is_dir("../resources/ipxe/")){
+
+ header('Content-Type: application/octet-stream');
+ $content_disp = ( ereg('MSIE ([0-9].[0-9]{1,2})', $_SERVER['HTTP_USER_AGENT']) == 'IE') ? 'inline' : 'attachment';
+ header('Content-Disposition: ' . $content_disp . '; filename="pxelinux.c32"');
+ header('Pragma: no-cache');
+ header('Expires: 0');
+
+ chdir("../resources/ipxe/");
+
+ header("Content-Length: ".filesize(getcwd()."/pxelinux.0"));
+
+ passthru( "cat pxelinux.0");
+ }else{
+ header('HTTP/1.0 404 Not Found');
+ }
+
+ }
+
public function getvesamenuconfigAction(){
$login = $this->_request->getParam('login') == 'true';