summaryrefslogtreecommitdiffstats
path: root/application/modules/ipxe/controllers/AuthController.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/modules/ipxe/controllers/AuthController.php')
-rw-r--r--application/modules/ipxe/controllers/AuthController.php12
1 files changed, 11 insertions, 1 deletions
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{