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'];
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>
15 while ($row = $query->fetch()) {
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>