From 46ac4cbb42c8da28aadb5e094ed65da0b4116003 Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 21 Mar 2011 16:20:14 +0100 Subject: fallback lösungen für fbgui hinzugefügt --- .../modules/fbgui/controllers/IndexController.php | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'application/modules/fbgui/controllers/IndexController.php') 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 ); -- cgit v1.2.3-55-g7522