CMXX - Custom folder
This commit is contained in:
@@ -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;
|
||||
?>
|
||||
Reference in New Issue
Block a user