diff options
Diffstat (limited to 'application/modules')
| -rw-r--r-- | application/modules/ipxe/controllers/AuthController.php | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/application/modules/ipxe/controllers/AuthController.php b/application/modules/ipxe/controllers/AuthController.php index 6b27f03..ea659b3 100644 --- a/application/modules/ipxe/controllers/AuthController.php +++ b/application/modules/ipxe/controllers/AuthController.php @@ -79,10 +79,7 @@ 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)){ @@ -102,10 +99,6 @@ 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"; @@ -169,10 +162,6 @@ 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"; @@ -195,10 +184,6 @@ 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"; @@ -225,10 +210,6 @@ 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"; @@ -240,7 +221,7 @@ class Ipxe_AuthController extends Zend_Controller_Action // $this->_redirect('/ipxe/resource/getvesamenuconfig/alpha/'.$alpha.'/error/'.$this->error); } - + |
