3 foreach (glob('profile/*') as $userdir) {
5 'login' => basename($userdir),
6 'name' => @file_get_contents("$userdir/name.txt"),
7 'seen' => @filemtime("$userdir/last.log"),
8 'admin' => @file_exists("$userdir/.admin"),
12 if (@$_GET['order'] == 'seen') {
13 array_multisort(array_column($logins, 'seen'), SORT_DESC, SORT_NUMERIC, $logins);
16 print "<ul class=cols>\n";
17 foreach ($logins as $profile) {
18 printf('<li><a href="%s">%s</a>',
19 '/login/edit/'.$profile['login'],
20 $profile['name'] ?: $profile['login']
22 if ($profile['seen']) {
23 printf(' <small class="date">%s</small>', strftime('%F %H:%M', $profile['seen']));
25 if (!empty($profile['admin'])) {
26 print ' <em>(beheerder)</em>';