forked from tildeverse/tilde.chat
Add sysadmin list and change top message
This commit is contained in:
parent
2a908bc126
commit
0cdd0b3824
26
index.php
26
index.php
@ -5,14 +5,36 @@
|
||||
<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 <a href="https://ben.tilde.team">contact me</a> for more info</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>
|
||||
|
||||
<h3>member tildes</h3>
|
||||
<ul>
|
||||
<?php
|
||||
$members = json_decode(file_get_contents("members.json"))->members;
|
||||
foreach($members as $member) {
|
||||
echo "<li><a href='{$member->link}'>{$member->name}</a></li>\n";
|
||||
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";
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
|
Loading…
Reference in New Issue
Block a user