diff options
author | Simon | 2011-04-14 17:48:07 +0200 |
---|---|---|
committer | Simon | 2011-04-14 17:48:07 +0200 |
commit | 35201075c3257b3df249badfdd151c4d841c3f7f (patch) | |
tree | c1acc080e2fd075ed207d9a11cf7e8c082776c40 /application/modules/fbgui | |
parent | fbgui bug workaround (diff) | |
download | pbs2-35201075c3257b3df249badfdd151c4d841c3f7f.tar.gz pbs2-35201075c3257b3df249badfdd151c4d841c3f7f.tar.xz pbs2-35201075c3257b3df249badfdd151c4d841c3f7f.zip |
fbgui bugfix
Diffstat (limited to 'application/modules/fbgui')
-rw-r--r-- | application/modules/fbgui/controllers/IndexController.php | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/application/modules/fbgui/controllers/IndexController.php b/application/modules/fbgui/controllers/IndexController.php index 6e23e6a..119a392 100644 --- a/application/modules/fbgui/controllers/IndexController.php +++ b/application/modules/fbgui/controllers/IndexController.php @@ -25,6 +25,9 @@ class Fbgui_IndexController extends Zend_Controller_Action { $mySession = new Zend_Session_Namespace('pbs'); + if(!isset($mySession->postdata)) + $mySession->postdata = $_POST; + print_a($mySession->postdata); $d = new Pbs_Debug(); @@ -132,12 +135,16 @@ class Fbgui_IndexController extends Zend_Controller_Action } public function startAction(){ $bootmenuntryID = $this->_request->getParam('bme'); + $a = $this->_request->getParam('a'); + if($a == ''){ + $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' => $_SESSION['alphasessionID']),true); + $session_k = $sessionMapper->findBy(array('alphasessionID' => $a),true); $session = new Application_Model_Session(); $session->setOptions($session_k[0]); @@ -147,12 +154,7 @@ class Fbgui_IndexController extends Zend_Controller_Action $session->setBootosID($bootmenuentry->getBootosID()); $sessionMapper->save($session); - if($this->_request->getParam('a') != ''){ - $a = $this->_request->getParam('a'); - } - else{ - $a = $_SESSION['alphasessionID']; - } + $this->view->host = '132.230.4.27'; $this->view->alphaid = $a; } |