From ae4ffe939172fc99cddb720bac584b4ffe85f55f Mon Sep 17 00:00:00 2001 From: michael pereira Date: Tue, 20 Sep 2011 17:05:02 +0200 Subject: vesamenu --- application/modules/ipxe/controllers/ResourceController.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'application/modules/ipxe/controllers/ResourceController.php') diff --git a/application/modules/ipxe/controllers/ResourceController.php b/application/modules/ipxe/controllers/ResourceController.php index 7c68ec9..feb85d2 100644 --- a/application/modules/ipxe/controllers/ResourceController.php +++ b/application/modules/ipxe/controllers/ResourceController.php @@ -52,16 +52,15 @@ 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{ -- cgit v1.2.3-55-g7522