summaryrefslogtreecommitdiffstats
path: root/application/modules/ipxe/controllers
diff options
context:
space:
mode:
authormichael pereira2011-07-11 02:18:42 +0200
committermichael pereira2011-07-11 02:18:42 +0200
commita4d81c76cb05dfac956a800b2b3533b1ea040aab (patch)
treed9c1d5e38615272ab98ec55b7072a1685e1b0a17 /application/modules/ipxe/controllers
parentkleiner fix (diff)
downloadpbs2-a4d81c76cb05dfac956a800b2b3533b1ea040aab.tar.gz
pbs2-a4d81c76cb05dfac956a800b2b3533b1ea040aab.tar.xz
pbs2-a4d81c76cb05dfac956a800b2b3533b1ea040aab.zip
redirect raus
Diffstat (limited to 'application/modules/ipxe/controllers')
-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{