add the damn thing

This commit is contained in:
biglyderv 2025-02-08 00:52:59 -05:00
parent 0bba9f885d
commit 65cbda1b2e
Signed by: biglyderv
GPG key ID: 1398543B9746192C
6 changed files with 464 additions and 0 deletions

25
docs/chat.php Normal file
View file

@ -0,0 +1,25 @@
<?php
require(__DIR__ . "/../libs/header.php");
page_header();
$msgs = json_decode(file_get_contents('https://mcp.dervland.net/messages'),true);
foreach ($msgs as $msg) {
?>
<div class="comment">
<div class="avatar">
<div>
<div><b>
<?php echo htmlspecialchars($msg['username']); ?>
</b></div>
<div><b>
<?php echo date(DATE_RFC2822, $msg['date'] * 0.001); ?>
</b></div>
</div>
</div>
<?php echo htmlspecialchars($msg['content']); ?>
</div>
<?php
}
page_footer();
?>