diff options
| author | michael pereira | 2011-07-19 15:45:24 +0200 |
|---|---|---|
| committer | michael pereira | 2011-07-19 15:45:24 +0200 |
| commit | 410f14355ac05a9c2f3cdc53bbbfe24dfb15ee82 (patch) | |
| tree | 04d96e5031748c17ff5a33bec2ac79947348d348 /application/modules/ipxe/controllers/AuthController.php | |
| parent | login test (diff) | |
| download | pbs2-410f14355ac05a9c2f3cdc53bbbfe24dfb15ee82.tar.gz pbs2-410f14355ac05a9c2f3cdc53bbbfe24dfb15ee82.tar.xz pbs2-410f14355ac05a9c2f3cdc53bbbfe24dfb15ee82.zip | |
menu structure
Diffstat (limited to 'application/modules/ipxe/controllers/AuthController.php')
| -rw-r--r-- | application/modules/ipxe/controllers/AuthController.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/application/modules/ipxe/controllers/AuthController.php b/application/modules/ipxe/controllers/AuthController.php index 0492339..bedd202 100644 --- a/application/modules/ipxe/controllers/AuthController.php +++ b/application/modules/ipxe/controllers/AuthController.php @@ -34,6 +34,7 @@ class Ipxe_AuthController extends Zend_Controller_Action { $serialnumber = $this->_request->getParam('serialnumber'); $mac = $this->_request->getParam('mac'); + $login = $this->_request->getParam('login'); if(isset($serialnumber)){ // Create a session @@ -69,9 +70,13 @@ class Ipxe_AuthController extends Zend_Controller_Action $result = "#!ipxe\n"; $result .= "imgfree\n"; - $result .= "login\n"; + if(isset($login)){ + $result .= "login\n"; + }else{ + $login = false; + } - $result .= "chain http://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenu/alpha/".$session->getAlphasessionID()." http://\${username:uristring}:\${password:uristring}@".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/alpha/".$session->getAlphasessionID(); + $result .= "chain http://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenu/alpha/".$session->getAlphasessionID()." http://\${username:uristring}:\${password:uristring}@".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/alpha/".$session->getAlphasessionID()."/login/".$login; header("Content-Length: ".(strlen($result))); |
