1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-24 07:30:10 +01:00
This commit is contained in:
Circlepuller 2019-03-09 11:54:18 +08:00 committed by Fredrick Brennan
parent bcfb39bde8
commit dd5dbe65c7

View File

@ -7,10 +7,6 @@ require_once 'inc/functions.php';
require_once 'inc/anti-bot.php'; require_once 'inc/anti-bot.php';
require_once 'inc/bans.php'; require_once 'inc/bans.php';
if ((!isset($_POST['mod']) || !$_POST['mod']) && $config['board_locked']) {
error("Board is locked");
}
$dropped_post = false; $dropped_post = false;
// Is it a post coming from NNTP? Let's extract it and pretend it's a normal post. // Is it a post coming from NNTP? Let's extract it and pretend it's a normal post.
@ -199,6 +195,10 @@ if (isset($_POST['delete'])) {
if (!openBoard($_POST['board'])) if (!openBoard($_POST['board']))
error($config['error']['noboard']); error($config['error']['noboard']);
if ((!isset($_POST['mod']) || !$_POST['mod']) && $config['board_locked']) {
error("Board is locked");
}
// Check if banned // Check if banned
checkBan($board['uri']); checkBan($board['uri']);
@ -282,6 +282,10 @@ if (isset($_POST['delete'])) {
if (!openBoard($_POST['board'])) if (!openBoard($_POST['board']))
error($config['error']['noboard']); error($config['error']['noboard']);
if ((!isset($_POST['mod']) || !$_POST['mod']) && $config['board_locked']) {
error("Board is locked");
}
// Check if banned // Check if banned
checkBan($board['uri']); checkBan($board['uri']);
@ -358,6 +362,10 @@ if (isset($_POST['delete'])) {
if (!openBoard($post['board'])) if (!openBoard($post['board']))
error($config['error']['noboard']); error($config['error']['noboard']);
if ((!isset($_POST['mod']) || !$_POST['mod']) && $config['board_locked']) {
error("Board is locked");
}
if (!isset($_POST['name'])) if (!isset($_POST['name']))
$_POST['name'] = $config['anonymous']; $_POST['name'] = $config['anonymous'];