summaryrefslogtreecommitdiffstats
path: root/application/controllers/IndexController.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/controllers/IndexController.php')
-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');
}