-<?php
-include 'page.inc.php';
-?>
-<h2>Inloggen</h2>
-
<?php
if (isset($_POST['login'])) {
if ($user = login($_POST['login'], $_POST['pass'])) {
setcookie('login', $user['auth'], 0, '/');
+ ob_clean();
$target = ltrim(@$_GET['goto'], '/');
header("Location: /$target");
http_response_code(302);