diff --git a/tinyfilemanager.php b/tinyfilemanager.php index b44acfc..67ccd50 100644 --- a/tinyfilemanager.php +++ b/tinyfilemanager.php @@ -142,6 +142,13 @@ $ip_blacklist = array( '::' // non-routable meta ipv6 ); +// if User has the external config file, try to use it to override the default config above [config.php] +// sample config - https://tinyfilemanager.github.io/config-sample.txt +$config_file = __DIR__.'/config.php'; +if (is_readable($config_file)) { + @include($config_file); +} + // External CDN resources that can be used in the HTML (replace for GDPR compliance) $external = array( 'css-bootstrap' => '', @@ -158,13 +165,6 @@ $external = array( 'pre-cloudflare' => '' ); -// if User has the external config file, try to use it to override the default config above [config.php] -// sample config - https://tinyfilemanager.github.io/config-sample.txt -$config_file = __DIR__.'/config.php'; -if (is_readable($config_file)) { - @include($config_file); -} - // --- EDIT BELOW CAREFULLY OR DO NOT EDIT AT ALL --- // max upload file size