Update index.php

This commit is contained in:
deepend-tildeclub 2024-08-17 10:35:05 -06:00 committed by GitHub
parent ce6b4937ae
commit 0e6595dc42
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 18 additions and 0 deletions

View File

@ -5,7 +5,25 @@
<p><a href="/wiki/faq.html">Questions? See the official FAQ.</a></p>
<p class="advisory">GMAIL USERS: We no longer accept gmail.com addresses for signups since you would not receive your account information email.</p>
<!-- Active Users Scrolling List -->
<div class="active-users-container">
<h2>Currently Active Users</h2>
<div class="active-users-list">
<?php
$activeUsers = json_decode(file_get_contents('/path/to/your/webroot/online-users.json'), true);
if (!empty($activeUsers)) {
echo "<ul>";
foreach ($activeUsers as $user) {
echo "<li>" . htmlspecialchars($user) . "</li>";
}
echo "</ul>";
} else {
echo "<p>No active users at the moment.</p>";
}
?>
</div>
</div>
<div class="grid">
<div class="row">