$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:
Michael Foster 2013-07-16 06:33:37 -04:00
parent 29b10c88db
commit c8f30550af
6 changed files with 35 additions and 9 deletions

View file

@ -1,7 +1,7 @@
<?php
// Installation/upgrade file
define('VERSION', 'v0.9.6-dev-7');
define('VERSION', 'v0.9.6-dev-8');
require 'inc/functions.php';
@ -227,6 +227,8 @@ if (file_exists($config['has_installed'])) {
query(sprintf("CREATE INDEX `thread_id` ON `posts_%s` (`thread`, `id`)", $_board['uri'])) or error(db_error());
query(sprintf("ALTER TABLE `posts_%s` DROP INDEX `thread`", $_board['uri'])) or error(db_error());
}
case 'v0.9.6-dev-7':
query("ALTER TABLE `bans` ADD `seen` BOOLEAN NOT NULL") or error(db_error());
case false:
// Update version number
file_write($config['has_installed'], VERSION);