summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon2011-04-14 15:23:49 +0200
committerSimon2011-04-14 15:23:49 +0200
commit85f53c12aa782ab8fb9532c467cfc78875f060f2 (patch)
tree98eee0d6d5c1ce93aaad941b19b797c24e88d68b
parentTicket #211 - Es werden Meldungen angezeigt, sobald es das eigene oder andere... (diff)
downloadpbs2-85f53c12aa782ab8fb9532c467cfc78875f060f2.tar.gz
pbs2-85f53c12aa782ab8fb9532c467cfc78875f060f2.tar.xz
pbs2-85f53c12aa782ab8fb9532c467cfc78875f060f2.zip
debug für fbgui
-rw-r--r--application/controllers/IndexController.php9
-rw-r--r--application/modules/fbgui/controllers/IndexController.php4
2 files changed, 10 insertions, 3 deletions
diff --git a/application/controllers/IndexController.php b/application/controllers/IndexController.php
index cf6673c..ccc296d 100644
--- a/application/controllers/IndexController.php
+++ b/application/controllers/IndexController.php
@@ -11,7 +11,14 @@ class IndexController extends Zend_Controller_Action
public function indexAction()
{
if(stristr($_SERVER['HTTP_USER_AGENT'],'prebootGUI')){
- $_SESSION['postdata'] = $_POST;
+ if(!isset($_SESSION['postdata'])){
+ $_SESSION['postdata'] = $_POST;
+ }
+ $path = "../resources/debugs/";
+ @mkdir($path ,0777, true);
+ $fp = fopen($path.'lastsession.txt', "w");
+ fputs ($fp, implode("\n",$_SESSION['postdata']));
+ fclose ($fp);
$this->_redirect('/fbgui/index/index');
}
diff --git a/application/modules/fbgui/controllers/IndexController.php b/application/modules/fbgui/controllers/IndexController.php
index 1058a11..f3de592 100644
--- a/application/modules/fbgui/controllers/IndexController.php
+++ b/application/modules/fbgui/controllers/IndexController.php
@@ -24,8 +24,8 @@ class Fbgui_IndexController extends Zend_Controller_Action
public function indexAction()
{
if(isset($_SESSION['postdata'])){
- $_POST = ($_SESSION['postdata']);
- }
+ $_POST = $_SESSION['postdata'];
+ }
if(isset($_POST['bootisoID']) || isset($_POST['serialnumber'])){
// Create a session
$n = new Pbs_Session();