summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Neves2012-06-27 12:52:43 +0200
committerMichael Neves2012-06-27 12:52:43 +0200
commit46684351f2ca5553bbeaa208c261a36ba2724ba9 (patch)
tree7c97e003186ea1f8953deb29098ae9c5ad31fdd8
parentgetvesamenu httpmode and host (diff)
downloadpbs2-46684351f2ca5553bbeaa208c261a36ba2724ba9.tar.gz
pbs2-46684351f2ca5553bbeaa208c261a36ba2724ba9.tar.xz
pbs2-46684351f2ca5553bbeaa208c261a36ba2724ba9.zip
getvesamenu httpmode and host
-rw-r--r--application/modules/ipxe/controllers/AuthController.php30
1 files changed, 15 insertions, 15 deletions
diff --git a/application/modules/ipxe/controllers/AuthController.php b/application/modules/ipxe/controllers/AuthController.php
index d600548..ba2408a 100644
--- a/application/modules/ipxe/controllers/AuthController.php
+++ b/application/modules/ipxe/controllers/AuthController.php
@@ -116,14 +116,14 @@ class Ipxe_AuthController extends Zend_Controller_Action {
}
if(!isset($_SERVER['PHP_AUTH_USER']) || !isset($_SERVER['PHP_AUTH_PW'])) {
- $this->_redirect($this->httpmode."://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/alpha/".$this->session->getAlphasessionID()."/error/login");
-// header('WWW-Authenticate: Basic realm=""');
-// header('HTTP/1.0 401 Unauthorized');
-// $result = "#!ipxe\n";
-// $result .= "set filename ".$this->httpmode."://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/alpha/".$this->session->getAlphasessionID()."/error/login\n";
-// header("Content-Length: ".(strlen($result)));
-// echo $result;
-// exit;
+// $this->_redirect($this->httpmode."://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/alpha/".$this->session->getAlphasessionID()."/error/login");
+ header('WWW-Authenticate: Basic realm=""');
+ header('HTTP/1.0 401 Unauthorized');
+ $result = "#!ipxe\n";
+ $result .= "set filename ".$this->httpmode."://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/alpha/".$this->session->getAlphasessionID()."/error/login\n";
+ header("Content-Length: ".(strlen($result)));
+ echo $result;
+ exit;
}
$email = $_SERVER['PHP_AUTH_USER'];
@@ -157,14 +157,14 @@ class Ipxe_AuthController extends Zend_Controller_Action {
$this->error = "session";
}
- $this->_redirect($this->httpmode."://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/alpha/".$this->session->getAlphasessionID()."/error/".$this->error);
+// $this->_redirect($this->httpmode."://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/alpha/".$this->session->getAlphasessionID()."/error/".$this->error);
-// header('Content-Type: text/plain');
-// $result = "#!ipxe\n";
-// $result .= "set filename ".$this->httpmode."://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/alpha/".$this->session->getAlphasessionID()."/error/".$this->error."\n";
-// header("Content-Length: ".(strlen($result)));
-// echo $result;
-// exit;
+ header('Content-Type: text/plain');
+ $result = "#!ipxe\n";
+ $result .= "set filename ".$this->httpmode."://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/alpha/".$this->session->getAlphasessionID()."/error/".$this->error."\n";
+ header("Content-Length: ".(strlen($result)));
+ echo $result;
+ exit;