login: move title to static page
[minimedit.git] / login.php
index db276d191b04ff1dbc0f59ab30d9e7fd050f4d8e..c9a60e3ed4eefa4870a54060dfc481e11ec943a2 100644 (file)
--- a/login.php
+++ b/login.php
@@ -1,13 +1,9 @@
-<?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);