From ebea91dbe6a8b83c6108f114e1f807ae5068ae73 Mon Sep 17 00:00:00 2001 From: michael pereira Date: Tue, 27 Sep 2011 13:20:21 +0200 Subject: vesamenu --- .../modules/ipxe/controllers/AuthController.php | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'application/modules/ipxe/controllers/AuthController.php') diff --git a/application/modules/ipxe/controllers/AuthController.php b/application/modules/ipxe/controllers/AuthController.php index 4f13feb..6b27f03 100644 --- a/application/modules/ipxe/controllers/AuthController.php +++ b/application/modules/ipxe/controllers/AuthController.php @@ -79,7 +79,10 @@ class Ipxe_AuthController extends Zend_Controller_Action } header('Content-Type: text/plain'); - + $content_disp = ( ereg('MSIE ([0-9].[0-9]{1,2})', $_SERVER['HTTP_USER_AGENT']) == 'IE') ? 'inline' : 'attachment'; + header('Content-Disposition: ' . $content_disp . '; filename="serial"'); + header('Pragma: no-cache'); + header('Expires: 0'); $result = "#!ipxe\n"; $result .= "imgfree\n"; if(isset($this->session)){ @@ -99,6 +102,10 @@ class Ipxe_AuthController extends Zend_Controller_Action if (isset($login)){ header('Content-Type: text/plain'); + $content_disp = ( ereg('MSIE ([0-9].[0-9]{1,2})', $_SERVER['HTTP_USER_AGENT']) == 'IE') ? 'inline' : 'attachment'; + header('Content-Disposition: ' . $content_disp . '; filename="login"'); + header('Pragma: no-cache'); + header('Expires: 0'); $result = "#!ipxe\n"; $result .= "imgfree\n"; $result .= "login\n"; @@ -162,6 +169,10 @@ class Ipxe_AuthController extends Zend_Controller_Action } header('Content-Type: text/plain'); + $content_disp = ( ereg('MSIE ([0-9].[0-9]{1,2})', $_SERVER['HTTP_USER_AGENT']) == 'IE') ? 'inline' : 'attachment'; + header('Content-Disposition: ' . $content_disp . '; filename="logout"'); + header('Pragma: no-cache'); + header('Expires: 0'); $result = "#!ipxe\n"; $result .= "imgfree\n"; @@ -184,6 +195,10 @@ class Ipxe_AuthController extends Zend_Controller_Action } header('Content-Type: text/plain'); + $content_disp = ( ereg('MSIE ([0-9].[0-9]{1,2})', $_SERVER['HTTP_USER_AGENT']) == 'IE') ? 'inline' : 'attachment'; + header('Content-Disposition: ' . $content_disp . '; filename="switchgroup"'); + header('Pragma: no-cache'); + header('Expires: 0'); $result = "#!ipxe\n"; $result .= "imgfree\n"; @@ -210,6 +225,10 @@ class Ipxe_AuthController extends Zend_Controller_Action } header('Content-Type: text/plain'); + $content_disp = ( ereg('MSIE ([0-9].[0-9]{1,2})', $_SERVER['HTTP_USER_AGENT']) == 'IE') ? 'inline' : 'attachment'; + header('Content-Disposition: ' . $content_disp . '; filename="setgroup"'); + header('Pragma: no-cache'); + header('Expires: 0'); $result = "#!ipxe\n"; $result .= "imgfree\n"; -- cgit v1.2.3-55-g7522