diff --git a/inc/mod/ban.php b/inc/mod/ban.php deleted file mode 100644 index 82260585..00000000 --- a/inc/mod/ban.php +++ /dev/null @@ -1,10 +0,0 @@ - make_secure_link_token('ban'))); return; } - - require_once 'inc/mod/ban.php'; - + Bans::new_ban($_POST['ip'], $_POST['reason'], $_POST['length'], $_POST['board'] == '*' ? false : $_POST['board']); if (isset($_POST['redirect'])) @@ -1544,8 +1542,6 @@ function mod_ban_post($board, $delete, $post, $token = false) { $ip = $_post['ip']; if (isset($_POST['new_ban'], $_POST['reason'], $_POST['length'], $_POST['board'])) { - require_once 'inc/mod/ban.php'; - if (isset($_POST['ip'])) $ip = $_POST['ip'];