LuminaWebsite/includes/bootstrap.php
Maaxxs 0eb8816ef8 Admin: switch for unlinking Discord, keep table actions in view
The user list gets a switch "Mitglieder dürfen ihre Discord-Verknüpfung im
Profil lösen" (users.edit, default on). Turned off, the profile shows a note
instead of the button and discord_unlink.php refuses the request. The value
lives in a new settings table, created automatically like the other schema
additions (SCHEMA_VERSION 2).

The user and group tables were wider than the 1100px content column, so the
actions column (edit/delete/approve) scrolled out of view. Both pages now
use the wide container and the actions column sticks to the right edge.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 08:00:06 +02:00

29 lines
853 B
PHP

<?php
declare(strict_types=1);
error_reporting(E_ALL);
ini_set('display_errors', '0');
// Manche Hoster liefern per Default einen abweichenden Zeichensatz im
// Content-Type-Header aus, der die <meta charset>-Angabe im HTML überstimmt
// und dann Umlaute (oe/ae/ue) kaputt macht. Deshalb hier explizit erzwingen.
ini_set('default_charset', 'UTF-8');
mb_internal_encoding('UTF-8');
header('Content-Type: text/html; charset=UTF-8');
if (session_status() !== PHP_SESSION_ACTIVE) {
session_set_cookie_params([
'httponly' => true,
'samesite' => 'Lax',
]);
session_start();
}
require_once __DIR__ . '/db.php';
require_once __DIR__ . '/functions.php';
require_once __DIR__ . '/auth.php';
require_once __DIR__ . '/permissions.php';
require_once __DIR__ . '/schema.php';
require_once __DIR__ . '/settings.php';
ensure_schema();