git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
login/list: option to order by seen date
[minimedit.git]
/
login
/
list.php
diff --git
a/login/list.php
b/login/list.php
index cae89f078dab62f64013ec89738428004e46629e..d3b1f177005ebc91be910f0af119e7dd9574690e 100644
(file)
--- a/
login/list.php
+++ b/
login/list.php
@@
-8,6
+8,12
@@
foreach ($users as $col => $userdir) {
$users[$col] = new User($userdir);
}
$users[$col] = new User($userdir);
}
+if (@$Place['order'] == 'seen') {
+ $order = array_map(function ($col) { return $col->seen; }, $users);
+# $order = array_column($users, 'seen'); #TODO php7 simplification
+ array_multisort($order, SORT_DESC, SORT_NUMERIC, $users);
+}
+
print '<ul';
if (@$Place['view'] == 'avatar') {
print ' class="gallery cat"';
print '<ul';
if (@$Place['view'] == 'avatar') {
print ' class="gallery cat"';