FIX: Combine auth.php to login.php
[phorkie.git] / www / doap.php
1 <?php
2 namespace phorkie;
3 /**
4  * Display DOAP of the paste.
5  * Contains a machine-readable project description with Git URL.
6  */
7 require_once 'www-header.php';
8
9 $repo = new Repository();
10 $repo->loadFromRequest();
11
12 header('Content-Type: application/rdf+xml');
13 render(
14     'doap',
15     array(
16         'repo' => $repo,
17         'date' => date('Y-m-d', end($repo->getHistory())->committerTime),
18         'link' => Tools::fullUrl($repo->getLink('display'))
19     )
20 );
21 ?>