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>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);
|
||||
foreach($team->sysadmins as $sysadmin) {
|
||||
echo "<a href='{$sysadmin[1]}'>{$sysadmin[0]}</a>";
|
||||
|
@ -54,7 +54,7 @@
|
|||
|
||||
<!-- misc channel info -->
|
||||
<h3>channel info</h3>
|
||||
<a href="stats.php">stats here</a>
|
||||
<a href="/stats/">stats here</a>
|
||||
<pre>
|
||||
#meta - main lobby channel
|
||||
#projects - project ideas and discussions
|
||||
|
|
36
members.json
36
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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -1,19 +1,34 @@
|
|||
<?php $title="stats page";
|
||||
<?php
|
||||
$title="stats page";
|
||||
$desc="stats about tilde.chat and its channels";
|
||||
include __DIR__."/../header.php"; ?>
|
||||
<h1>stats</h1>
|
||||
<?php
|
||||
$stats = json_decode(file_get_contents("../stats.json"));
|
||||
$stats = json_decode(file_get_contents("../stats.json"));
|
||||
include __DIR__."/../header.php";
|
||||
?>
|
||||
|
||||
<h1>stats</h1>
|
||||
<hr>
|
||||
<p>There are <?=$stats->usercount?> users across <?=$stats->channelcount?> channels.</p>
|
||||
<table class='table table-striped table-bordered table-hover'>
|
||||
<thead><tr><th>Name</th><th>Users</th><th>Topic</th></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 class="table-responsive">
|
||||
<table class="table table-striped table-bordered table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Users</th>
|
||||
<th>Topic</th>
|
||||
</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>
|
||||
<p>Available in <a href="/stats.json">JSON format</a>.</p>
|
||||
|
||||
<?php include __DIR__."/../footer.php"; ?>
|
||||
|
|
Loading…
Reference in New Issue