Files
usbcheck.it/public/login/index.php
2025-11-21 01:56:02 +01:00

28 lines
792 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
require __DIR__ . "/../config/fileload.php";
tpl_add_script('/assets/js/auth.js', 'footer', true, false, '', 'auth-1');
// Sprachlogik:
$lang = $_GET['lang'] ?? 'en';
$lang = in_array($lang, ['de','en','it','fr']) ? $lang : 'en';
// später: echte Session
$userInitials = null;
$pageTitle = 'Login usbcheck.it';
$pageDescription = 'Melde dich bei USBCheck an, um Tests zu speichern, Pro-Modus zu nutzen und mehrere Geräte zu verwalten.';
// Navigation ausblenden:
$navAnchors = [];
// Welche Ansicht? login | register
$authView = ($_GET['mode'] ?? 'login') === 'register' ? 'register' : 'login';
tpl('layout_start', 'structure');
// Login-/Register-Section
// $authView wird in der Partial verfügbar sein
tpl('login', 'landing', 'login');
tpl('layout_end', 'structure');