summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorMichael Neves2012-06-25 17:19:13 +0200
committerMichael Neves2012-06-25 17:19:13 +0200
commit6996ec06c1aa037eba0fbdb0f08e88266e0214b5 (patch)
tree34c7e98d993c331a6167bf7f763ca71e2e13d645 /application
parentredirects aus ipxe-auth controller raus (diff)
downloadpbs2-6996ec06c1aa037eba0fbdb0f08e88266e0214b5.tar.gz
pbs2-6996ec06c1aa037eba0fbdb0f08e88266e0214b5.tar.xz
pbs2-6996ec06c1aa037eba0fbdb0f08e88266e0214b5.zip
ipxe filder
Diffstat (limited to 'application')
-rw-r--r--application/modules/ipxe/controllers/ResourceController.php8
-rw-r--r--application/modules/ipxe/views/scripts/resource/getvesamenu.phtml6
2 files changed, 13 insertions, 1 deletions
diff --git a/application/modules/ipxe/controllers/ResourceController.php b/application/modules/ipxe/controllers/ResourceController.php
index e4a5d5b..3c1ce3a 100644
--- a/application/modules/ipxe/controllers/ResourceController.php
+++ b/application/modules/ipxe/controllers/ResourceController.php
@@ -61,6 +61,14 @@ class Ipxe_ResourceController extends Zend_Controller_Action {
$vesamenuView->host = $_SERVER['HTTP_HOST'];
$vesamenuView->error = $this->_request->getParam('error');
+ if(isset($_SERVER['HTTPS']))
+ {
+ if ($_SERVER['HTTPS'] == 'on')
+ $vesamenuView->ssl = true;
+ else
+ $vesamenuView->ssl = false;
+ }
+
if (isset($this->session)) {
$vesamenuView->alphaID = $this->session->getAlphasessionID();
diff --git a/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml b/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml
index 1098789..75b2a4f 100644
--- a/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml
+++ b/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml
@@ -79,7 +79,11 @@
PROMPT 0
DEFAULT /ipxe/vesamenu.c32
-MENU BACKGROUND /ipxe/pbs2.png
+<?php if($this->ssl)
+ echo "MENU BACKGROUND /ipxe/pbs2ssl.png\n";
+ else
+ echo "MENU BACKGROUND /ipxe/pbs2.png\n";?>
+
MENU WIDTH 78
MENU MARGIN 9
MENU PASSWORDMARGIN 9