Move TRIPSEED and ADMINPASS configuration check
This commit is contained in:
parent
8904cfa26d
commit
7389a78941
|
@ -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'])) {
|
||||
|
|
Loading…
Reference in New Issue