diff options
| author | michael pereira | 2011-09-26 03:33:48 +0200 |
|---|---|---|
| committer | michael pereira | 2011-09-26 03:33:48 +0200 |
| commit | ddf9211be7f98c7d4d1b0fd821f4e7100780d9e4 (patch) | |
| tree | f036fb2235c921f43a42bfe2ebd9c89047b37571 /application/modules/ipxe | |
| parent | auth header (diff) | |
| download | pbs2-ddf9211be7f98c7d4d1b0fd821f4e7100780d9e4.tar.gz pbs2-ddf9211be7f98c7d4d1b0fd821f4e7100780d9e4.tar.xz pbs2-ddf9211be7f98c7d4d1b0fd821f4e7100780d9e4.zip | |
auth header
Diffstat (limited to 'application/modules/ipxe')
| -rw-r--r-- | application/modules/ipxe/controllers/AuthController.php | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/application/modules/ipxe/controllers/AuthController.php b/application/modules/ipxe/controllers/AuthController.php index c8856d4..f4d9481 100644 --- a/application/modules/ipxe/controllers/AuthController.php +++ b/application/modules/ipxe/controllers/AuthController.php @@ -102,7 +102,7 @@ class Ipxe_AuthController extends Zend_Controller_Action $result = "#!ipxe\n"; $result .= "imgfree\n"; $result .= "login\n"; - $result .= "chain http://\${username:uristring}:\${password:uristring}@".$_SERVER['HTTP_HOST']."/ipxe/auth/login/alpha/".$alpha."/login/false\n"; + $result .= "chain http://".$_SERVER['HTTP_HOST']."/ipxe/vesamenu.c32 http://\${username:uristring}:\${password:uristring}@".$_SERVER['HTTP_HOST']."/ipxe/auth/login/alpha/".$alpha."/login/false\n"; header("Content-Length: ".(strlen($result))); echo $result; exit; @@ -145,15 +145,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; + $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(){ |
