1c4202e1d63b250efb83327f0a9c12db84f03dfb
[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         <title>Lijtweg.nl</title>
9         <subtitle>Meldingen</subtitle>
10         <id><?= $siteref ?>/</id>
11         <link href="<?= $siteref ?>/" />
12         <link href="<?= $siteref . $_SERVER['REQUEST_URI'] ?>" rel="self" />
13         <author><name>Lijtweg</name></author>
14 <?php
15 while ($row = $query->fetch()) {
16 ?>
17         <entry>
18                 <id><?= "$siteref/$Page/{$row->id}/{$row->link}" ?></id>
19                 <link href="<?= "$siteref/$Page/{$row->id}/{$row->link}" ?>" />
20                 <title><?= $row->subject ?></title>
21                 <published><?= $row->created ?></published>
22                 <updated><?= $row->updated ?></updated>
23         </entry>
24 <?php
25 }
26 ?>
27 </feed>
28 <?php
29 exit;