summaryrefslogtreecommitdiffstats
path: root/application/modules/fbgui/controllers
diff options
context:
space:
mode:
authorSimon2011-03-21 14:32:55 +0100
committerSimon2011-03-21 14:32:55 +0100
commitfa5ec972eab53575b06bb5062cbdb579126b8013 (patch)
tree44809a80da62deed0dddad08a8019c92b24e988e /application/modules/fbgui/controllers
parentFilter angepasst, wenn keine Mitgliedschaft besteht (diff)
downloadpbs2-fa5ec972eab53575b06bb5062cbdb579126b8013.tar.gz
pbs2-fa5ec972eab53575b06bb5062cbdb579126b8013.tar.xz
pbs2-fa5ec972eab53575b06bb5062cbdb579126b8013.zip
quick-hack um durchzubooten
Diffstat (limited to 'application/modules/fbgui/controllers')
-rw-r--r--application/modules/fbgui/controllers/IndexController.php27
1 files changed, 25 insertions, 2 deletions
diff --git a/application/modules/fbgui/controllers/IndexController.php b/application/modules/fbgui/controllers/IndexController.php
index fe457b6..12514c5 100644
--- a/application/modules/fbgui/controllers/IndexController.php
+++ b/application/modules/fbgui/controllers/IndexController.php
@@ -68,10 +68,33 @@ class Fbgui_IndexController extends Zend_Controller_Action
else{
echo "<h1>Not Welcome</h1>";
print_a($_POST);
- }
+ }
}
-
+ public function startAction(){
+ $bootmenuntryID = $this->_request->getParam('bme');
+ $bootmenuentriesMapper = new Application_Model_BootMenuEntriesMapper();
+ $bootmenuentry = new Application_Model_BootMenuEntries();
+ $bootmenuentriesMapper->find($bootmenuntryID,$bootmenuentry);
+
+ $sessionMapper = new Application_Model_SessionMapper();
+ $session_k = $sessionMapper->findBy('alphasessionID',$_SESSION['alphasessionID']);
+
+ $session = new Application_Model_Session();
+ $session->setOptions($session_k[0]);
+ $session->setID($session_k[0]['sessionID']);
+# print_a($bootmenuentry);die();
+ $session->setBootmenuentryID($bootmenuntryID);
+ $session->setBootosID($bootmenuentry->getBootosID());
+ echo "<h1>Downloading</h1>";
+ echo "<script>\n";
+ echo "fbgui.startDownload('http://132.230.2.27/dev/resource/getkernel/".$_SESSION['alphasessionID']."/file/kernel');\n";
+ echo "fbgui.startDownload('http://132.230.2.27/dev/resource/getkernel/".$_SESSION['alphasessionID']."/file/initramfs');\n";
+ echo "fbgui.startDownload('http://132.230.2.27/dev/resource/getkernel/".$_SESSION['alphasessionID']."/file/kcl');\n";
+ echo "fbgui.getSession('".$_SESSION['alphasessionID']."');\n";
+ echo "</script>";
+
+ }
}