LuminaWebsite/includes/bootstrap.php
Maaxxs 62d6634829 Impressum and privacy policy, third-party videos and images load only after a click
- impressum.php (§ 18 MStV) and datenschutz.php, which describes what the website and the Discord bot
  actually process: Discord login scopes, member area, bot data (raids, premades, player reports with the
  automatic 48 h timeout, activity checks), cookies and browser storage keys, retention periods and rights.
  Both stay reachable in maintenance mode and are noindex. Operator data defaults to the c/o address of the
  Impressum service Online-Impressum.de (LEGAL_OPERATOR_DEFAULT), the hoster to Living-Bots; both can be
  changed under Admin -> Impressum & Datenschutz (new permission site.legal, schema v43). The audit/Discord
  log only records which fields changed, not the name or address.
- Links in the footer of all public pages, the start page footer, the sidebar and the maintenance page,
  plus a short data notice on the login page.
- Wiki and profile texts: YouTube, Twitch and Vimeo players and images or video files from other servers
  render as placeholders and load only after a click (embed_consent_html(), assets/js/embed-consent.js).
  "immer direkt laden" is remembered per provider in localStorage and can be reset in the privacy policy.
  Image URLs are now protected from inline formatting (e.g. _underscores_ in the address).
- map_frame.php only serves logged-in, active members.
- Deleting a user also removes the avatar file; audit_log entries older than 12 months are deleted
  automatically (AUDIT_LOG_KEEP_MONTHS).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 16:26:54 +02:00

52 lines
1.9 KiB
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');
// Alle Zeiten in deutscher Zeit. Der Bot rechnet Raid- und Event-Zeiten ebenfalls als deutsche
// Zeit um. Ohne diese Zeile nimmt PHP die Zeitzone des Hosters (oft UTC) - dann erscheint ein
// Raid um 9 Uhr auf der Website als 7 Uhr (Sommerzeit), und beim naechsten Bearbeiten wuerde
// er sogar auf 7 Uhr verschoben.
date_default_timezone_set('Europe/Berlin');
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__ . '/map_links.php';
require_once __DIR__ . '/member_picker.php';
require_once __DIR__ . '/auth.php';
require_once __DIR__ . '/permissions.php';
require_once __DIR__ . '/schema.php';
require_once __DIR__ . '/settings.php';
require_once __DIR__ . '/admin_log.php';
require_once __DIR__ . '/security.php';
require_once __DIR__ . '/moderation.php';
require_once __DIR__ . '/patchnotes.php';
require_once __DIR__ . '/legal.php';
require_once __DIR__ . '/site_notice.php';
ensure_schema();
// Sitzung abgelaufen, aber "angemeldet bleiben"-Cookie da: wieder anmelden (includes/auth.php)
auth_remember_restore();
// Tempolimit fuer abgeschickte Formulare (Spam-/Missbrauchsschutz, siehe includes/security.php)
security_guard_post();
// Wartungsmodus: alle ohne site.maintenance sehen nur die Wartungsseite (includes/site_notice.php)
maintenance_gate();