This repository has been archived on 2018-09-07. You can view files and clone it, but cannot push or open issues or pull requests.
bbj.php/thread.php

16 lines
527 B
PHP

<?php
foreach($thread["data"]["messages"] as $message) {
$username = $thread["usermap"][$message["author"]]["user_name"];
$time = round($message['created']);
$time = new DateTime("@{$time}");
$time = date_format($time, "c");
echo "\t\t<div class='well' id='post{$message["post_id"]}'>".PHP_EOL;
echo "\t\t\t<p>&gt;{$message['post_id']} {$username} @ {$time}</p>".PHP_EOL;
echo "\t\t\t<pre>".PHP_EOL;
echo $message["body"].PHP_EOL;
echo "\t\t\t</pre>".PHP_EOL;
echo "\t\t</div>".PHP_EOL;
}
?>
<p>RIP</p>