index is now the primary file to be included to use smz/Auth
This commit is contained in:
parent
0907c5bde1
commit
1367df102b
1 changed files with 3 additions and 4 deletions
|
@ -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.";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Add table
Reference in a new issue