use composer-provided autoloader if it exists
[phorkie.git] / www / feed-updated.php
1 <?php
2 /**
3  * Generate an atom feed with the 10 most recently updated pastes
4  */
5 namespace phorkie;
6 $reqWritePermissions = false;
7 require_once 'www-header.php';
8
9 $db = new Database();
10 header('Content-Type: application/atom+xml');
11 render(
12     'feed-updated',
13     array(
14         'pastes'  => $db->getSearch()->listAll(0, 10, 'modate', 'desc'),
15         'url'     => Tools::fullUrl(),
16         'feedurl' => Tools::fullUrl('feed/updated'),
17     )
18 );
19 ?>