From 07b86e486dc9afa2f10ba50c85e2c1b108128892 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Sat, 7 Jul 2018 23:03:40 +0200 Subject: [PATCH] login/admin: recent visitors summary Include login/list with limit and without columns. Also links overview pages previously only mentioned privately. --- login/admin.html | 8 ++++++++ login/list.php | 6 +++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/login/admin.html b/login/admin.html index 9192063..5587799 100644 --- a/login/admin.html +++ b/login/admin.html @@ -9,3 +9,11 @@ Wijzigingen zijn direct zichtbaar, en worden periodiek bijgehouden:

Laatste aanpassingen

[[login/commits n=10]] + +

Recente bezoekers

+ +[[login/list view=visit order=seen n=5]] + + diff --git a/login/list.php b/login/list.php index 1f049d8..4883da6 100644 --- a/login/list.php +++ b/login/list.php @@ -14,11 +14,15 @@ if (@$Place['order'] == 'seen') { array_multisort($order, SORT_DESC, SORT_NUMERIC, $users); } +if (isset($Place['n'])) { + array_splice($users, $Place['n']); # limit number of results +} + print ' 5) { print ' class="cols"'; } print ">\n"; -- 2.30.0