summaryrefslogtreecommitdiffstats
path: root/application/modules
diff options
context:
space:
mode:
authormichael pereira2011-09-20 16:58:08 +0200
committermichael pereira2011-09-20 16:58:08 +0200
commitf0a85e545821d5b98fc2ec16a4fafe4220a5cbd4 (patch)
treea38c2a6eaf6774b4766c9129653d7d8bb9801fdf /application/modules
parentvesamenu (diff)
downloadpbs2-f0a85e545821d5b98fc2ec16a4fafe4220a5cbd4.tar.gz
pbs2-f0a85e545821d5b98fc2ec16a4fafe4220a5cbd4.tar.xz
pbs2-f0a85e545821d5b98fc2ec16a4fafe4220a5cbd4.zip
vesamenu
Diffstat (limited to 'application/modules')
-rw-r--r--application/modules/ipxe/controllers/ResourceController.php13
-rw-r--r--application/modules/ipxe/views/scripts/resource/getvesamenu.phtml2
2 files changed, 8 insertions, 7 deletions
diff --git a/application/modules/ipxe/controllers/ResourceController.php b/application/modules/ipxe/controllers/ResourceController.php
index 63780fe..7c68ec9 100644
--- a/application/modules/ipxe/controllers/ResourceController.php
+++ b/application/modules/ipxe/controllers/ResourceController.php
@@ -52,18 +52,19 @@ class Ipxe_ResourceController extends Zend_Controller_Action
public function getvesamenuAction(){
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="vesamenu.c32"');
- header('Pragma: no-cache');
- header('Expires: 0');
+// 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="vesamenu.c32"');
+// header('Pragma: no-cache');
+// header('Expires: 0');
chdir("../resources/ipxe/");
header("Content-Length: ".filesize(getcwd()."/vesamenu.c32"));
+ echo filesize(getcwd()."/vesamenu.c32");
passthru( "cat vesamenu.c32");
- }else{
+ }else{
header('HTTP/1.0 404 Not Found');
}
diff --git a/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml b/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml
index 7b90ed5..f985103 100644
--- a/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml
+++ b/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml
@@ -58,7 +58,7 @@
?>
TIMEOUT 100
PROMPT 0
-DEFAULT <?php echo "http://$this->host/ipxe/resource/getvesamenu/alpha/$this->alphaID/file/vesamenu.c32"; ?>
+DEFAULT <?php echo "http://$this->host/ipxe/resource/getvesamenu/alpha/$this->alphaID/file/vesamenu.c32\n"; ?>
MENU BACKGROUND http://pbs2.mp.openslx.org/media/img/pbs2.png
MENU WIDTH 78