From e0e44fc8c3df2839e14c7914a6e665aea98435c9 Mon Sep 17 00:00:00 2001 From: Jan-Philipp Litza Date: Wed, 26 Dec 2012 20:39:54 +0100 Subject: added Atom feed for news and meetings --- includes/pages/user_atom.php | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 includes/pages/user_atom.php (limited to 'includes/pages/user_atom.php') diff --git a/includes/pages/user_atom.php b/includes/pages/user_atom.php new file mode 100644 index 00000000..fd28510f --- /dev/null +++ b/includes/pages/user_atom.php @@ -0,0 +1,39 @@ + + + Engelsystem + ' . $_SERVER['HTTP_HOST'] . htmlspecialchars(preg_replace('#[&?]key=[a-f0-9]{32}#', '', $_SERVER['REQUEST_URI'])) . ' + ' . date('Y-m-d\TH:i:sP', $news[0]['Datum']) . "\n"; + foreach ($news as $news_entry) { + $html .= " + " . htmlspecialchars($news_entry['Betreff']) . " + + " . preg_replace('#^https?://#', '', page_link_to_absolute("news")) . "-${news_entry['ID']} + " . date('Y-m-d\TH:i:sP', $news_entry['Datum']) . " + " . htmlspecialchars($news_entry['Text']) . " + \n"; + } + $html .= ""; + header("Content-Length: " . strlen($html)); + echo $html; + die(); +} +?> -- cgit v1.2.3-54-g00ecf