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 /library/Pbs | |
parent | fbgui debug (diff) | |
download | pbs2-db68c944ad5939833cbf19ec92a4c9451b5c5dfa.tar.gz pbs2-db68c944ad5939833cbf19ec92a4c9451b5c5dfa.tar.xz pbs2-db68c944ad5939833cbf19ec92a4c9451b5c5dfa.zip |
debugging for fbgui
Diffstat (limited to 'library/Pbs')
-rw-r--r-- | library/Pbs/Debug.php | 13 |
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); + } +} |