From 63cb5853ff174b45e697ea0818816060805503aa Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Fri, 16 Jun 2006 17:49:06 +0200 Subject: aspell fix #836 darcs-hash:20060616154906-7ad00-6ace887070a70fda5f898f241aebb639230b53d8.gz --- inc/common.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'inc/common.php') diff --git a/inc/common.php b/inc/common.php index 975c70098..e47b4e7a3 100644 --- a/inc/common.php +++ b/inc/common.php @@ -694,6 +694,21 @@ function dbg($msg,$hidden=false){ (!$hidden) ? print '' : print "\n-->"; } +/** + * Print info to a log file + * + * @author Andreas Gohr + */ +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 * -- cgit v1.2.3