diff options
| author | michael pereira | 2011-10-21 15:46:56 +0200 |
|---|---|---|
| committer | michael pereira | 2011-10-21 15:46:56 +0200 |
| commit | 846da4a1bfe415a47b72649f911d26a2d5058931 (patch) | |
| tree | c606335f52c0f6a2dcfae8da63ef80789ea7d5c0 /application/modules/ipxe/controllers/AuthController.php | |
| parent | com32 debug (diff) | |
| download | pbs2-846da4a1bfe415a47b72649f911d26a2d5058931.tar.gz pbs2-846da4a1bfe415a47b72649f911d26a2d5058931.tar.xz pbs2-846da4a1bfe415a47b72649f911d26a2d5058931.zip | |
com32 debug
Diffstat (limited to 'application/modules/ipxe/controllers/AuthController.php')
| -rw-r--r-- | application/modules/ipxe/controllers/AuthController.php | 44 |
1 files changed, 21 insertions, 23 deletions
diff --git a/application/modules/ipxe/controllers/AuthController.php b/application/modules/ipxe/controllers/AuthController.php index 31f3407..8d2284f 100644 --- a/application/modules/ipxe/controllers/AuthController.php +++ b/application/modules/ipxe/controllers/AuthController.php @@ -91,7 +91,7 @@ class Ipxe_AuthController extends Zend_Controller_Action echo $result; } - + public function loginAction() { $alpha = $this->_request->getParam('alpha'); @@ -100,10 +100,9 @@ class Ipxe_AuthController extends Zend_Controller_Action if (isset($login)){ header('Content-Type: text/plain'); $result = "#!ipxe\n"; - $result .= "shell\n"; -// $result .= "imgfree\n"; -// $result .= "login\n"; -// $result .= "chain http://".$_SERVER['HTTP_HOST']."/ipxe/vesamenu.c32 http://\${username:uristring}:\${password:uristring}@".$_SERVER['HTTP_HOST']."/ipxe/auth/login/alpha/".$alpha."\n"; + $result .= "imgfree\n"; + $result .= "login\n"; + $result .= "chain http://".$_SERVER['HTTP_HOST']."/ipxe/vesamenu.c32 http://\${username:uristring}:\${password:uristring}@".$_SERVER['HTTP_HOST']."/ipxe/auth/login/alpha/".$alpha."\n"; header("Content-Length: ".(strlen($result))); echo $result; exit; @@ -184,17 +183,16 @@ class Ipxe_AuthController extends Zend_Controller_Action $this->error = "session"; } - header('Content-Type: text/plain'); +// 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))); +// $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; +// echo $result; -// $this->_redirect('/ipxe/resource/getvesamenuconfig/alpha/'.$alpha.'/error/'.$this->error); + $this->_redirect('/ipxe/resource/getvesamenuconfig/alpha/'.$alpha.'/error/'.$this->error); } public function setgroupAction(){ @@ -210,17 +208,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))); +// +// echo $result; -// $this->_redirect('/ipxe/resource/getvesamenuconfig/alpha/'.$alpha.'/error/'.$this->error); + $this->_redirect('/ipxe/resource/getvesamenuconfig/alpha/'.$alpha.'/error/'.$this->error); } |
