Update of /cvsroot/php-blog/serendipity/plugins/serendipity_event_spamblock
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31775
Modified Files:
Tag: branch-smarty
serendipity_event_spamblock.php
Log Message:
MFH
Index: serendipity_event_spamblock.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_event_spamblock/serendipity_event_spamblock.php,v
retrieving revision 1.4.2.8
retrieving revision 1.4.2.9
diff -u -d -r1.4.2.8 -r1.4.2.9
--- serendipity_event_spamblock.php 23 Sep 2004 12:51:31 -0000 1.4.2.8
+++ serendipity_event_spamblock.php 23 Sep 2004 13:04:52 -0000 1.4.2.9
@@ -391,7 +391,7 @@
function log($logfile, $id, $switch, $reason, $comment) {
global $serendipity;
- if (empty($log)) {
+ if (empty($logfile)) {
return;
}
@@ -400,8 +400,8 @@
return;
}
fwrite($fp, sprintf(
- '[%s] - [%s: %s] - [#%d, Name "%s", E-Mail "%s", URL "%s", User-Agent "%s", IP %s] - [%s]',
- date('%Y-%m-%d'),
+ '[%s] - [%s: %s] - [#%d, Name "%s", E-Mail "%s", URL "%s", User-Agent "%s", IP %s] - [%s]' . "\n",
+ date('Y-m-d H:i:s'),
$switch,
$reason,
$id,
|