From c654286c49e9673a8e9b2bc764e24abf2d0e438d Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sat, 27 Oct 2018 02:36:10 -0400 Subject: [PATCH] fix stats link, remove tilde.fun --- index.php | 4 ++-- members.json | 36 ++++++++++++------------------------ stats/index.php | 41 ++++++++++++++++++++++++++++------------- 3 files changed, 42 insertions(+), 39 deletions(-) diff --git a/index.php b/index.php index c80290d..3eb3dec 100644 --- a/index.php +++ b/index.php @@ -7,7 +7,7 @@

tilde.chat is meant to be a space for all tilde members to hang out, share, teach, and learn.

feel free to contact a tilde.team admin (members[2]; + $team = json_decode(file_get_contents("members.json"))->members[0]; $count = count($team->sysadmins); foreach($team->sysadmins as $sysadmin) { echo "{$sysadmin[0]}"; @@ -54,7 +54,7 @@

channel info

-stats here +stats here
 #meta          - main lobby channel
 #projects      - project ideas and discussions
diff --git a/members.json b/members.json
index f27f504..8b76f9f 100644
--- a/members.json
+++ b/members.json
@@ -1,17 +1,5 @@
 {
 	"members": [
-		{
-			"private_channel": "#town",
-			"name": "tilde.town",
-			"sysadmins": [
-				[
-					"vilmibm",
-					"https://tilde.town/~vilmibm/"
-				]
-			],
-			"link": "https://tilde.town",
-			"description": "intentional digital community for making art, socializing, and learning"
-		},
 		{
 			"private_channel": "#team",
 			"name": "tilde.team",
@@ -32,6 +20,18 @@
 			"link": "https://tilde.team",
 			"description": "non-commercial space for teaching, learning, and enjoying the social medium of unix"
 		},
+		{
+			"private_channel": "#town",
+			"name": "tilde.town",
+			"sysadmins": [
+				[
+					"vilmibm",
+					"https://tilde.town/~vilmibm/"
+				]
+			],
+			"link": "https://tilde.town",
+			"description": "intentional digital community for making art, socializing, and learning"
+		},
 		{
 			"private_channel": "#your",
 			"name": "yourtilde.com",
@@ -43,18 +43,6 @@
 			],
 			"link": "https://yourtilde.com",
 			"description": "basically a social network inside SSH: there is chat, email, forums, games, and lots more."
-		},
-		{
-			"private_channel": "#fun",
-			"name": "tilde.fun",
-			"sysadmins": [
-				[
-					"shiki",
-					"https://tilde.fun/~shiki/"
-				]
-			],
-			"link": "https://tilde.fun",
-			"description": "Linux machine on the internet where you can get a shell account"
 		}
 	]
 }
diff --git a/stats/index.php b/stats/index.php
index 7814adb..94df714 100644
--- a/stats/index.php
+++ b/stats/index.php
@@ -1,19 +1,34 @@
-
-	

stats

- + +

stats

+

There are usercount?> users across channelcount?> channels.

- - - -channels as $channel): ?> - - - -
NameUsersTopic
name?>usercount?>topic?>
+
+ + + + + + + + + + + channels as $channel): ?> + + + + + + +
NameUsersTopic
name?>usercount?>topic?>
+

Available in JSON format.

+