--- a/plugins/SpecialAdmin.php Sat Jan 17 15:16:36 2009 -0500
+++ b/plugins/SpecialAdmin.php Sun Jan 25 21:18:05 2009 -0500
@@ -304,6 +304,10 @@
if(isset($_POST['enable-comments'])) setConfig('enable_comments', '1');
else setConfig('enable_comments', '0');
setConfig('comments_need_login', $_POST['comments_need_login']);
+ if ( in_array($_POST['comment_spam_policy'], array('moderate', 'reject', 'accept')) )
+ {
+ setConfig('comment_spam_policy', $_POST['comment_spam_policy']);
+ }
// Powered by link
if ( isset($_POST['enano_powered_link']) ) setConfig('powered_btn', '1');
@@ -604,6 +608,27 @@
</label>
</td>
</tr>
+
+ <tr>
+ <td class="row2">
+ <?php echo $lang->get('acpgc_field_comment_spam_policy'); ?><br />
+ <small><?php echo $lang->get('acpgc_field_comment_spam_policy_hint'); ?></small>
+ </td>
+ <td class="row2">
+ <label>
+ <input name="comment_spam_policy" type="radio" value="moderate" <?php if ( getConfig('comment_spam_policy', 'moderate') == 'moderate' ) echo 'checked="checked"'; ?>/>
+ <?php echo $lang->get('acpgc_field_comment_spam_policy_moderate'); ?>
+ </label>
+ <label>
+ <input name="comment_spam_policy" type="radio" value="reject" <?php if ( getConfig('comment_spam_policy', 'moderate') == 'reject' ) echo 'checked="checked"'; ?>/>
+ <?php echo $lang->get('acpgc_field_comment_spam_policy_reject'); ?>
+ </label>
+ <label>
+ <input name="comment_spam_policy" type="radio" value="accept" <?php if ( getConfig('comment_spam_policy', 'moderate') == 'accept' ) echo 'checked="checked"'; ?>/>
+ <?php echo $lang->get('acpgc_field_comment_spam_policy_accept'); ?>
+ </label>
+ </td>
+ </tr>
<!-- Site disablement -->