summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--application/modules/ipxe/controllers/ResourceController.php11
1 files changed, 11 insertions, 0 deletions
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'];
}