login/pass: error messages below page title
[minimedit.git] / issue / feed.inc.php
1 <?php
2 header('Content-Type: application/atom+xml; charset=utf-8');
3 print '<?xml version="1.0" encoding="utf-8"?>';
4 $siteref = (empty($_SERVER['HTTPS']) ? 'http' : 'https') . '://' . $_SERVER['HTTP_HOST'];
5 ?>
6
7 <feed xmlns="http://www.w3.org/2005/Atom"
8       xmlns:thr="http://purl.org/syndication/thread/1.0">
9         <title>Lijtweg.nl</title>
10         <subtitle>Meldingen</subtitle>
11         <id><?= $siteref ?>/</id>
12         <link href="<?= $siteref ?>/" />
13         <link href="<?= $siteref . $_SERVER['REQUEST_URI'] ?>" rel="self" />
14         <author><name>Lijtweg</name></author>
15 <?php
16 while ($row = $query->fetch()) {
17 ?>
18         <entry>
19                 <id><?= "$siteref/{$Page->handler}/{$row->id}/{$row->link}" ?></id>
20                 <link href="<?= "$siteref/{$Page->handler}/{$row->id}/{$row->link}" ?>" />
21                 <title><?= $row->subject ?></title>
22                 <published><?= $row->created ?></published>
23                 <updated><?= $row->updated ?></updated>
24                 <link rel="replies" thr:count="<?= $row->replycount ?>" />
25         </entry>
26 <?php
27 }
28 ?>
29 </feed>
30 <?php
31 exit;