From: Mischa POSLAWSKY Date: Mon, 10 Jul 2017 04:49:41 +0000 (+0200) Subject: login: emulate apache authentication to check admin login X-Git-Tag: v1.3~5 X-Git-Url: http://git.shiar.net/minimedit.git/commitdiff_plain/59d16d1daa1748a056efc2317510fd3d541b7144 login: emulate apache authentication to check admin login Send 401 response until user validates as admin (replacing ip whitelisting). Assume all users except for generic 'lid' are allowed. --- diff --git a/auth.inc.php b/auth.inc.php index 1a72379..6a5d1d2 100755 --- a/auth.inc.php +++ b/auth.inc.php @@ -1,12 +1,38 @@ '.N; - echo "Beheer toegestaan voor $editable:".N; + echo "Beheer toegestaan voor $User:".N; printf('%s'.N, $edit ? '' : 'edit', $edit ? 'lezen' : ($notfound ? 'aanmaken' : 'aanpassen') diff --git a/login.php b/login.php new file mode 100644 index 0000000..35dc55e --- /dev/null +++ b/login.php @@ -0,0 +1,18 @@ + +

Inloggen mislukt

+

Geen geldige login voor sitebeheer.

+