Added 'always noko' option on setting

This commit is contained in:
Indra Kurniawan 2017-12-16 03:17:31 +00:00
parent 34c13a8bec
commit e99a218f1d
3 changed files with 5 additions and 1 deletions

View File

@ -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'];
}

View File

@ -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);
}

View File

@ -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]