summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormichael pereira2011-09-26 17:38:00 +0200
committermichael pereira2011-09-26 17:38:00 +0200
commit5ebd0caeb28802e56999c72256fafedfefd5fdbd (patch)
treec6b86d8f3620eb2140f8fc64670349703fb95ae0
parentauth header (diff)
downloadpbs2-5ebd0caeb28802e56999c72256fafedfefd5fdbd.tar.gz
pbs2-5ebd0caeb28802e56999c72256fafedfefd5fdbd.tar.xz
pbs2-5ebd0caeb28802e56999c72256fafedfefd5fdbd.zip
auth header
-rw-r--r--application/modules/ipxe/controllers/AuthController.php2
-rw-r--r--application/modules/ipxe/views/scripts/resource/getvesamenu.phtml2
2 files changed, 3 insertions, 1 deletions
diff --git a/application/modules/ipxe/controllers/AuthController.php b/application/modules/ipxe/controllers/AuthController.php
index 1cff338..88a4db7 100644
--- a/application/modules/ipxe/controllers/AuthController.php
+++ b/application/modules/ipxe/controllers/AuthController.php
@@ -83,8 +83,10 @@ class Ipxe_AuthController extends Zend_Controller_Action
$result = "#!ipxe\n";
$result .= "imgfree\n";
if(isset($this->session)){
+ $result .= "module http://".$_SERVER['HTTP_HOST']."/ipxe/pbs2.png\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";
}else{
+ $result .= "module http://".$_SERVER['HTTP_HOST']."/ipxe/pbs2.png\n";
$result .= "chain http://".$_SERVER['HTTP_HOST']."/ipxe/vesamenu.c32 http://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/serialnumer/$serialnumber/mac/$mac/error/$this->error\n";
}
header("Content-Length: ".(strlen($result)));
diff --git a/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml b/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml
index 0fd0944..73e0cff 100644
--- a/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml
+++ b/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml
@@ -73,7 +73,7 @@ TIMEOUT 100
PROMPT 0
DEFAULT vesamenu.c32
-MENU BACKGROUND <?php echo "http://$this->host/ipxe/pbs2.png\n"; ?>
+MENU BACKGROUND pbs2.png
MENU WIDTH 78
MENU MARGIN 9
MENU PASSWORDMARGIN 9