summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorSimon2011-04-14 16:06:13 +0200
committerSimon2011-04-14 16:06:13 +0200
commitdb68c944ad5939833cbf19ec92a4c9451b5c5dfa (patch)
tree7dd34c1de0fca949317add86a96dac161d125273 /library
parentfbgui debug (diff)
downloadpbs2-db68c944ad5939833cbf19ec92a4c9451b5c5dfa.tar.gz
pbs2-db68c944ad5939833cbf19ec92a4c9451b5c5dfa.tar.xz
pbs2-db68c944ad5939833cbf19ec92a4c9451b5c5dfa.zip
debugging for fbgui
Diffstat (limited to 'library')
-rw-r--r--library/Pbs/Debug.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/library/Pbs/Debug.php b/library/Pbs/Debug.php
new file mode 100644
index 0000000..23983a5
--- /dev/null
+++ b/library/Pbs/Debug.php
@@ -0,0 +1,13 @@
+<?php
+class Pbs_Debug{
+
+ function debug($str){
+ $path = "../resources/debugs/";
+ @mkdir($path ,0777, true);
+ $fp = fopen($path.'lastsession.txt', "a");
+ if(is_array($str))
+ $str = implide("\n",$str);
+ fputs ($fp,date("Y-m-d H:i:s",time())."\t".$str."\n");
+ fclose ($fp);
+ }
+}