37 lines
1.0 KiB
PHP
37 lines
1.0 KiB
PHP
<?php
|
||
// Auth-/Account-Seite: spezifische Styles registrieren
|
||
if (function_exists('tpl_add_style')) {
|
||
// main.css zieht base + layout + header-extras
|
||
tpl_add_style('/assets/css/main.css', 'header');
|
||
|
||
// zusätzlich NUR auf diesen Seiten:
|
||
tpl_add_style('/assets/css/auth.css', 'header');
|
||
}
|
||
|
||
$pageKey = 'login';
|
||
$GLOBALS['pageKey'] = $pageKey;
|
||
require_once $_SERVER['DOCUMENT_ROOT']. '/../config/fileload.php';
|
||
|
||
tpl_add_script('/assets/js/auth.js', 'footer', true, false, '', 'auth-1');
|
||
|
||
// 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');
|
||
|