diff options
author | svncommit <devs@roundcube.net> | 2006-09-14 03:49:28 +0000 |
---|---|---|
committer | svncommit <devs@roundcube.net> | 2006-09-14 03:49:28 +0000 |
commit | a0109c4933e0bfb5ed9dbcf94f932991ca689542 (patch) | |
tree | 955246969bf9da5d5335d1d7c483025fdbd50407 /program/include/bugs.inc | |
parent | bb5ddfa0ade5fbd2ed9be16e51d4ce695252eece (diff) |
Initial TinyMCE editor support (still need to work on spellcheck and skins)
Diffstat (limited to 'program/include/bugs.inc')
-rw-r--r-- | program/include/bugs.inc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/program/include/bugs.inc b/program/include/bugs.inc index 771f1aeda..bf4c572c8 100644 --- a/program/include/bugs.inc +++ b/program/include/bugs.inc @@ -115,5 +115,19 @@ function log_bug($arg_arr) } } +function log_debug($filename, $text) +{ + global $CONFIG, $INSTALL_PATH; + + if (empty($CONFIG['log_dir'])) + $CONFIG['log_dir'] = $INSTALL_PATH.'logs'; + + // try to open specific log file for writing + if ($fp = @fopen($CONFIG['log_dir'].'/'.$filename, 'a')) + { + fwrite($fp, date("d-M-Y H:i:s", mktime()) . ' ' . $text . "\n"); + fclose($fp); + } +} ?>
\ No newline at end of file |