1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-27 17:00:52 +01:00

Remove bans.php

This commit is contained in:
Zankaria 2024-02-14 11:07:47 +01:00
parent 5867963747
commit fde425111c
2 changed files with 1 additions and 15 deletions

View File

@ -1,10 +0,0 @@
<?php
/*
* Copyright (c) 2010-2013 Tinyboard Development Group
*/
defined('TINYBOARD') or exit;
// This file is no longer used.

View File

@ -973,8 +973,6 @@ function mod_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'];