From 4277cc9851cc6c51f8ace3a1a5d6d07c989fd1a5 Mon Sep 17 00:00:00 2001 From: Zankaria Date: Tue, 12 Nov 2024 15:05:49 +0100 Subject: [PATCH] post.php: require post history before creating a thread --- post.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/post.php b/post.php index 997201b0..daaffcf6 100644 --- a/post.php +++ b/post.php @@ -932,6 +932,13 @@ function handle_post() // Check if banned checkBan($board['uri']); + if ($config['op_require_history'] && $post['op']) { + $has_any = has_any_history($_SERVER['REMOTE_ADDR']); + if (!$has_any) { + error($config['error']['opnohistory']); + } + } + if ($post['mod'] = isset($_POST['mod']) && $_POST['mod']) { check_login(false); if (!$mod) {