Simple anti-spam mechanism

This commit is contained in:
Your Name
2023-09-10 23:46:38 +02:00
committed by Zankaria
parent 0296301fff
commit 6dabfa08bc
3 changed files with 24 additions and 1 deletions

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']);