tilde.chat/index.php

42 lines
1.1 KiB
PHP
Raw Normal View History

2018-06-20 14:15:52 +00:00
<?php include 'header.php'; ?>
2018-06-20 16:22:43 +00:00
<h1>tilde.chat</h1>
<hr>
2018-06-20 13:29:52 +00:00
2018-06-20 16:22:43 +00:00
<p>hey hi</p>
<p>you can connect to tilde.chat on port 6697 with ssl</p>
<p>or localhost 6667 from a shell on any of the member tildes :)</p>
<p>feel free to contact a tilde.team sysadmin (<?php
$team = json_decode(file_get_contents("members.json"))->members[1];
$count = count($team->sysadmins);
foreach($team->sysadmins as $sysadmin) {
echo "<a href='{$sysadmin[1]}'>{$sysadmin[0]}</a>";
if ($count>1) {
echo ", ";
$count--;
}
}?>) for more info as we flesh out this site</p>
2018-06-20 13:29:52 +00:00
2018-06-20 16:22:43 +00:00
<h3>member tildes</h3>
<ul>
<?php
2018-06-20 16:22:43 +00:00
$members = json_decode(file_get_contents("members.json"))->members;
foreach($members as $member) {
echo "\t\t<li><a href='{$member->link}'>{$member->name}</a> (sysadmin";
if (count($member->sysadmins)!=1) {
echo "s"; // plural
}
echo ": ";
$count = count($member->sysadmins);
foreach($member->sysadmins as $sysadmin) {
echo "<a href='{$sysadmin[1]}'>{$sysadmin[0]}</a>";
if ($count>1) {
echo ", ";
$count--;
}
}
echo ", private channel: {$member->private_channel})</li>\n";
2018-06-20 16:22:43 +00:00
}
?>
2018-06-20 16:22:43 +00:00
</ul>
2018-06-20 14:15:52 +00:00
<?php include 'footer.php'; ?>