From 77cff882984835416027311edbc3142404c4b304 Mon Sep 17 00:00:00 2001 From: michael pereira Date: Tue, 27 Sep 2011 12:17:38 +0200 Subject: vesamenu --- .../modules/ipxe/controllers/AuthController.php | 49 +++++++++------------- 1 file changed, 20 insertions(+), 29 deletions(-) (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 ab06818..4f13feb 100644 --- a/application/modules/ipxe/controllers/AuthController.php +++ b/application/modules/ipxe/controllers/AuthController.php @@ -147,15 +147,6 @@ class Ipxe_AuthController extends Zend_Controller_Action $this->_redirect('/ipxe/resource/getvesamenuconfig/alpha/'.$alpha.'/error/'.$this->error); -// header('Content-Type: text/plain'); -// -// $result = "#!ipxe\n"; -// $result .= "imgfree\n"; -// $result .= "chain http://".$_SERVER['HTTP_HOST']."/ipxe/vesamenu.c32 http://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/alpha/".$alpha."/error/$this->error\n"; -// -// header("Content-Length: ".(strlen($result))); -// -// echo $result; } public function logoutAction(){ @@ -192,17 +183,17 @@ class Ipxe_AuthController extends Zend_Controller_Action $this->error = "session"; } -// header('Content-Type: text/plain'); -// -// $result = "#!ipxe\n"; -// $result .= "imgfree\n"; -// $result .= "chain http://".$_SERVER['HTTP_HOST']."/ipxe/vesamenu.c32 http://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/alpha/".$alpha."/error/$this->error\n"; -// -// header("Content-Length: ".(strlen($result))); -// -// echo $result; + header('Content-Type: text/plain'); + + $result = "#!ipxe\n"; + $result .= "imgfree\n"; + $result .= "chain http://".$_SERVER['HTTP_HOST']."/ipxe/vesamenu.c32 http://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/alpha/".$alpha."/error/$this->error\n"; - $this->_redirect('/ipxe/resource/getvesamenuconfig/alpha/'.$alpha.'/error/'.$this->error); + header("Content-Length: ".(strlen($result))); + + echo $result; + +// $this->_redirect('/ipxe/resource/getvesamenuconfig/alpha/'.$alpha.'/error/'.$this->error); } public function setgroupAction(){ @@ -218,17 +209,17 @@ class Ipxe_AuthController extends Zend_Controller_Action $this->error = "session"; } -// header('Content-Type: text/plain'); -// -// $result = "#!ipxe\n"; -// $result .= "imgfree\n"; -// $result .= "chain http://".$_SERVER['HTTP_HOST']."/ipxe/vesamenu.c32 http://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/alpha/".$alpha."/error/$this->error\n"; -// -// header("Content-Length: ".(strlen($result))); -// -// echo $result; + header('Content-Type: text/plain'); + + $result = "#!ipxe\n"; + $result .= "imgfree\n"; + $result .= "chain http://".$_SERVER['HTTP_HOST']."/ipxe/vesamenu.c32 http://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/alpha/".$alpha."/error/$this->error\n"; + + header("Content-Length: ".(strlen($result))); - $this->_redirect('/ipxe/resource/getvesamenuconfig/alpha/'.$alpha.'/error/'.$this->error); + echo $result; + +// $this->_redirect('/ipxe/resource/getvesamenuconfig/alpha/'.$alpha.'/error/'.$this->error); } -- cgit v1.2.3-55-g7522