From a4332663cfcdb53b352c8646f78855ae3436cfec Mon Sep 17 00:00:00 2001 From: estadtherr Date: Thu, 14 Sep 2006 03:49:28 +0000 Subject: Initial TinyMCE editor support (still need to work on spellcheck and skins) git-svn-id: https://svn.roundcube.net/trunk@344 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/include/bugs.inc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'roundcubemail/program/include/bugs.inc') diff --git a/roundcubemail/program/include/bugs.inc b/roundcubemail/program/include/bugs.inc index 771f1aeda..bf4c572c8 100644 --- a/roundcubemail/program/include/bugs.inc +++ b/roundcubemail/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 -- cgit v1.2.3