diff --git a/index.php b/index.php index 02f4511..85d750f 100644 --- a/index.php +++ b/index.php @@ -5,17 +5,6 @@ Nicht eingeloggt!'; -// echo '
' . -// 'Username:' . -// 'Passwort:' . -// '' . -// '
'; -// return; -// } - session_start(); if (!isset($_SESSION['id'])){ echo '

Nicht eingeloggt!

'; @@ -29,6 +18,15 @@ if (!isset($_SESSION['id'])){ return; } +if (isset($_SESSION['id'])){ + echo '

Hier klicken zum Ausloggen!

'; + echo '
' . + '
' . + '' . + '
' . + '
'; +} + $cockDatabase = "dulow"; $host = "localhost"; $user = "root"; diff --git a/logout.php b/logout.php index 5ea0e56..c273422 100644 --- a/logout.php +++ b/logout.php @@ -1,6 +1,6 @@ +header('Location: /'); +exit(); +?>