summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--application/modules/fbgui/controllers/IndexController.php16
-rw-r--r--send-post.html16
2 files changed, 23 insertions, 9 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;
}
diff --git a/send-post.html b/send-post.html
index 7769c19..b89df3b 100644
--- a/send-post.html
+++ b/send-post.html
@@ -31,8 +31,20 @@
</form>
</fieldset>
<fieldset>
- <legend>http://localhost:81/</legend>
- <form action='http://localhost:81/' method='post'>
+ <legend>http://132.230.4.27/fbgui/index/</legend>
+ <form action='http://132.230.4.27/fbgui/index/' method='post'>
+ <label>serialnumber</label>
+ <input type='text' name='serialnumber' value='10-20-30-40-50'><br />
+ <label>Mac</label>
+ <input type='text' name='mac' value='00:0c:29:01:63:88'><br />
+ <label>Hardwarehash</label>
+ <input type='text' name='hardwarehash' value='51685132196851652186121869413216'><br />
+ <input type='submit' value='Test'>
+ </form>
+</fieldset>
+<fieldset>
+ <legend>http://pbs2.local/fbgui/index/</legend>
+ <form action='http://pbs2.local/fbgui/index/' method='post'>
<label>serialnumber</label>
<input type='text' name='serialnumber' value='10-20-30-40-50'><br />
<label>Mac</label>