summaryrefslogtreecommitdiffstats
path: root/application/modules/ipxe/controllers/AuthController.php
diff options
context:
space:
mode:
authormichael pereira2011-07-19 15:45:24 +0200
committermichael pereira2011-07-19 15:45:24 +0200
commit410f14355ac05a9c2f3cdc53bbbfe24dfb15ee82 (patch)
tree04d96e5031748c17ff5a33bec2ac79947348d348 /application/modules/ipxe/controllers/AuthController.php
parentlogin test (diff)
downloadpbs2-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.php9
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)));