summaryrefslogtreecommitdiffstats
path: root/application/modules/fbgui/controllers/IndexController.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/modules/fbgui/controllers/IndexController.php')
-rw-r--r--application/modules/fbgui/controllers/IndexController.php17
1 files changed, 13 insertions, 4 deletions
diff --git a/application/modules/fbgui/controllers/IndexController.php b/application/modules/fbgui/controllers/IndexController.php
index c8df829..906de49 100644
--- a/application/modules/fbgui/controllers/IndexController.php
+++ b/application/modules/fbgui/controllers/IndexController.php
@@ -10,13 +10,22 @@ class Fbgui_IndexController extends Zend_Controller_Action
public function indexAction()
{
- if(isset($_SESSION['postdata'])){
+ $params = $this->_request->getParam('data');
+ $keys = $this->_request->getParam('keys');
+ $post = $this->_request->getParam('post');
+ if(isset($_SESSION['postdata'])){
$_POST = ($_SESSION['postdata']);
unset($_SESSION['postdata']);
+ }
+ elseif($params != ''){
+ print_a(json_decode($this->_request->getParam('data')));
+ $data = array();
+ $data = json_decode($this->_request->getParam('data'));
+ $_POST['bootisoID'] = $data->bootisoID;
+ $_POST['mac'] = $data->mac;
+ $_POST['hardwarehash'] = $data->hardwarehash;
}
- $keys = $this->_request->getParam('keys');
- $post = $this->_request->getParam('post');
- if($post != '' && $keys != ''){
+ elseif($post != '' && $keys != ''){
$keys = $keys;
$post = $post;
$_POST = array_combine ( $keys , $post );