From 6f35e7519846fb77881abf2390406a656a971567 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CVeLiTi=E2=80=9D?= <“info@veliti.nl”> Date: Mon, 31 Mar 2025 16:10:52 +0200 Subject: [PATCH] CMXX - Custom folder profile and settings update --- custom/soveliti/settings/soveliti_settings.php | 2 +- profiles.php | 2 +- settings.php | 2 +- settings/settings_redirector.php | 3 +-- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/custom/soveliti/settings/soveliti_settings.php b/custom/soveliti/settings/soveliti_settings.php index 9b4e097..bb965d9 100644 --- a/custom/soveliti/settings/soveliti_settings.php +++ b/custom/soveliti/settings/soveliti_settings.php @@ -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 diff --git a/profiles.php b/profiles.php index ca1abe7..6ae0f1d 100644 --- a/profiles.php +++ b/profiles.php @@ -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 diff --git a/settings.php b/settings.php index 17f985e..aeb6764 100644 --- a/settings.php +++ b/settings.php @@ -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){ diff --git a/settings/settings_redirector.php b/settings/settings_redirector.php index 124df62..895d4a7 100644 --- a/settings/settings_redirector.php +++ b/settings/settings_redirector.php @@ -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; ?> \ No newline at end of file