From a7c5afe4339f46523620adf4ca4368efe2330ea8 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Thu, 28 Jun 2018 23:23:46 +0200 Subject: [PATCH] avatars: template script to list users --- avatars.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 avatars.php diff --git a/avatars.php b/avatars.php new file mode 100644 index 0000000..a305ec6 --- /dev/null +++ b/avatars.php @@ -0,0 +1,13 @@ +'; + +foreach ($users as $userdir) { + $user = pathinfo($userdir, PATHINFO_FILENAME); + $name = @file_get_contents("$userdir/name.txt") ?: ucfirst($user); + print '
  • '.$name; +} + +print ''; -- 2.30.0