X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/621fc2f9638a1a92aa8535310e7852de5542f11e..HEAD:/login/pass/index.php diff --git a/login/pass/index.php b/login/pass/index.php index cd65186..8db1c88 100644 --- a/login/pass/index.php +++ b/login/pass/index.php @@ -9,15 +9,13 @@ if (isset($_GET['token'])) { } else { http_response_code(403); - print "

Code onjuist, geen toestemming om wachtwoord in te stellen.

\n"; + $Page->place['warn'] = "Code onjuist, geen toestemming om wachtwoord in te stellen."; return TRUE; } } elseif (!$User->login) { - http_response_code(303); $target = urlencode($_SERVER['REQUEST_URI']); - header("Location: /login?goto=$target"); - exit; + abort("/login?goto=$target", 303); } if ($_POST) { @@ -28,7 +26,7 @@ if ($_POST) { return; } http_response_code(400); - print "

$error

\n\n"; + $Page->place['warn'] = $error; } ?> @@ -46,3 +44,5 @@ Dit zal de huidige code vervangen.

+raw .= ob_get_clean();