From 8dbd0b251f51c3a640b44f39fd7c8c365e870b7b Mon Sep 17 00:00:00 2001 From: NiekRabelink Date: Wed, 9 Sep 2026 14:06:04 +0000 Subject: [PATCH] Delete config/config.php --- config/config.php | 125 ---------------------------------------------- 1 file changed, 125 deletions(-) delete mode 100644 config/config.php diff --git a/config/config.php b/config/config.php deleted file mode 100644 index 4399483..0000000 --- a/config/config.php +++ /dev/null @@ -1,125 +0,0 @@ ->>>>>> dd738e670b78819c11e329da93db1b472808f195 -define('DB_CHARSET', 'utf8mb4'); - -// Bepaal de dynamische of geconfigureerde applicatie URL -if (!function_exists('fociz_detect_app_url')) { - function fociz_detect_app_url(): string { - $envUrl = fociz_env('APP_URL'); -<<<<<<< HEAD - if (!empty($envUrl) && !str_contains($envUrl, 'uw-domein.nl')) { -======= - if (!empty($envUrl) && !str_contains($envUrl, 'www.fociz.nl')) { ->>>>>>> dd738e670b78819c11e329da93db1b472808f195 - return rtrim($envUrl, '/'); - } - - // Dynamische detectie op basis van het huidige domein (werkt direct op dev.fociz.nl én fociz.nl) - if (!empty($_SERVER['HTTP_HOST'])) { - $isHttps = ( - (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') || - (!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && strtolower($_SERVER['HTTP_X_FORWARDED_PROTO']) === 'https') || - (!empty($_SERVER['HTTP_X_FORWARDED_SSL']) && $_SERVER['HTTP_X_FORWARDED_SSL'] === 'on') || - (isset($_SERVER['SERVER_PORT']) && (int)$_SERVER['SERVER_PORT'] === 443) - ); - $scheme = $isHttps ? 'https://' : 'http://'; - return $scheme . $_SERVER['HTTP_HOST']; - } - - // Standaard fallback per omgeving - return (defined('APP_ENV') && APP_ENV === 'live') ? 'https://fociz.nl' : 'https://dev.fociz.nl'; - } -} - -// Applicatie instellingen -define('APP_NAME', 'Fociz'); -define('APP_ENV', fociz_env('APP_ENV', 'development')); // 'development' of 'live' -define('APP_URL', fociz_detect_app_url()); -define('APP_SECRET', fociz_env('APP_SECRET', 'fociz-maria-db-super-secret-key-998877')); - -// Tijdzone -date_default_timezone_set('Europe/Amsterdam'); - -// Foutrapportage: in development tonen we fouten direct op het scherm -if (APP_ENV !== 'live') { - ini_set('display_errors', '1'); - ini_set('display_startup_errors', '1'); - error_reporting(E_ALL); -}