diff options
author | Michael Neves | 2012-06-27 17:56:28 +0200 |
---|---|---|
committer | Michael Neves | 2012-06-27 17:56:28 +0200 |
commit | a8f01cbd4cfe43ec96b4a92d034aa2e124d7488f (patch) | |
tree | c7e82757095708ef438b69f3b11347360da81e4e | |
parent | ipxe resourcecontroller add bootSystem Function (diff) | |
download | pbs2-a8f01cbd4cfe43ec96b4a92d034aa2e124d7488f.tar.gz pbs2-a8f01cbd4cfe43ec96b4a92d034aa2e124d7488f.tar.xz pbs2-a8f01cbd4cfe43ec96b4a92d034aa2e124d7488f.zip |
ipxe resourcecontroller add bootSystem Function
-rw-r--r-- | application/modules/ipxe/controllers/ResourceController.php | 11 |
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']; } |