Support multipart/form-data content type
[anoweco.git] / www / latest.php
1 <?php
2 namespace anoweco;
3 require 'www-header.php';
4
5 $storage = new Storage();
6 $comments = $storage->listLatest();
7
8 foreach ($comments as $comment) {
9     $comment->url = Urls::comment($comment->comment_id);
10     $comment->domain = parse_url($comment->comment_of_url, PHP_URL_HOST);
11 }
12
13 $vars = [
14     'comments' => $comments,
15 ];
16 render('latest', $vars);
17 ?>