index is now the primary file to be included to use smz/Auth

This commit is contained in:
vincent 2025-04-14 15:32:44 +02:00
parent 0907c5bde1
commit 1367df102b

View file

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