login: move title to static page
authorMischa POSLAWSKY <perl@shiar.org>
Mon, 2 Oct 2017 19:59:12 +0000 (21:59 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 2 Oct 2017 20:09:27 +0000 (22:09 +0200)
Allows custom introduction.

login.html [new file with mode: 0644]
login.php

diff --git a/login.html b/login.html
new file mode 100644 (file)
index 0000000..9d01ca6
--- /dev/null
@@ -0,0 +1,2 @@
+<h2>Inloggen</h2>
+
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);