From a8f01cbd4cfe43ec96b4a92d034aa2e124d7488f Mon Sep 17 00:00:00 2001 From: Michael Neves Date: Wed, 27 Jun 2012 17:56:28 +0200 Subject: ipxe resourcecontroller add bootSystem Function --- application/modules/ipxe/controllers/ResourceController.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/application/modules/ipxe/controllers/ResourceController.php b/application/modules/ipxe/controllers/ResourceController.php index 0d4d71b..d95b612 100644 --- a/application/modules/ipxe/controllers/ResourceController.php +++ b/application/modules/ipxe/controllers/ResourceController.php @@ -13,6 +13,8 @@ class Ipxe_ResourceController extends Zend_Controller_Action { private $session; + private $host; + private $httpmode; public function init() { @@ -32,6 +34,15 @@ class Ipxe_ResourceController extends Zend_Controller_Action { $this->session = $this->session->setOptions($result[0]); $this->session->setID($result[0]['sessionID']); } + + if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') + { + $this->httpmode = 'https'; + }else{ + $this->httpmode = 'http'; + } + + $this->host = $_SERVER['HTTP_HOST']; } -- cgit v1.2.3-55-g7522