summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormichael pereira2011-10-27 19:09:03 +0200
committermichael pereira2011-10-27 19:09:03 +0200
commitc2a3c31ea775e3e796cc31071735a0555810215e (patch)
treeb52cabb7e3dd29cd4bf2a0b0cbebba53362007fb
parentstart label for vesamenu (diff)
downloadpbs2-c2a3c31ea775e3e796cc31071735a0555810215e.tar.gz
pbs2-c2a3c31ea775e3e796cc31071735a0555810215e.tar.xz
pbs2-c2a3c31ea775e3e796cc31071735a0555810215e.zip
start label for vesamenu
-rw-r--r--application/modules/ipxe/controllers/AuthController.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/application/modules/ipxe/controllers/AuthController.php b/application/modules/ipxe/controllers/AuthController.php
index 753a925..45e1e22 100644
--- a/application/modules/ipxe/controllers/AuthController.php
+++ b/application/modules/ipxe/controllers/AuthController.php
@@ -100,6 +100,16 @@ class Ipxe_AuthController extends Zend_Controller_Action
{
$alpha = $this->_request->getParam('alpha');
$login = $this->_request->getParam('login');
+ $error = $this->_request->getParam('error');
+
+ if (isset($error)){
+ header('Content-Type: text/plain');
+ $result = "bla";
+ header("Content-Length: ".(strlen($result)));
+ echo $result;
+ exit;
+ }
+
if (isset($login)){
header('Content-Type: text/plain');
@@ -154,12 +164,14 @@ class Ipxe_AuthController extends Zend_Controller_Action
$result .= "module http://".$_SERVER['HTTP_HOST']."/ipxe/auth/login/alpha/".$alpha."/error/login\n";
header("Content-Length: ".(strlen($result)));
echo $result;
+ exit;
}else{
header('Content-Type: text/plain');
$result = "#!ipxe\n";
$result .= "module http://".$_SERVER['HTTP_HOST']."/ipxe/auth/login/alpha/".$alpha."/error/\n";
header("Content-Length: ".(strlen($result)));
echo $result;
+ exit;
}
//$this->_redirect('/ipxe/resource/getvesamenuconfig/alpha/'.$alpha.'/error/'.$this->error);