Merge branch 'dev' into main met behoud van live omgevingsconfiguratie en opschoning van overbodige bestanden

This commit is contained in:
2026-09-08 14:45:02 +02:00
22 changed files with 2051 additions and 340 deletions
+8 -13
View File
@@ -9,23 +9,19 @@
* - OP DE DEV OMGEVING: $environment = 'development'; (Rood met 'Development' + radar ping)
* - OP DE MAIN OMGEVING: $environment = 'live'; (Groen met 'Live' + radar ping)
*
* U kunt de waarde hieronder aanpassen, of instellen via APP_ENV in .env.
* U kunt dit hieronder aanpassen, of instellen via APP_ENV in .env / .env.example!
*/
// Bepaal de omgeving: 'development' of 'live' (of 'main')
$environment = 'live'; // <-- ZET DIT OP DE MAIN SERVER OP 'live'
require_once __DIR__ . '/../config/config.php';
// Optionele fallback als het in .env gedefinieerd is
if (getenv('APP_ENV')) {
$envVal = strtolower(trim(getenv('APP_ENV')));
if (in_array($envVal, ['live', 'production', 'prod', 'main'])) {
$environment = 'live';
} elseif (in_array($envVal, ['dev', 'development', 'staging', 'test'])) {
$environment = 'development';
}
// Standaard waarde voor de main branch: 'live' (kan overschreven worden via APP_ENV)
$environment = defined('APP_ENV') ? APP_ENV : 'live';
if (function_exists('fociz_env') && fociz_env('APP_ENV')) {
$environment = fociz_env('APP_ENV');
}
$isLive = in_array(strtolower($environment), ['live', 'production', 'prod', 'main']);
$isLive = in_array(strtolower(trim($environment)), ['live', 'production', 'prod', 'main']);
?>
<!-- FLASHY OMGEVINGSINDICATOR LINKS BOVENIN -->
@@ -66,4 +62,3 @@ $isLive = in_array(strtolower($environment), ['live', 'production', 'prod', 'mai
</div>
<?php endif; ?>
</div>