From: Mischa POSLAWSKY Date: Tue, 24 Apr 2018 22:27:40 +0000 (+0200) Subject: login: move admin pages into /login X-Git-Tag: v2.6~3 X-Git-Url: http://git.shiar.net/minimedit.git/commitdiff_plain/24c849a03cdcbf857596f9449e887a4278d4ac54 login: move admin pages into /login Permissions should be checked per page, and can make more distinctions than boolean admin. Also one dir less to symlink. --- diff --git a/login.php b/login.php index 801ba1f..626281a 100644 --- a/login.php +++ b/login.php @@ -37,6 +37,6 @@ $part = [ print getoutput($part); if (empty($Args) and !empty($User['admin'])) { - include_once 'admin/index.html'; - include_once 'admin.php'; + include_once 'login/admin.html'; + include_once 'login/admin.php'; } diff --git a/admin/index.html b/login/admin.html similarity index 100% rename from admin/index.html rename to login/admin.html diff --git a/admin.php b/login/admin.php similarity index 87% rename from admin.php rename to login/admin.php index e73f5b5..ee6b39f 100644 --- a/admin.php +++ b/login/admin.php @@ -13,4 +13,4 @@ if (empty($User['admin'])) { \n\n"; pclose($log); - $navbase = $Page == 'admin/commits' ? '?' : '/admin/commits?'; + $navbase = $Page == 'login/commits' ? '?' : '/login/commits?'; $nav = []; $nav[] = sprintf('Pagina %d', ceil($offset / $pagesize) + 1); if ($lines >= $pagesize) { diff --git a/login/index.html b/login/index.html index 662b3cc..e2fe85e 100644 --- a/login/index.html +++ b/login/index.html @@ -2,6 +2,6 @@

Ingelogd als [[user]].

- + diff --git a/admin/pass.html b/login/pass.html similarity index 100% rename from admin/pass.html rename to login/pass.html diff --git a/admin/pass.php b/login/pass.php similarity index 100% rename from admin/pass.php rename to login/pass.php diff --git a/admin/setmail.php b/login/setmail.php similarity index 100% rename from admin/setmail.php rename to login/setmail.php diff --git a/admin/visits.html b/login/visits.html similarity index 100% rename from admin/visits.html rename to login/visits.html diff --git a/admin/visits.php b/login/visits.php similarity index 100% rename from admin/visits.php rename to login/visits.php