This commit is contained in:
2025-11-22 02:05:11 +01:00
parent a51a6cc236
commit 7411aafe76
11 changed files with 20 additions and 19 deletions

View File

@@ -1,8 +1,7 @@
<?php
// public/auth/login.php
// Gemeinsame Bootstrap-/Config-Datei laden
require __DIR__ . '/../../config/fileload.php'; // Pfad ggf. anpassen
if ($_SERVER['REQUEST_METHOD'] !== 'POST') {
// Direktzugriff per GET → einfach zurück zur Login-Seite

View File

@@ -1,8 +1,6 @@
<?php
// public/auth/logout.php
require __DIR__ . '/../../config/fileload.php'; // Pfad ggf. anpassen
if (session_status() !== PHP_SESSION_ACTIVE) {
@session_start();
}

View File

@@ -1,8 +1,6 @@
<?php
// public/auth/register.php
require __DIR__ . '/../../config/fileload.php'; // Pfad ggf. anpassen
if ($_SERVER['REQUEST_METHOD'] !== 'POST') {
$lang = $_GET['lang'] ?? 'de';
header('Location: /login/?lang=' . urlencode($lang) . '&view=register#auth');