From a4d81c76cb05dfac956a800b2b3533b1ea040aab Mon Sep 17 00:00:00 2001 From: michael pereira Date: Mon, 11 Jul 2011 02:18:42 +0200 Subject: redirect raus --- application/modules/ipxe/controllers/AuthController.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'application/modules/ipxe/controllers/AuthController.php') diff --git a/application/modules/ipxe/controllers/AuthController.php b/application/modules/ipxe/controllers/AuthController.php index d3c5ca0..7cc5a13 100644 --- a/application/modules/ipxe/controllers/AuthController.php +++ b/application/modules/ipxe/controllers/AuthController.php @@ -74,7 +74,17 @@ class Ipxe_AuthController extends Zend_Controller_Action $session = $sessions[0]; } - $this->_redirect('/ipxe/resource/ipxe/alpha/'.$session->getAlphasessionID()); + header('Content-Type: text/plain'); + + $result = "#!ipxe\n"; + $result .= "imgfree\n"; + + $result .= "chain http://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenu/alpha/".$this->thisSession->getAlphasessionID()." http://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/alpha/".$this->thisSession->getAlphasessionID(); + + header("Content-Length: ".(strlen($result))); + + echo $result; +// $this->_redirect('/ipxe/resource/ipxe/alpha/'.$session->getAlphasessionID()); } else{ -- cgit v1.2.3-55-g7522