cleanup
This commit is contained in:
27
public/landingpage/login/index.php
Normal file
27
public/landingpage/login/index.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?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');
|
||||
Reference in New Issue
Block a user