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
|
||||
*/
|
||||
|
||||
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 <a href='login.html'>anmelden</a>.";
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
Loading…
Add table
Reference in a new issue