summaryrefslogtreecommitdiffstats
path: root/application/modules/fbgui/controllers
diff options
context:
space:
mode:
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>";
+
+ }
}