CMXX - Custom folder

This commit is contained in:
“VeLiTi”
2025-03-31 15:48:42 +02:00
parent 8e0a21f80b
commit 2245297a7d
26 changed files with 585 additions and 13 deletions

View File

@@ -25,7 +25,7 @@ function getDomain($hostname) {
}
$domain = getDomain($_SERVER['SERVER_NAME']);
$config_location = ((file_exists(dirname(__FILE__).'/'.$domain.'/'.$domain.'_config.php')) ? dirname(__FILE__).'/'.$domain.'/'.$domain.'_config.php' : dirname(__FILE__).'/config.php');
$config_location = ((file_exists(dirname(__FILE__,2).'/custom/'.$domain.'/settings/'.$domain.'_config.php')) ? dirname(__FILE__,2).'/custom/'.$domain.'/settings/'.$domain.'_config.php' : dirname(__FILE__).'/config.php');
include $config_location;
?>