CMXX - Custom folder profile and settings update

This commit is contained in:
“VeLiTi”
2025-03-31 16:10:52 +02:00
parent 2245297a7d
commit 6f35e75198
4 changed files with 4 additions and 5 deletions

View File

@@ -19,7 +19,7 @@ $color_accent = '#2FAC66'; //'#ececec';
// Database settings
//------------------------------------------
require '/var/www/vhosts/veliti.nl/settings/portalsettings-acc.php';
require '/var/www/vhosts/veliti.nl/settings/soveliti_cloud_settings.php';
//------------------------------------------
// Menusetup & settings

View File

@@ -5,7 +5,7 @@ defined(page_security_key) or exit;
// Configuration file
//=============================
$domain = getDomainName($_SERVER['SERVER_NAME']);
$file = ((file_exists(dirname(__FILE__).'/settings/'.$domain.'/settingsprofiles.php')) ? dirname(__FILE__).'/settings/'.$domain.'/settingsprofiles.php' : dirname(__FILE__).'/settings/settingsprofiles.php');
$file = ((file_exists(dirname(__FILE__).'/custom/'.$domain.'/settings/settingsprofiles.php')) ? dirname(__FILE__).'/custom/'.$domain.'/settings/settingsprofiles.php' : dirname(__FILE__).'/settings/settingsprofiles.php');
$page = 'profiles';
//Check if allowed

View File

@@ -5,7 +5,7 @@ defined(page_security_key) or exit;
// Configuration file
//=============================
$domain = getDomainName($_SERVER['SERVER_NAME']);
$file = ((file_exists(dirname(__FILE__).'/settings/'.$domain.'/'.$domain.'_config.php')) ? dirname(__FILE__).'/settings/'.$domain.'/'.$domain.'_config.php' : dirname(__FILE__).'/settings/config.php');
$file = ((file_exists(dirname(__FILE__).'/custom/'.$domain.'/settings/'.$domain.'_config.php')) ? dirname(__FILE__).'/custom/'.$domain.'/settings/'.$domain.'_config.php' : dirname(__FILE__).'/settings/config.php');
//Check if allowed
if (isAllowed('settings',$_SESSION['profile'],$_SESSION['permission'],'R') === 0){

View File

@@ -22,7 +22,6 @@
$domain = $hostname;
}
$settings_location = ((file_exists(dirname(__FILE__,2).'/custom/'.$domain.'/style/'.$domain.'_settings.php')) ? dirname(__FILE__,2).'/custom/'.$domain.'/style/'.$domain.'_settings.php' : dirname(__FILE__).'/settings.php');
$settings_location = ((file_exists(dirname(__FILE__,2).'/custom/'.$domain.'/settings/'.$domain.'_settings.php')) ? dirname(__FILE__,2).'/custom/'.$domain.'/settings/'.$domain.'_settings.php' : dirname(__FILE__).'/settings.php');
include $settings_location;
?>