debug change
This commit is contained in:
10
public/landingpage/tools/debug/boost.php
Normal file
10
public/landingpage/tools/debug/boost.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
require_once dirname(__DIR__) . '/config/fileload.php';
|
||||
|
||||
echo "<pre>";
|
||||
echo "Lang: " . htmlspecialchars($GLOBALS['lang']) . "\n";
|
||||
echo "Available:\n";
|
||||
print_r($GLOBALS['availableLangs']);
|
||||
|
||||
echo "\nTitle landing: " . i18n_get('pages.landing.meta.title', 'NO TITLE');
|
||||
echo "\n</pre>";
|
||||
25
public/landingpage/tools/debug/lang.php
Normal file
25
public/landingpage/tools/debug/lang.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
// public/debug/lang.php
|
||||
|
||||
// 1) Rohheader anzeigen
|
||||
header('Content-Type: text/plain; charset=utf-8');
|
||||
|
||||
echo "=== HTTP_ACCEPT_LANGUAGE ===\n";
|
||||
echo ($_SERVER['HTTP_ACCEPT_LANGUAGE'] ?? "(nicht gesetzt)") . "\n\n";
|
||||
|
||||
// 2) fileload.php einbinden (macht Session + i18n + functions.php)
|
||||
require_once __DIR__ . '/../config/fileload.php';
|
||||
|
||||
echo "=== Ergebnis aus fileload.php ===\n";
|
||||
echo "Gewähltes \$lang: " . ($GLOBALS['lang'] ?? '(kein lang)') . "\n\n";
|
||||
|
||||
echo "=== Verfügbare Sprachen (\$availableLangs) ===\n";
|
||||
print_r($GLOBALS['availableLangs'] ?? []);
|
||||
|
||||
echo "\n=== Aktive Sprachdatei (i18n.current.meta) ===\n";
|
||||
$current = $GLOBALS['i18n']['current'] ?? [];
|
||||
if (isset($current['meta'])) {
|
||||
print_r($current['meta']);
|
||||
} else {
|
||||
echo "(kein meta in current)\n";
|
||||
}
|
||||
Reference in New Issue
Block a user