diff options
Diffstat (limited to 'application/modules/ipxe/controllers/AuthController.php')
| -rw-r--r-- | application/modules/ipxe/controllers/AuthController.php | 33 |
1 files changed, 3 insertions, 30 deletions
diff --git a/application/modules/ipxe/controllers/AuthController.php b/application/modules/ipxe/controllers/AuthController.php index d168d12..aaa4d0e 100644 --- a/application/modules/ipxe/controllers/AuthController.php +++ b/application/modules/ipxe/controllers/AuthController.php @@ -84,6 +84,7 @@ class Ipxe_AuthController extends Zend_Controller_Action $result .= "imgfree\n"; if(isset($this->session)){ $result .= "chain http://".$_SERVER['HTTP_HOST']."/ipxe/vesamenu.c32 http://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/alpha/".$this->session->getAlphasessionID()."/error/$this->error\n"; + $result .= "show dns\n"; }else{ $result .= "chain http://".$_SERVER['HTTP_HOST']."/ipxe/vesamenu.c32 http://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/serialnumer/$serialnumber/mac/$mac/error/$this->error\n"; } @@ -107,8 +108,6 @@ class Ipxe_AuthController extends Zend_Controller_Action exit; } - - // if(!isset($_SERVER['PHP_AUTH_USER']) || !isset($_SERVER['PHP_AUTH_PW'])){ // header('WWW-Authenticate: Basic realm=""'); // header('HTTP/1.0 401 Unauthorized'); @@ -146,6 +145,8 @@ class Ipxe_AuthController extends Zend_Controller_Action $this->error = "session"; } + header('Content-Type: text/html'); + //$this->_redirect('/ipxe/resource/getvesamenuconfig/alpha/'.$alpha.'/error/'.$this->error); } @@ -162,15 +163,6 @@ 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; $this->_redirect('/ipxe/resource/getvesamenuconfig/alpha/'.$alpha.'/error/'.$this->error); } @@ -185,15 +177,6 @@ class Ipxe_AuthController extends Zend_Controller_Action }else{ $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; $this->_redirect('/ipxe/resource/getvesamenuconfig/alpha/'.$alpha.'/error/'.$this->error); } @@ -211,16 +194,6 @@ 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; - $this->_redirect('/ipxe/resource/getvesamenuconfig/alpha/'.$alpha.'/error/'.$this->error); } |
