+<?php
+header('Content-Type: application/atom+xml; charset=utf-8');
+print '<?xml version="1.0" encoding="utf-8"?>';
+$siteref = (empty($_SERVER['HTTPS']) ? 'http' : 'https') . '://' . $_SERVER['HTTP_HOST'];
+?>
+
+<feed xmlns="http://www.w3.org/2005/Atom">
+ <title>Lijtweg.nl</title>
+ <subtitle>Meldingen</subtitle>
+ <id><?= $siteref ?>/</id>
+ <link href="<?= $siteref ?>/" />
+ <link href="<?= $siteref . $_SERVER['REQUEST_URI'] ?>" rel="self" />
+ <author><name>Lijtweg</name></author>
+<?php
+while ($row = $query->fetch()) {
+?>
+ <entry>
+ <id><?= "$siteref/$Page/{$row->id}/{$row->link}" ?></id>
+ <link href="<?= "$siteref/$Page/{$row->id}/{$row->link}" ?>" />
+ <title><?= $row->subject ?></title>
+ <published><?= $row->created ?></published>
+ <updated><?= $row->updated ?></updated>
+ </entry>
+<?php
+}
+?>
+</feed>
+<?php
+exit;