diff --git a/imgboard.php b/imgboard.php index d9c8d97..19d3200 100644 --- a/imgboard.php +++ b/imgboard.php @@ -282,7 +282,7 @@ if (isset($_POST['message']) || isset($_POST['file'])) { $post['id'] = insertPost($post); if ($post['moderated'] == '1') { - if (strtolower($post['email']) == 'noko') { + if (TINYIB_ALWAYSNOKO || strtolower($post['email']) == 'noko') { $redirect = 'res/' . ($post['parent'] == TINYIB_NEWTHREAD ? $post['id'] : $post['parent']) . '.html#' . $post['id']; } diff --git a/inc/defines.php b/inc/defines.php index 13e693d..97beeb2 100644 --- a/inc/defines.php +++ b/inc/defines.php @@ -30,6 +30,9 @@ if (!defined('TINYIB_CAPTCHA')) { if (!defined('TINYIB_REQMOD')) { define('TINYIB_REQMOD', ''); } +if (!defined('TINYIB_ALWAYSNOKO')) { + define('TINYIB_ALWAYSNOKO', false); +} if (!defined('TINYIB_DBMIGRATE')) { define('TINYIB_DBMIGRATE', false); } diff --git a/settings.default.php b/settings.default.php index fa2b4b8..055c8b3 100644 --- a/settings.default.php +++ b/settings.default.php @@ -15,6 +15,7 @@ define('TINYIB_MODPASS', ''); // Moderators only have access to delete ( // Board description and behavior define('TINYIB_BOARD', 'b'); // Unique identifier for this board using only letters and numbers define('TINYIB_BOARDDESC', 'TinyIB'); // Displayed at the top of every page +define('TINYIB_ALWAYSNOKO', false); // Redirect to thread after posting define('TINYIB_CAPTCHA', ''); // Reduce spam by requiring users to pass a CAPTCHA when posting: simple / recaptcha (click Rebuild All in the management panel after enabling) ['' to disable] define('TINYIB_REQMOD', ''); // Require moderation before displaying posts: files / all (see README for instructions, only MySQL is supported) ['' to disable]