Move TRIPSEED and ADMINPASS configuration check

This commit is contained in:
Trevor Slocum 2015-10-05 13:21:05 -07:00
parent 8904cfa26d
commit 7389a78941

View File

@ -34,6 +34,10 @@ if (!file_exists('settings.php')) {
} }
require '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 // Check directories are writable by the script
$writedirs = array("res", "src", "thumb"); $writedirs = array("res", "src", "thumb");
if (TINYIB_DBMODE == 'flatfile') { if (TINYIB_DBMODE == 'flatfile') {
@ -56,10 +60,6 @@ foreach ($includes as $include) {
include $include; include $include;
} }
if (TINYIB_TRIPSEED == '' || TINYIB_ADMINPASS == '') {
fancyDie('TINYIB_TRIPSEED and TINYIB_ADMINPASS must be configured');
}
$redirect = true; $redirect = true;
// Check if the request is to make a post // Check if the request is to make a post
if (isset($_POST['message']) || isset($_POST['file'])) { if (isset($_POST['message']) || isset($_POST['file'])) {