Update of /cvsroot/php-blog/serendipity/plugins/serendipity_event_spamblock
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30513
Modified Files:
serendipity_event_spamblock.php
Log Message:
Fix typo and static text
Index: serendipity_event_spamblock.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_event_spamblock/serendipity_event_spamblock.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- serendipity_event_spamblock.php 3 Sep 2004 23:24:20 -0000 1.3
+++ serendipity_event_spamblock.php 4 Sep 2004 18:56:36 -0000 1.4
@@ -6,10 +6,11 @@
@define('PLUGIN_EVENT_SPAMBLOCK_DESC', 'A varity of methods to prevent comment spam');
@define('PLUGIN_EVENT_SPAMBLOCK_ERROR_BODY', 'SPAM Prevention detected invalid message. Comment not added.');
@define('PLUGIN_EVENT_SPAMBLOCK_ERROR_IP', 'SPAM Prevention asks you to not mass-post comments to this blog. Comment not added.');
- @define('PLUGIN_EVENT_SPAMBLOCK_BODYCLONE', 'Do not allow doublicate comments');
+ @define('PLUGIN_EVENT_SPAMBLOCK_BODYCLONE', 'Do not allow duplicate comments');
@define('PLUGIN_EVENT_SPAMBLOCK_BODYCLONE_DESC', 'Do not allow users to submit a comment which contains the same body as an already submitted comment');
@define('PLUGIN_EVENT_SPAMBLOCK_KILLSWITCH', 'Emergency comment shutdown');
@define('PLUGIN_EVENT_SPAMBLOCK_KILLSWITCH_DESC', 'Temporarily disable comments for all entries. Useful if your blog is under spam attack.');
+ @define('PLUGIN_EVENT_SPAMBLOCK_KILLSWITCH_NOTICE', 'This blog is in "Emergency Comment Blockage Mode", please come back another time');
@define('PLUGIN_EVENT_SPAMBLOCK_IPFLOOD', 'IP block interval');
@define('PLUGIN_EVENT_SPAMBLOCK_IPFLOOD_DESC', 'Only allow an IP to submit a comment every n minutes. Useful to prevent comment floods.');
break;
@@ -39,7 +40,6 @@
$propbag->add('name', PLUGIN_EVENT_SPAMBLOCK_BODYCLONE);
$propbag->add('description', PLUGIN_EVENT_SPAMBLOCK_BODYCLONE_DESC);
$propbag->add('default', true);
-
break;
case 'killswitch':
@@ -78,7 +78,7 @@
if ( $this->get_config('killswitch', false) === true ) {
$eventData = array('allow_comments' => false);
- $serendipity['messagestack']['comments'][] = 'This blog is in "Emergency Comment Blockage Mode", please come back another time';
+ $serendipity['messagestack']['comments'][] = PLUGIN_EVENT_SPAMBLOCK_KILLSWITCH_NOTICE;
return false;
}
|