summaryrefslogtreecommitdiffstats
path: root/application/controllers
diff options
context:
space:
mode:
authorSimon2011-04-14 16:06:13 +0200
committerSimon2011-04-14 16:06:13 +0200
commitdb68c944ad5939833cbf19ec92a4c9451b5c5dfa (patch)
tree7dd34c1de0fca949317add86a96dac161d125273 /application/controllers
parentfbgui debug (diff)
downloadpbs2-db68c944ad5939833cbf19ec92a4c9451b5c5dfa.tar.gz
pbs2-db68c944ad5939833cbf19ec92a4c9451b5c5dfa.tar.xz
pbs2-db68c944ad5939833cbf19ec92a4c9451b5c5dfa.zip
debugging for fbgui
Diffstat (limited to 'application/controllers')
-rw-r--r--application/controllers/IndexController.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/application/controllers/IndexController.php b/application/controllers/IndexController.php
index 8fd9649..3818132 100644
--- a/application/controllers/IndexController.php
+++ b/application/controllers/IndexController.php
@@ -14,11 +14,10 @@ class IndexController extends Zend_Controller_Action
if(!isset($_SESSION['postdata'])){
$_SESSION['postdata'] = $_POST;
}
- $path = "../resources/debugs/";
- @mkdir($path ,0777, true);
- $fp = fopen($path.'lastsession.txt', "a");
- fputs ($fp,date("Y-m-d H:i:s",time())."\t".$_SERVER['REMOTE_ADDR']."\t".implode("\t",$_SESSION['postdata'])."\n");
- fclose ($fp);
+
+ $d = new Pbs_Debug();
+ $d->debug(array('MainIndexController',$_SERVER['REMOTE_ADDR'],implode("\t",$_SESSION['postdata'])));
+
$this->_redirect('/fbgui/index/index');
}