forked from leftypol/leftypol
post.php: require post history before creating a thread
This commit is contained in:
parent
2904fb5f3e
commit
4277cc9851
1 changed files with 7 additions and 0 deletions
7
post.php
7
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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue