replace hardcoded configuration path '/config.php' with CONFIG_FILE named constant. Thus you can embed file manager with different configs.

This commit is contained in:
maestrow 2021-11-26 01:02:12 +03:00
parent 6bdc5ccfb3
commit 306090be65

View file

@ -127,9 +127,8 @@ $ip_blacklist = array(
);
// if User has the customized config file, try to use it to override the default config above
$config_file = __DIR__.'/config.php';
if (is_readable($config_file)) {
@include($config_file);
if (defined('CONFIG_FILE') && is_readable(CONFIG_FILE))) {
@include(CONFIG_FILE);
}
// --- EDIT BELOW CAREFULLY OR DO NOT EDIT AT ALL ---