From 1367df102b6c7ae72bd2feca76239bafd36c2d39 Mon Sep 17 00:00:00 2001 From: vincent Date: Mon, 14 Apr 2025 15:32:44 +0200 Subject: [PATCH] index is now the primary file to be included to use smz/Auth --- index.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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."; } ?>