X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/6c88aa26826638bc616e29cf08261a3c5a6b508b..9728cd7e14c36120d5446823ae100cc80512c079:/login.php?ds=inline diff --git a/login.php b/login.php index 369a013..bcb1edc 100644 --- a/login.php +++ b/login.php @@ -1,25 +1,41 @@ -

Inloggen

- Ongeldige gebruikersnaam of wachtwoord.

'."\n\n"; } - - echo '

Ongeldige gebruikersnaam of wachtwoord.

'."\n\n"; } -elseif (!empty($User)) { +elseif (isset($_GET['logout'])) { setcookie('login', '', time(), '/'); # expire immediately + $User = NULL; echo '

Uitgelogd.

'."\n\n"; } +if (isset($_GET['goto']) and isset($User)) { + ob_clean(); + $target = ltrim($_GET['goto'], '/'); + header("Location: /$target"); + http_response_code(302); + exit; +} + +if (empty($User)) { ?>
+ +

Ingelogd

+ +

Ingelogd als .

+ +