From 6e6b3996d16f31509a6fee9ecfd2f490e36fe6b7 Mon Sep 17 00:00:00 2001 From: khuxkm Date: Wed, 20 Jun 2018 17:19:13 -0400 Subject: [PATCH] Add stats page --- stats.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 stats.php diff --git a/stats.php b/stats.php new file mode 100644 index 0000000..1231ed5 --- /dev/null +++ b/stats.php @@ -0,0 +1,16 @@ + +

stats

+There are {$stats->usercount} users across {$stats->channelcount} channels.

\n"; + echo "\t\n\t\t\n"; + foreach($stats->channels as $channel) { + echo "\t\n"; + } + echo "\t
NameUser countTopic
{$channel->name}{$channel->usercount}{$channel->topic}
\n"; +?> +
+

Available in JSON format.

+