add the damn thing
This commit is contained in:
parent
0bba9f885d
commit
65cbda1b2e
6 changed files with 464 additions and 0 deletions
25
docs/chat.php
Normal file
25
docs/chat.php
Normal 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();
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue