summaryrefslogtreecommitdiff
path: root/inc/common.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2006-06-16 17:49:06 +0200
committerAndreas Gohr <andi@splitbrain.org>2006-06-16 17:49:06 +0200
commit63cb5853ff174b45e697ea0818816060805503aa (patch)
treeba3f541e18cca2976be0216c3b767099675d2454 /inc/common.php
parent11e384f72d646266f90cc7ff18c59dea58fd30c7 (diff)
downloadrpg-63cb5853ff174b45e697ea0818816060805503aa.tar.gz
rpg-63cb5853ff174b45e697ea0818816060805503aa.tar.bz2
aspell fix #836
darcs-hash:20060616154906-7ad00-6ace887070a70fda5f898f241aebb639230b53d8.gz
Diffstat (limited to 'inc/common.php')
-rw-r--r--inc/common.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/inc/common.php b/inc/common.php
index 975c70098..e47b4e7a3 100644
--- a/inc/common.php
+++ b/inc/common.php
@@ -695,6 +695,21 @@ function dbg($msg,$hidden=false){
}
/**
+ * Print info to a log file
+ *
+ * @author Andreas Gohr <andi@splitbrain.org>
+ */
+function dbglog($msg){
+ global $conf;
+ $file = $conf['cachedir'].'/debug.log';
+ $fh = fopen($file,'a');
+ if($fh){
+ fwrite($fh,date('H:i:s ').$_SERVER['REMOTE_ADDR'].': '.$msg."\n");
+ fclose($fh);
+ }
+}
+
+/**
* Add's an entry to the changelog
*
* @author Andreas Gohr <andi@splitbrain.org>