diff options
| author | michael pereira | 2011-07-22 16:36:58 +0200 |
|---|---|---|
| committer | michael pereira | 2011-07-22 16:36:58 +0200 |
| commit | 6119d81194d9c03ff7f677e6d7a5220afdeae9e2 (patch) | |
| tree | ed2c6d35f95e0f00bb4fb8910f241855bf3a2ce4 /application/modules/ipxe/controllers/AuthController.php | |
| parent | neuer kernel (diff) | |
| download | pbs2-6119d81194d9c03ff7f677e6d7a5220afdeae9e2.tar.gz pbs2-6119d81194d9c03ff7f677e6d7a5220afdeae9e2.tar.xz pbs2-6119d81194d9c03ff7f677e6d7a5220afdeae9e2.zip | |
kernel statt chain zum laden des vesamenu im pxe script
Diffstat (limited to 'application/modules/ipxe/controllers/AuthController.php')
| -rw-r--r-- | application/modules/ipxe/controllers/AuthController.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/application/modules/ipxe/controllers/AuthController.php b/application/modules/ipxe/controllers/AuthController.php index b7e9a1f..75b25c2 100644 --- a/application/modules/ipxe/controllers/AuthController.php +++ b/application/modules/ipxe/controllers/AuthController.php @@ -34,7 +34,7 @@ class Ipxe_AuthController extends Zend_Controller_Action { $serialnumber = $this->_request->getParam('serialnumber'); $mac = $this->_request->getParam('mac'); - $login = $this->_request->getParam('login'); + $login = $this->_request->getParam('login') == 'true'; if(isset($serialnumber)){ // Create a session @@ -70,14 +70,15 @@ class Ipxe_AuthController extends Zend_Controller_Action $result = "#!ipxe\n"; $result .= "imgfree\n"; - if($login == 'true'){ + if($login){ $result .= "login\n"; - $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/true"; + $result .= "kernel 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/true\n"; }else{ - $result .= "chain http://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenu/alpha/".$session->getAlphasessionID()." http://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/alpha/".$session->getAlphasessionID()."/login/false"; + $result .= "kernel http://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenu/alpha/".$session->getAlphasessionID()." http://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/alpha/".$session->getAlphasessionID()."/login/false\n"; } - + $result .= "module http://pbs2.mp.openslx.org/media/img/pbs2.png\n"; + $result .= "boot"; header("Content-Length: ".(strlen($result))); |
