From e69dbd85edbecc8c51d6d455211669823e8facc3 Mon Sep 17 00:00:00 2001 From: michael pereira Date: Mon, 11 Jul 2011 01:41:53 +0200 Subject: Session und Filter fuer ipxe Bootmenu --- .../ipxe/controllers/ResourceController.php | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'application/modules/ipxe/controllers/ResourceController.php') diff --git a/application/modules/ipxe/controllers/ResourceController.php b/application/modules/ipxe/controllers/ResourceController.php index 0d1428a..7589d70 100644 --- a/application/modules/ipxe/controllers/ResourceController.php +++ b/application/modules/ipxe/controllers/ResourceController.php @@ -112,6 +112,32 @@ class Ipxe_ResourceController extends Zend_Controller_Action } + public function startAction(){ + $file = $this->_request->getParam('file'); + if($file == 'kernel'){ + $bootmenuntryID = $this->_request->getParam('bme'); + $a = $_SESSION['alphasessionID']; + $bootmenuentriesMapper = new Application_Model_BootMenuEntriesMapper(); + $bootmenuentry = new Application_Model_BootMenuEntries(); + $bootmenuentriesMapper->find($bootmenuntryID,$bootmenuentry); + + $sessionMapper = new Application_Model_SessionMapper(); + $session_k = $sessionMapper->findBy(array('alphasessionID' => $a),true); + + $session = new Application_Model_Session(); + $session->setOptions($session_k[0]); + $session->setID($session_k[0]['sessionID']); + + $session->setBootmenuentryID($bootmenuntryID); + $session->setBootosID($bootmenuentry->getBootosID()); + $sessionMapper->save($session); + + $this->_redirect('/resource/getkernel/alpha/'.$session->getAlphasessionID()); + } + + + } + } -- cgit v1.2.3-55-g7522