post.php: require post history before creating a thread

This commit is contained in:
Zankaria 2024-11-12 15:05:49 +01:00
parent 2904fb5f3e
commit 4277cc9851

View file

@ -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) {