From 7389a78941a0590a51a0c80bf6790f987cd2ec93 Mon Sep 17 00:00:00 2001 From: Trevor Slocum Date: Mon, 5 Oct 2015 13:21:05 -0700 Subject: [PATCH] Move TRIPSEED and ADMINPASS configuration check --- imgboard.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/imgboard.php b/imgboard.php index b533ce5..eaf516b 100644 --- a/imgboard.php +++ b/imgboard.php @@ -34,6 +34,10 @@ if (!file_exists('settings.php')) { } require 'settings.php'; +if (TINYIB_TRIPSEED == '' || TINYIB_ADMINPASS == '') { + fancyDie('TINYIB_TRIPSEED and TINYIB_ADMINPASS must be configured'); +} + // Check directories are writable by the script $writedirs = array("res", "src", "thumb"); if (TINYIB_DBMODE == 'flatfile') { @@ -56,10 +60,6 @@ foreach ($includes as $include) { include $include; } -if (TINYIB_TRIPSEED == '' || TINYIB_ADMINPASS == '') { - fancyDie('TINYIB_TRIPSEED and TINYIB_ADMINPASS must be configured'); -} - $redirect = true; // Check if the request is to make a post if (isset($_POST['message']) || isset($_POST['file'])) {