make more flex

This commit is contained in:
2025-12-04 02:06:50 +01:00
parent e83302c7d8
commit d50787a1c6
5 changed files with 98 additions and 67 deletions

View File

@@ -10,8 +10,8 @@ $requestUri = $_SERVER['REQUEST_URI'] ?? '/';
$currentLang = $GLOBALS['lang'] ?? ($lang ?? 'en');
$allAvailable = $GLOBALS['availableLangs'] ?? [];
// Optional: Environment aus config.php (du hattest $env → $GLOBALS['usb_env'])
$env = $GLOBALS['usb_env'] ?? 'prod';
// Optional: Environment aus config.php (du hattest $env → $GLOBALS['app_env'])
$env = $GLOBALS['app_env'] ?? 'prod';
// -----------------------------------------------
// USBCheck JavaScript-Konfiguration
@@ -38,11 +38,11 @@ $usbConfig = [
// Fakecheck-Tool-Config
'fakecheck' => [
'baseUrl' => $GLOBALS['usb_base_url'] ?? '',
'apiBaseUrl' => $GLOBALS['usb_api_base'] ?? 'https://api.usbcheck.it',
'baseUrl' => $GLOBALS['app_url'] ?? '',
'apiBaseUrl' => $GLOBALS['app_api_url'] ?? 'https://api.usbcheck.it',
'locale' => $currentLang,
],
'i18n' => app_i18n_get_frontend_config(),
// i18n-Konfiguration
'i18n' => [
'available' => $allAvailable,