Upload via GUI (335 Dateien)

This commit is contained in:
2026-10-24 20:14:46 +00:00
parent c270c0b6cf
commit b2a0a2d0b8
10 changed files with 688 additions and 3 deletions
+20
View File
@@ -0,0 +1,20 @@
<?php
/**
* lang.php – Sprache wechseln (Klick auf eine Flagge): /lang.php?l=en&back=/pfad
* Speichert die Wahl in einem Cookie und leitet auf die Seite zurück, von der man kam.
*/
define('DESKHUB_NO_I18N', true);
require_once __DIR__ . '/includes/bootstrap.php';
$code = strtolower((string) ($_GET['l'] ?? ''));
if (isset(i18n_languages()[$code])) {
setcookie(I18N_COOKIE, $code, [
'expires' => time() + 365 * 86400,
'path' => '/',
'secure' => request_is_https(),
'httponly' => true,
'samesite' => 'Lax',
]);
}
header('Cache-Control: no-store');
redirect(i18n_safe_back((string) ($_GET['back'] ?? '/')));