Files
usbcheck.it/public/landingpage/login/index.php
2025-11-25 22:43:43 +01:00

30 lines
835 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
$pageKey = 'login';
require_once __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 ' . app_primary_domain();
$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');