From 85f53c12aa782ab8fb9532c467cfc78875f060f2 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 14 Apr 2011 15:23:49 +0200 Subject: debug für fbgui --- application/controllers/IndexController.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'application/controllers') 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'); } -- cgit v1.2.3-55-g7522