summaryrefslogtreecommitdiff
path: root/inc/mod
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-07-16 06:33:37 -0400
committerMichael Foster <savetheinternet@tinyboard.org>2013-07-16 06:33:37 -0400
commitc8f30550af861b95a1f475069ad8d10960a613b2 (patch)
treec0aedcd61603bdf81a54d30e1a2ce554f9363ab6 /inc/mod
parent29b10c88db1ba16210e753e1fcf08d702455a674 (diff)
$config['require_ban_view']: Force users to view the "You are banned" page at least once before letting a ban disappear naturally.
Diffstat (limited to 'inc/mod')
-rw-r--r--inc/mod/ban.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/mod/ban.php b/inc/mod/ban.php
index 30234157..cfc2636f 100644
--- a/inc/mod/ban.php
+++ b/inc/mod/ban.php
@@ -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());