31 lines
836 B
PHP
31 lines
836 B
PHP
<?php
|
||
// Error-Output für Entwicklung
|
||
ini_set('display_errors', 1);
|
||
ini_set('display_startup_errors', 1);
|
||
error_reporting(E_ALL);
|
||
|
||
require __DIR__ . '/../../src/functions.php';
|
||
|
||
// Sprachlogik:
|
||
$lang = $_GET['lang'] ?? 'en';
|
||
$lang = in_array($lang, ['de','en','it','fr']) ? $lang : 'en';
|
||
|
||
// (später: User-Dummy durch echte Session ersetzen)
|
||
$userInitials = null;
|
||
|
||
// Seitentitel & Description für das Layout
|
||
$pageTitle = 'Login – usbcheck.it';
|
||
$pageDescription = 'Melde dich bei USBCheck an, um Tests zu speichern, Pro-Modus zu nutzen und mehrere Geräte zu verwalten.';
|
||
|
||
// Für die Login-Seite brauchen wir typischerweise keine Sektionen-Navigation
|
||
$navAnchors = [];
|
||
|
||
// Layout-Start
|
||
tpl('layout_start', 'structure');
|
||
|
||
// Login-/Register-Section
|
||
tpl('login', 'landing', 'login');
|
||
|
||
// Layout-Ende
|
||
tpl('layout_end', 'structure');
|