summaryrefslogtreecommitdiffstats
path: root/application/controllers
diff options
context:
space:
mode:
authorSimon2011-04-14 15:23:49 +0200
committerSimon2011-04-14 15:23:49 +0200
commit85f53c12aa782ab8fb9532c467cfc78875f060f2 (patch)
tree98eee0d6d5c1ce93aaad941b19b797c24e88d68b /application/controllers
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
Diffstat (limited to 'application/controllers')
-rw-r--r--application/controllers/IndexController.php9
1 files changed, 8 insertions, 1 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');
}