diff options
| author | Simon | 2011-03-21 16:20:14 +0100 |
|---|---|---|
| committer | Simon | 2011-03-21 16:20:14 +0100 |
| commit | 46ac4cbb42c8da28aadb5e094ed65da0b4116003 (patch) | |
| tree | 991d13928eac953e94a181cdc78da6bd679c5bf3 /application/modules | |
| parent | bugfix um session zu setzen (diff) | |
| download | pbs2-46ac4cbb42c8da28aadb5e094ed65da0b4116003.tar.gz pbs2-46ac4cbb42c8da28aadb5e094ed65da0b4116003.tar.xz pbs2-46ac4cbb42c8da28aadb5e094ed65da0b4116003.zip | |
fallback lösungen für fbgui hinzugefügt
Diffstat (limited to 'application/modules')
| -rw-r--r-- | application/modules/fbgui/controllers/IndexController.php | 17 |
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 ); |
