forked from leftypol/leftypol
$config['require_ban_view']: Force users to view the "You are banned" page at least once before letting a ban disappear naturally.
This commit is contained in:
parent
29b10c88db
commit
c8f30550af
6 changed files with 35 additions and 9 deletions
|
@ -56,7 +56,7 @@ function parse_time($str) {
|
|||
function ban($mask, $reason, $length, $board) {
|
||||
global $mod, $pdo;
|
||||
|
||||
$query = prepare("INSERT INTO `bans` VALUES (NULL, :ip, :mod, :time, :expires, :reason, :board)");
|
||||
$query = prepare("INSERT INTO `bans` VALUES (NULL, :ip, :mod, :time, :expires, :reason, :board, 0)");
|
||||
$query->bindValue(':ip', $mask);
|
||||
$query->bindValue(':mod', $mod['id']);
|
||||
$query->bindValue(':time', time());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue