summaryrefslogtreecommitdiffstats
path: root/application/modules/fbgui
diff options
context:
space:
mode:
Diffstat (limited to 'application/modules/fbgui')
-rw-r--r--application/modules/fbgui/controllers/IndexController.php16
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;
}