From d10ce2db12577fe093dd78a4296672368d003b27 Mon Sep 17 00:00:00 2001 From: Denis Walker <dez@sucs.org> Date: Sat, 9 Jul 2011 23:28:31 +0000 Subject: [PATCH] A lazy hack to cope with the spam deluge - all comments marked for deletion by default --- lib/blog/admin.lib.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/blog/admin.lib.php b/lib/blog/admin.lib.php index 7778cdc..0a0eb69 100644 --- a/lib/blog/admin.lib.php +++ b/lib/blog/admin.lib.php @@ -571,6 +571,7 @@ class admin { echo "<div class=\"entry\">\n"; echo "<h2>Comments Pending Approval</h2>\n"; echo "<p>The comments in red are probably spam. They are premarked to be deleted for your convience.</p>\n"; +echo "<p><strong>Because of the large amount of spam and limited use the Blog system currently gets, all comments are defaulted to spam at present. <span style=\"color: red;\">Exercise caution</spam></p>\n"; echo "<form action=\"{$this->adminPath}updatecomments/\" method=\"post\">\n"; echo "<table class=\"td\">\n"; $post = ''; @@ -607,11 +608,11 @@ class admin { echo "\t\t<td><a href=\"mailto:{$r['email']}\" title=\"IP: {$r['host']}\">{$r['name']}</a></td>\n"; echo "\t\t<td>".htmlentities($r['body'], ENT_COMPAT, 'UTF-8')."</td>\n"; echo "\t\t<td><input type=\"radio\" name=\"group[$count]\" value=\"a:{$r['id']}\" /></td>\n"; - if ($r['spam'] == 't') { +// if ($r['spam'] == 't') { echo "\t\t<td><input type=\"radio\" name=\"group[".$count++."]\" value=\"d:{$r['id']}\" checked=\"checked\"/></td>\n"; - } else { - echo "\t\t<td><input type=\"radio\" name=\"group[".$count++."]\" value=\"d:{$r['id']}\" /></td>\n"; - } +// } else { +// echo "\t\t<td><input type=\"radio\" name=\"group[".$count++."]\" value=\"d:{$r['id']}\" /></td>\n"; +// } echo "\t</tr>\n"; } -- GitLab