diff options
author | Simon | 2011-03-21 14:32:55 +0100 |
---|---|---|
committer | Simon | 2011-03-21 14:32:55 +0100 |
commit | fa5ec972eab53575b06bb5062cbdb579126b8013 (patch) | |
tree | 44809a80da62deed0dddad08a8019c92b24e988e | |
parent | Filter angepasst, wenn keine Mitgliedschaft besteht (diff) | |
download | pbs2-fa5ec972eab53575b06bb5062cbdb579126b8013.tar.gz pbs2-fa5ec972eab53575b06bb5062cbdb579126b8013.tar.xz pbs2-fa5ec972eab53575b06bb5062cbdb579126b8013.zip |
quick-hack um durchzubooten
3 files changed, 26 insertions, 3 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>"; + + } } 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 @@ <tr> <td><?php echo $entry->getID();?></td> <td><?php echo $entry->getTitle();?></td> - <td>take this</td> + <td><a href='/fbgui/index/start/bme/<?php echo $entry->getID();?>'>take this</td> </tr> <?php endforeach; ?> </table> 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 --- /dev/null +++ b/application/modules/fbgui/views/scripts/index/start.phtml |