forked from elmadev/elmastats
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuserinfo.php
More file actions
30 lines (24 loc) · 680 Bytes
/
userinfo.php
File metadata and controls
30 lines (24 loc) · 680 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
//Functions
include("func.php");
//Load users
$users = array(array());
$files = array();
$handle = opendir("usersz/");
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") $users[$file] = loadUser($file);
}
closedir($handle);
uksort($users, "cmpa");
$themestats = array();
foreach ($users as $user) {
echo("<b>" . $user["nick"] . "</b><br/>");
echo($user["theme"] . "<br/>");
$themestats[$user["theme"]]++;
echo("<br/>");
}
echo("<br/><br/><b>theme stats</b><br/>");
foreach ($themestats as $theme => $themecount) {
echo($theme . ": " . $themecount . " users<br/>");
}
?>