From fa5ec972eab53575b06bb5062cbdb579126b8013 Mon Sep 17 00:00:00 2001
From: Simon
Date: Mon, 21 Mar 2011 14:32:55 +0100
Subject: quick-hack um durchzubooten
---
.../modules/fbgui/controllers/IndexController.php | 27 ++++++++++++++++++++--
.../modules/fbgui/views/scripts/index/index.phtml | 2 +-
.../modules/fbgui/views/scripts/index/start.phtml | 0
3 files changed, 26 insertions(+), 3 deletions(-)
create mode 100644 application/modules/fbgui/views/scripts/index/start.phtml
(limited to 'application/modules')
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 "
Not Welcome
";
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 "Downloading
";
+ echo "";
+
+ }
}
diff --git a/application/modules/fbgui/views/scripts/index/index.phtml b/application/modules/fbgui/views/scripts/index/index.phtml
index 2e93bda..b2b813d 100644
--- a/application/modules/fbgui/views/scripts/index/index.phtml
+++ b/application/modules/fbgui/views/scripts/index/index.phtml
@@ -3,7 +3,7 @@
| getID();?> |
getTitle();?> |
- take this |
+ take this |
diff --git a/application/modules/fbgui/views/scripts/index/start.phtml b/application/modules/fbgui/views/scripts/index/start.phtml
new file mode 100644
index 0000000..e69de29
--
cgit v1.2.3-55-g7522