diff --git a/index.php b/index.php index 9cde162..53272ee 100644 --- a/index.php +++ b/index.php @@ -4,10 +4,9 @@ * smzint/Auth (c) schmamazon.com 2025 */ -if (include('auth.php')){ - echo "Hallo " . $uname; -}else{ - echo "Bitte zuerst anmelden."; +if (!include('auth.php')){ + header("Location: login.html"); + echo "401 Sie müssen sich anmelden."; } ?>