From 69afe8ed4c3f5f23aa248fcf8704c657935525c7 Mon Sep 17 00:00:00 2001 From: Michael Neves Date: Tue, 19 Jun 2012 17:12:23 +0200 Subject: redirects aus ipxe-auth controller raus --- .../modules/ipxe/controllers/AuthController.php | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 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 b6f9f10..27feff7 100644 --- a/application/modules/ipxe/controllers/AuthController.php +++ b/application/modules/ipxe/controllers/AuthController.php @@ -172,7 +172,14 @@ class Ipxe_AuthController extends Zend_Controller_Action { $this->error = "session"; } - $this->_redirect('/ipxe/resource/getvesamenuconfig/alpha/'.$alpha.'/error/'.$this->error); + header('Content-Type: text/plain'); + $result = "#!ipxe\n"; + $result .= "set filename http://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/alpha/".$alpha."/error/".$this->error."\n"; + header("Content-Length: ".(strlen($result))); + echo $result; + exit; + + //$this->_redirect('/ipxe/resource/getvesamenuconfig/alpha/'.$alpha.'/error/'.$this->error); } @@ -186,8 +193,15 @@ class Ipxe_AuthController extends Zend_Controller_Action { } else { $this->error = "session"; } - - $this->_redirect('/ipxe/resource/getvesamenuconfig/alpha/'.$alpha.'/error/'.$this->error); + + header('Content-Type: text/plain'); + $result = "#!ipxe\n"; + $result .= "set filename http://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/alpha/".$alpha."/error/".$this->error."\n"; + header("Content-Length: ".(strlen($result))); + echo $result; + exit; + + //$this->_redirect('/ipxe/resource/getvesamenuconfig/alpha/'.$alpha.'/error/'.$this->error); } public function setgroupAction() { -- cgit v1.2.3-55-g7522