diff options
Diffstat (limited to 'application/modules/ipxe/controllers/AuthController.php')
| -rw-r--r-- | application/modules/ipxe/controllers/AuthController.php | 49 |
1 files changed, 20 insertions, 29 deletions
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); } |
