Simple anti-spam mechanism

This commit is contained in:
Your Name authored and Zankaria committed 2024-03-14 12:50:19 +01:00
1 parent 0296301fff
commit 6dabfa08bc
3 files changed
+24 -1

No files matched your search

+5
View File
@@ -558,6 +558,11 @@ if (isset($_POST['delete'])) {
if (!$dropped_post) {
if (isset($config['simple_spam']) && $config['simple_spam'] && $post['op']) {
if (!isset($_POST['simple_spam']) || $config['simple_spam']['answer'] != $_POST['simple_spam']) {
error($config['error']['simple_spam']);
}
}
// Check if banned
checkBan($board['uri']);