CMXX - Custom folder profile and settings update
This commit is contained in:
@@ -19,7 +19,7 @@ $color_accent = '#2FAC66'; //'#ececec';
|
|||||||
// Database settings
|
// 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
|
// Menusetup & settings
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ defined(page_security_key) or exit;
|
|||||||
// Configuration file
|
// Configuration file
|
||||||
//=============================
|
//=============================
|
||||||
$domain = getDomainName($_SERVER['SERVER_NAME']);
|
$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';
|
$page = 'profiles';
|
||||||
//Check if allowed
|
//Check if allowed
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ defined(page_security_key) or exit;
|
|||||||
// Configuration file
|
// Configuration file
|
||||||
//=============================
|
//=============================
|
||||||
$domain = getDomainName($_SERVER['SERVER_NAME']);
|
$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
|
//Check if allowed
|
||||||
if (isAllowed('settings',$_SESSION['profile'],$_SESSION['permission'],'R') === 0){
|
if (isAllowed('settings',$_SESSION['profile'],$_SESSION['permission'],'R') === 0){
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
$domain = $hostname;
|
$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;
|
include $settings_location;
|
||||||
?>
|
?>
|
||||||
Reference in New Issue
Block a user