summaryrefslogtreecommitdiffstats
path: root/application/modules/ipxe/controllers/AuthController.php
diff options
context:
space:
mode:
authormichael pereira2011-09-27 12:17:38 +0200
committermichael pereira2011-09-27 12:17:38 +0200
commit77cff882984835416027311edbc3142404c4b304 (patch)
tree3951d6f682e0ab4a16a35bf290f6ae45914a5939 /application/modules/ipxe/controllers/AuthController.php
parentvesamenu test (diff)
downloadpbs2-77cff882984835416027311edbc3142404c4b304.tar.gz
pbs2-77cff882984835416027311edbc3142404c4b304.tar.xz
pbs2-77cff882984835416027311edbc3142404c4b304.zip
vesamenu
Diffstat (limited to 'application/modules/ipxe/controllers/AuthController.php')
-rw-r--r--application/modules/ipxe/controllers/AuthController.php49
1 files changed, 20 insertions, 29 deletions
diff --git a/application/modules/ipxe/controllers/AuthController.php b/application/modules/ipxe/controllers/AuthController.php
index ab06818..4f13feb 100644
--- a/application/modules/ipxe/controllers/AuthController.php
+++ b/application/modules/ipxe/controllers/AuthController.php
@@ -147,15 +147,6 @@ class Ipxe_AuthController extends Zend_Controller_Action
$this->_redirect('/ipxe/resource/getvesamenuconfig/alpha/'.$alpha.'/error/'.$this->error);
-// header('Content-Type: text/plain');
-//
-// $result = "#!ipxe\n";
-// $result .= "imgfree\n";
-// $result .= "chain http://".$_SERVER['HTTP_HOST']."/ipxe/vesamenu.c32 http://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/alpha/".$alpha."/error/$this->error\n";
-//
-// header("Content-Length: ".(strlen($result)));
-//
-// echo $result;
}
public function logoutAction(){
@@ -192,17 +183,17 @@ class Ipxe_AuthController extends Zend_Controller_Action
$this->error = "session";
}
-// header('Content-Type: text/plain');
-//
-// $result = "#!ipxe\n";
-// $result .= "imgfree\n";
-// $result .= "chain http://".$_SERVER['HTTP_HOST']."/ipxe/vesamenu.c32 http://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/alpha/".$alpha."/error/$this->error\n";
-//
-// header("Content-Length: ".(strlen($result)));
-//
-// echo $result;
+ header('Content-Type: text/plain');
+
+ $result = "#!ipxe\n";
+ $result .= "imgfree\n";
+ $result .= "chain http://".$_SERVER['HTTP_HOST']."/ipxe/vesamenu.c32 http://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/alpha/".$alpha."/error/$this->error\n";
- $this->_redirect('/ipxe/resource/getvesamenuconfig/alpha/'.$alpha.'/error/'.$this->error);
+ header("Content-Length: ".(strlen($result)));
+
+ echo $result;
+
+// $this->_redirect('/ipxe/resource/getvesamenuconfig/alpha/'.$alpha.'/error/'.$this->error);
}
public function setgroupAction(){
@@ -218,17 +209,17 @@ class Ipxe_AuthController extends Zend_Controller_Action
$this->error = "session";
}
-// header('Content-Type: text/plain');
-//
-// $result = "#!ipxe\n";
-// $result .= "imgfree\n";
-// $result .= "chain http://".$_SERVER['HTTP_HOST']."/ipxe/vesamenu.c32 http://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/alpha/".$alpha."/error/$this->error\n";
-//
-// header("Content-Length: ".(strlen($result)));
-//
-// echo $result;
+ header('Content-Type: text/plain');
+
+ $result = "#!ipxe\n";
+ $result .= "imgfree\n";
+ $result .= "chain http://".$_SERVER['HTTP_HOST']."/ipxe/vesamenu.c32 http://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/alpha/".$alpha."/error/$this->error\n";
+
+ header("Content-Length: ".(strlen($result)));
- $this->_redirect('/ipxe/resource/getvesamenuconfig/alpha/'.$alpha.'/error/'.$this->error);
+ echo $result;
+
+// $this->_redirect('/ipxe/resource/getvesamenuconfig/alpha/'.$alpha.'/error/'.$this->error);
}