Merge pull request #39 from indrakaw/noko-option

Add TINYIB_ALWAYSNOKO
This commit is contained in:
Trevor Slocum 2017-12-15 19:40:12 -08:00 committed by GitHub
commit 49c0945be2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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]