diff options
author | Sebastian Schmelzer | 2012-01-11 14:36:35 +0100 |
---|---|---|
committer | Sebastian Schmelzer | 2012-01-11 14:36:35 +0100 |
commit | fca04a6dab252eb9e8c0a92ce3b7e14b32e68d1e (patch) | |
tree | 6e6aaf749f34db8c7c7153c23ef85c57187430bb /library/Pbs/Debug.php | |
parent | API: mit addBootos kann man nun auch editieren (diff) | |
download | pbs2-fca04a6dab252eb9e8c0a92ce3b7e14b32e68d1e.tar.gz pbs2-fca04a6dab252eb9e8c0a92ce3b7e14b32e68d1e.tar.xz pbs2-fca04a6dab252eb9e8c0a92ce3b7e14b32e68d1e.zip |
format source files
Diffstat (limited to 'library/Pbs/Debug.php')
-rw-r--r-- | library/Pbs/Debug.php | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/library/Pbs/Debug.php b/library/Pbs/Debug.php index c2031a1..8610ede 100644 --- a/library/Pbs/Debug.php +++ b/library/Pbs/Debug.php @@ -1,4 +1,4 @@ -<?php +<? php /* * Copyright (c) 2011 - OpenSLX GmbH, RZ Uni Freiburg * This program is free software distributed under the GPL version 2. @@ -9,15 +9,15 @@ * * General information about OpenSLX can be found at http://openslx.org/ */ -class Pbs_Debug{ +class Pbs_Debug { - function debug($str){ - $path = "../resources/debugs/"; - @mkdir($path ,0777, true); - $fp = fopen($path.'lastsession.txt', "a"); - if(is_array($str)) - $str = implode("\t",$str); - fputs ($fp,date("Y-m-d H:i:s",time())."\t".$str."\n"); - fclose ($fp); - } + function debug($str) { + $path = "../resources/debugs/"; + @mkdir($path , 0777, true); + $fp = fopen($path.'lastsession.txt', "a"); + if(is_array($str)) + { $str = implode("\t", $str); } + fputs ($fp, date("Y-m-d H:i:s", time())."\t".$str."\n"); + fclose ($fp); + } } |