diff options
| author | michael pereira | 2011-07-11 01:55:53 +0200 |
|---|---|---|
| committer | michael pereira | 2011-07-11 01:55:53 +0200 |
| commit | abbc2b5cd7a21fc5cddd0aa5c8f3b3ea0a6250f9 (patch) | |
| tree | e08f56e736b59c6efc4dd1a2f6d594c1544d646d /application/modules/ipxe/controllers/ResourceController.php | |
| parent | kleiner fix (diff) | |
| download | pbs2-abbc2b5cd7a21fc5cddd0aa5c8f3b3ea0a6250f9.tar.gz pbs2-abbc2b5cd7a21fc5cddd0aa5c8f3b3ea0a6250f9.tar.xz pbs2-abbc2b5cd7a21fc5cddd0aa5c8f3b3ea0a6250f9.zip | |
kleiner fix
Diffstat (limited to 'application/modules/ipxe/controllers/ResourceController.php')
| -rw-r--r-- | application/modules/ipxe/controllers/ResourceController.php | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/application/modules/ipxe/controllers/ResourceController.php b/application/modules/ipxe/controllers/ResourceController.php index 7589d70..54a6c89 100644 --- a/application/modules/ipxe/controllers/ResourceController.php +++ b/application/modules/ipxe/controllers/ResourceController.php @@ -113,27 +113,26 @@ 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); + $bootmenuntryID = $this->_request->getParam('bme'); + $a = $_SESSION['alphasessionID']; + $bootmenuentriesMapper = new Application_Model_BootMenuEntriesMapper(); + $bootmenuentry = new Application_Model_BootMenuEntries(); + $bootmenuentriesMapper->find($bootmenuntryID,$bootmenuentry); - $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()); - } + $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()); + } |
