--- /dev/null
+<?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;
require_once 'database.inc.php';
@list ($id, $title) = explode('/', ltrim($Args, '/'));
-if ($id) {
+if ($id and ctype_digit($id)) {
$Article->title = "Issue #$id";
$Issue = $Db->query(
$sql .= ' ORDER BY closed IS NOT NULL, updated DESC';
$query = $Db->query($sql, [$Page]);
+if ($id == 'feed') {
+ require 'issue/feed.inc.php';
+}
+
ob_start();
print '<ul>';
while ($row = $query->fetch()) {