summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authormichael pereira2011-10-27 18:41:36 +0200
committermichael pereira2011-10-27 18:41:36 +0200
commiteb035b75f3b9c38d0f6a1e44b3993b363cbb72a0 (patch)
tree202f512422c3efe4ea8b1d47dc97503e3c8cb0de /application
parentstart label for vesamenu (diff)
downloadpbs2-eb035b75f3b9c38d0f6a1e44b3993b363cbb72a0.tar.gz
pbs2-eb035b75f3b9c38d0f6a1e44b3993b363cbb72a0.tar.xz
pbs2-eb035b75f3b9c38d0f6a1e44b3993b363cbb72a0.zip
start label for vesamenu
Diffstat (limited to 'application')
-rw-r--r--application/modules/ipxe/controllers/AuthController.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/application/modules/ipxe/controllers/AuthController.php b/application/modules/ipxe/controllers/AuthController.php
index 9ab1421..00e6cc3 100644
--- a/application/modules/ipxe/controllers/AuthController.php
+++ b/application/modules/ipxe/controllers/AuthController.php
@@ -85,7 +85,8 @@ class Ipxe_AuthController extends Zend_Controller_Action
if(isset($this->session)){
$result .= ":start\n";
$result .= "chain http://".$_SERVER['HTTP_HOST']."/ipxe/vesamenu.c32 http://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/alpha/".$this->session->getAlphasessionID()."/error/$this->error\n";
- $result .= "goto start\n";
+ $result .= "imgselect login || goto start\n";
+ $result .= "chain http://".$_SERVER['HTTP_HOST']."/ipxe/vesamenu.c32 http://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/alpha/".$this->session->getAlphasessionID()."/error/login\n";
}else{
$result .= "chain http://".$_SERVER['HTTP_HOST']."/ipxe/vesamenu.c32 http://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/serialnumer/$serialnumber/mac/$mac/error/$this->error\n";
}
@@ -103,7 +104,7 @@ class Ipxe_AuthController extends Zend_Controller_Action
header('Content-Type: text/plain');
$result = "#!ipxe\n";
$result .= "login\n";
- $result .= "module http://\${username:uristring}:\${password:uristring}@".$_SERVER['HTTP_HOST']."/ipxe/auth/login/alpha/".$alpha."\n";
+ $result .= "chain http://\${username:uristring}:\${password:uristring}@".$_SERVER['HTTP_HOST']."/ipxe/auth/login/alpha/".$alpha."\n";
header("Content-Length: ".(strlen($result)));
echo $result;
exit;
@@ -141,15 +142,16 @@ class Ipxe_AuthController extends Zend_Controller_Action
} else {
$this->error = "login";
+ $this->_redirect('/ipxe/resource/getvesamenuconfig/alpha/'.$alpha.'/error/'.$this->error);
}
}else{
$this->error = "session";
}
header('Content-Type: text/plain');
- $result = "blub";
- header("Content-Length: ".(strlen($result)));
- echo $result;
+// $result = "blub";
+// header("Content-Length: ".(strlen($result)));
+// echo $result;
//$this->_redirect('/ipxe/resource/getvesamenuconfig/alpha/'.$alpha.'/error/'.$this->error);