Files
assetmgt/settings/config_redirector.php
“VeLiTi” 4b83f596f1 Refactor RBAC migration scripts and update configuration handling
- Removed old migration scripts for profiles and users to RBAC.
- Updated config redirector to utilize environment variables for configuration loading.
- Added .gitignore files to firmware, log, and marketing directories to prevent unnecessary file tracking.
- Introduced new configuration files for acceptance, development, and production environments with relevant settings.
- Enhanced settings files to include exception lists, security keys, and database settings.
2026-02-06 13:34:54 +01:00

11 lines
519 B
PHP

<?php
//======================================================================
//REDIRECTOR TO CONFIG FILE BASED ON .htacces - SetEnv APP_ENV development
//======================================================================
$env = getenv('APP_ENV') ?: 'development';
$config_location = ((file_exists(dirname(__FILE__,2).'/custom/'.$env.'/settings/'.$env.'_config.php')) ? dirname(__FILE__,2).'/custom/'.$env.'/settings/'.$env.'_config.php' : dirname(__FILE__).'/'.$env.'_config.php');
include $config_location;
?>