X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/b2f73907d35c9ea3a77c1157a08de6c73eb6e42c..a5cbc9ddb6ad65b17f83d2931e3318d94e498a0e:/login/index.php diff --git a/login/index.php b/login/index.php index c69ec3c..897346d 100644 --- a/login/index.php +++ b/login/index.php @@ -35,9 +35,10 @@ elseif (isset($_GET['logout'])) { $message = "Je bent uitgelogd. Graag tot ziens!"; } -if (empty($User)) { +if (!$User or !$User->login) { $Article->title = 'Inloggen'; if (isset($_REQUEST['goto'])) { + if (empty($message)) http_response_code(403); $target = ltrim($_REQUEST['goto'], '/'); $target = new ArchiveArticle("$target.html"); @@ -75,7 +76,7 @@ if (isset($_REQUEST['goto'])) { if (isset($Article->raw)) { print $Article->raw; } -if (empty($Args) and $User and $User->admin) { +if (empty($Args) and $User->admin) { include_once 'login/admin.html'; }