diff options
Diffstat (limited to 'application/modules/ipxe/controllers/AuthController.php')
-rw-r--r-- | application/modules/ipxe/controllers/AuthController.php | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/application/modules/ipxe/controllers/AuthController.php b/application/modules/ipxe/controllers/AuthController.php index d600548..ba2408a 100644 --- a/application/modules/ipxe/controllers/AuthController.php +++ b/application/modules/ipxe/controllers/AuthController.php @@ -116,14 +116,14 @@ class Ipxe_AuthController extends Zend_Controller_Action { } if(!isset($_SERVER['PHP_AUTH_USER']) || !isset($_SERVER['PHP_AUTH_PW'])) { - $this->_redirect($this->httpmode."://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/alpha/".$this->session->getAlphasessionID()."/error/login"); -// header('WWW-Authenticate: Basic realm=""'); -// header('HTTP/1.0 401 Unauthorized'); -// $result = "#!ipxe\n"; -// $result .= "set filename ".$this->httpmode."://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/alpha/".$this->session->getAlphasessionID()."/error/login\n"; -// header("Content-Length: ".(strlen($result))); -// echo $result; -// exit; +// $this->_redirect($this->httpmode."://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/alpha/".$this->session->getAlphasessionID()."/error/login"); + header('WWW-Authenticate: Basic realm=""'); + header('HTTP/1.0 401 Unauthorized'); + $result = "#!ipxe\n"; + $result .= "set filename ".$this->httpmode."://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/alpha/".$this->session->getAlphasessionID()."/error/login\n"; + header("Content-Length: ".(strlen($result))); + echo $result; + exit; } $email = $_SERVER['PHP_AUTH_USER']; @@ -157,14 +157,14 @@ class Ipxe_AuthController extends Zend_Controller_Action { $this->error = "session"; } - $this->_redirect($this->httpmode."://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/alpha/".$this->session->getAlphasessionID()."/error/".$this->error); +// $this->_redirect($this->httpmode."://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/alpha/".$this->session->getAlphasessionID()."/error/".$this->error); -// header('Content-Type: text/plain'); -// $result = "#!ipxe\n"; -// $result .= "set filename ".$this->httpmode."://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/alpha/".$this->session->getAlphasessionID()."/error/".$this->error."\n"; -// header("Content-Length: ".(strlen($result))); -// echo $result; -// exit; + header('Content-Type: text/plain'); + $result = "#!ipxe\n"; + $result .= "set filename ".$this->httpmode."://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/alpha/".$this->session->getAlphasessionID()."/error/".$this->error."\n"; + header("Content-Length: ".(strlen($result))); + echo $result; + exit; |