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'])) {