From 33ff6876ff56c64242bbf32c01bdfd0285c00f42 Mon Sep 17 00:00:00 2001
From: khuxkm
Date: Thu, 19 Jul 2018 10:44:08 -0400
Subject: [PATCH] Make the table look 1000% nicer
---
stats.php | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/stats.php b/stats.php
index 1231ed5..9da7352 100644
--- a/stats.php
+++ b/stats.php
@@ -4,13 +4,16 @@ include "header.php"; ?>
stats
There are {$stats->usercount} users across {$stats->channelcount} channels.
\n";
- echo "\t\n\t\tName | User count | Topic |
\n";
- foreach($stats->channels as $channel) {
- echo "\t{$channel->name} | {$channel->usercount} | {$channel->topic} |
\n";
- }
- echo "\t
\n";
?>
+ There are =$stats->usercount?> users across =$stats->channelcount?> channels.
+
+ Name | Users | Topic |
+
+channels as $channel): ?>
+ =$channel->name?> | =$channel->usercount?> | =$channel->topic?> |
+
+
+
Available in JSON format.