diff options
| author | Simon | 2011-04-14 16:06:13 +0200 |
|---|---|---|
| committer | Simon | 2011-04-14 16:06:13 +0200 |
| commit | db68c944ad5939833cbf19ec92a4c9451b5c5dfa (patch) | |
| tree | 7dd34c1de0fca949317add86a96dac161d125273 /application | |
| parent | fbgui debug (diff) | |
| download | pbs2-db68c944ad5939833cbf19ec92a4c9451b5c5dfa.tar.gz pbs2-db68c944ad5939833cbf19ec92a4c9451b5c5dfa.tar.xz pbs2-db68c944ad5939833cbf19ec92a4c9451b5c5dfa.zip | |
debugging for fbgui
Diffstat (limited to 'application')
| -rw-r--r-- | application/controllers/IndexController.php | 9 | ||||
| -rw-r--r-- | application/modules/fbgui/controllers/IndexController.php | 5 |
2 files changed, 8 insertions, 6 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'); } diff --git a/application/modules/fbgui/controllers/IndexController.php b/application/modules/fbgui/controllers/IndexController.php index 3853c26..57bc22c 100644 --- a/application/modules/fbgui/controllers/IndexController.php +++ b/application/modules/fbgui/controllers/IndexController.php @@ -26,7 +26,10 @@ class Fbgui_IndexController extends Zend_Controller_Action if(isset($_SESSION['postdata'])){ $_POST = $_SESSION['postdata']; } - print_a($_POST,$_SESSION); + + $d = new Pbs_Debug(); + $d->debug(array('FBGuiIndexController',$_SERVER['REMOTE_ADDR'],implode("\t",$_SESSION['postdata']))); + if(isset($_POST['bootisoID']) || isset($_POST['serialnumber'])){ // Create a session $n = new Pbs_Session(); |
