Do not allow access to tools/ folder after install

This commit is contained in:
slawkens
2025-05-29 11:27:32 +02:00
parent 149e10261b
commit fcfe5b0dbd
5 changed files with 17 additions and 14 deletions

View File

@@ -100,7 +100,7 @@ for($i = 1; $i < $size; $i++)
$basedir = str_replace(array('/admin', '/install', '/tools'), '', $basedir);
define('BASE_DIR', $basedir);
if (file_exists(BASE . 'config.local.php') && !defined('MYAAC_INSTALL')) {
if (file_exists(BASE . 'config.local.php')) {
require BASE . 'config.local.php';
}