summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Neves2012-06-27 17:56:28 +0200
committerMichael Neves2012-06-27 17:56:28 +0200
commita8f01cbd4cfe43ec96b4a92d034aa2e124d7488f (patch)
treec7e82757095708ef438b69f3b11347360da81e4e
parentipxe resourcecontroller add bootSystem Function (diff)
downloadpbs2-a8f01cbd4cfe43ec96b4a92d034aa2e124d7488f.tar.gz
pbs2-a8f01cbd4cfe43ec96b4a92d034aa2e124d7488f.tar.xz
pbs2-a8f01cbd4cfe43ec96b4a92d034aa2e124d7488f.zip
ipxe resourcecontroller add bootSystem Function
-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'];
}