summaryrefslogtreecommitdiffstats
path: root/application/modules/ipxe/controllers/ResourceController.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/modules/ipxe/controllers/ResourceController.php')
-rw-r--r--application/modules/ipxe/controllers/ResourceController.php13
1 files changed, 7 insertions, 6 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');
}