diff options
| author | michael pereira | 2011-03-22 12:33:04 +0100 |
|---|---|---|
| committer | michael pereira | 2011-03-22 12:33:04 +0100 |
| commit | 24635afb8e43dde32ae6894d75f737327364d5d5 (patch) | |
| tree | ff44af5399a36a40ab29ba11508838897aca3d44 /application/modules/fbgui/controllers/IndexController.php | |
| parent | Bootiso & Preboot update (diff) | |
| parent | FBGui nutzt nun Session bzw Cookies (diff) | |
| download | pbs2-24635afb8e43dde32ae6894d75f737327364d5d5.tar.gz pbs2-24635afb8e43dde32ae6894d75f737327364d5d5.tar.xz pbs2-24635afb8e43dde32ae6894d75f737327364d5d5.zip | |
fbgui index merge
Diffstat (limited to 'application/modules/fbgui/controllers/IndexController.php')
| -rw-r--r-- | application/modules/fbgui/controllers/IndexController.php | 31 |
1 files changed, 8 insertions, 23 deletions
diff --git a/application/modules/fbgui/controllers/IndexController.php b/application/modules/fbgui/controllers/IndexController.php index 09332bf..adbe4cb 100644 --- a/application/modules/fbgui/controllers/IndexController.php +++ b/application/modules/fbgui/controllers/IndexController.php @@ -10,29 +10,14 @@ class Fbgui_IndexController extends Zend_Controller_Action public function indexAction() { - - $params = $this->_request->getParam('data'); - $keys = $this->_request->getParam('keys'); - $post = $this->_request->getParam('post'); + $params = $this->_request->getParam('postdata'); + 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; - } - elseif($post != '' && $keys != ''){ - $keys = $keys; - $post = $post; - $_POST = array_combine ( $keys , $post ); - print_a($keys, $data,$_POST); - } - if(isset($_POST['bootisoID'])){ + } + + if(isset($_POST['bootisoID']) || isset($_POST['serialnumber'])){ // Create a session $n = new Pbs_Session(); @@ -108,9 +93,9 @@ class Fbgui_IndexController extends Zend_Controller_Action $sessionMapper->save($session); echo "<h1>Downloading</h1>"; echo "<script>\n"; - echo "fbgui.startDownload('http://132.230.2.27/dev/resource/getkernel/".$_SESSION['alphasessionID']."/file/kernel');\n"; - echo "fbgui.startDownload('http://132.230.2.27/dev/resource/getkernel/".$_SESSION['alphasessionID']."/file/initramfs');\n"; - echo "fbgui.startDownload('http://132.230.2.27/dev/resource/getkernel/".$_SESSION['alphasessionID']."/file/kcl');\n"; + echo "fbgui.startDownload('http://132.230.4.27/dev/resource/getkernel/alpha/".$_SESSION['alphasessionID']."/file/kernel');\n"; + echo "fbgui.startDownload('http://132.230.4.27/dev/resource/getinitramfs/alpha/".$_SESSION['alphasessionID']."/file/initramfs');\n"; + echo "fbgui.startDownload('http://132.230.4.27/dev/resource/getkcl/alpha/".$_SESSION['alphasessionID']."/file/kcl');\n"; echo "fbgui.getSession('".$_SESSION['alphasessionID']."');\n"; echo "</script>"; |
