fix stats link, remove tilde.fun
This commit is contained in:
parent
af5703d8a4
commit
c654286c49
|
@ -7,7 +7,7 @@
|
||||||
<p>tilde.chat is meant to be a space for all tilde members to hang out, share, teach, and learn.</p>
|
<p>tilde.chat is meant to be a space for all tilde members to hang out, share, teach, and learn.</p>
|
||||||
|
|
||||||
<p>feel free to contact a tilde.team admin (<?php
|
<p>feel free to contact a tilde.team admin (<?php
|
||||||
$team = json_decode(file_get_contents("members.json"))->members[2];
|
$team = json_decode(file_get_contents("members.json"))->members[0];
|
||||||
$count = count($team->sysadmins);
|
$count = count($team->sysadmins);
|
||||||
foreach($team->sysadmins as $sysadmin) {
|
foreach($team->sysadmins as $sysadmin) {
|
||||||
echo "<a href='{$sysadmin[1]}'>{$sysadmin[0]}</a>";
|
echo "<a href='{$sysadmin[1]}'>{$sysadmin[0]}</a>";
|
||||||
|
@ -54,7 +54,7 @@
|
||||||
|
|
||||||
<!-- misc channel info -->
|
<!-- misc channel info -->
|
||||||
<h3>channel info</h3>
|
<h3>channel info</h3>
|
||||||
<a href="stats.php">stats here</a>
|
<a href="/stats/">stats here</a>
|
||||||
<pre>
|
<pre>
|
||||||
#meta - main lobby channel
|
#meta - main lobby channel
|
||||||
#projects - project ideas and discussions
|
#projects - project ideas and discussions
|
||||||
|
|
36
members.json
36
members.json
|
@ -1,17 +1,5 @@
|
||||||
{
|
{
|
||||||
"members": [
|
"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",
|
"private_channel": "#team",
|
||||||
"name": "tilde.team",
|
"name": "tilde.team",
|
||||||
|
@ -32,6 +20,18 @@
|
||||||
"link": "https://tilde.team",
|
"link": "https://tilde.team",
|
||||||
"description": "non-commercial space for teaching, learning, and enjoying the social medium of unix"
|
"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",
|
"private_channel": "#your",
|
||||||
"name": "yourtilde.com",
|
"name": "yourtilde.com",
|
||||||
|
@ -43,18 +43,6 @@
|
||||||
],
|
],
|
||||||
"link": "https://yourtilde.com",
|
"link": "https://yourtilde.com",
|
||||||
"description": "basically a social network inside SSH: there is chat, email, forums, games, and lots more."
|
"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"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,19 +1,34 @@
|
||||||
<?php $title="stats page";
|
<?php
|
||||||
|
$title="stats page";
|
||||||
$desc="stats about tilde.chat and its channels";
|
$desc="stats about tilde.chat and its channels";
|
||||||
include __DIR__."/../header.php"; ?>
|
$stats = json_decode(file_get_contents("../stats.json"));
|
||||||
<h1>stats</h1>
|
include __DIR__."/../header.php";
|
||||||
<?php
|
|
||||||
$stats = json_decode(file_get_contents("../stats.json"));
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
<h1>stats</h1>
|
||||||
|
<hr>
|
||||||
<p>There are <?=$stats->usercount?> users across <?=$stats->channelcount?> channels.</p>
|
<p>There are <?=$stats->usercount?> users across <?=$stats->channelcount?> channels.</p>
|
||||||
<table class='table table-striped table-bordered table-hover'>
|
<div class="table-responsive">
|
||||||
<thead><tr><th>Name</th><th>Users</th><th>Topic</th></tr></thead>
|
<table class="table table-striped table-bordered table-hover">
|
||||||
<tbody data-link="row" class="rowlink">
|
<thead>
|
||||||
<?php foreach($stats->channels as $channel): ?>
|
<tr>
|
||||||
<tr><td><a href="<?=$channel->webchatlink?>"><?=$channel->name?></a></td><td><?=$channel->usercount?></td><td><?=$channel->topic?></td></tr>
|
<th>Name</th>
|
||||||
<?php endforeach; ?>
|
<th>Users</th>
|
||||||
</tbody>
|
<th>Topic</th>
|
||||||
</table>
|
</tr>
|
||||||
|
</thead>
|
||||||
|
|
||||||
|
<tbody data-link="row" class="rowlink">
|
||||||
|
<?php foreach($stats->channels as $channel): ?>
|
||||||
|
<tr>
|
||||||
|
<td><a href="<?=$channel->webchatlink?>"><?=$channel->name?></a></td>
|
||||||
|
<td><?=$channel->usercount?></td><td><?=$channel->topic?></td>
|
||||||
|
</tr>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
<p>Available in <a href="/stats.json">JSON format</a>.</p>
|
<p>Available in <a href="/stats.json">JSON format</a>.</p>
|
||||||
|
|
||||||
<?php include __DIR__."/../footer.php"; ?>
|
<?php include __DIR__."/../footer.php"; ?>
|
||||||
|
|
Loading…
Reference in New Issue