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 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>
16 while ($row = $query->fetch()) {
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 ?>" />