2007-12-12 17:29:16 +01:00
|
|
|
<?php
|
2010-01-16 11:13:52 +01:00
|
|
|
echo '<' . '?xml version="1.0" encoding="utf-8" ?' . ">\n";
|
2007-12-12 17:29:16 +01:00
|
|
|
?>
|
|
|
|
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
|
|
|
<channel>
|
2010-01-19 21:32:10 +01:00
|
|
|
<title><?php echo htmlspecialchars($feedtitle); ?></title>
|
|
|
|
<link><?php echo htmlspecialchars($feedlink); ?></link>
|
|
|
|
<description><?php echo htmlspecialchars($feeddescription); ?></description>
|
2010-01-16 11:12:25 +01:00
|
|
|
<pubDate><?php echo date('r'); ?></pubDate>
|
|
|
|
<lastBuildDate><?php echo $feedlastupdate ?></lastBuildDate>
|
2007-12-12 17:29:16 +01:00
|
|
|
<ttl>60</ttl>
|
|
|
|
|
|
|
|
<?php foreach($bookmarks as $bookmark): ?>
|
|
|
|
<item>
|
2010-01-19 21:32:10 +01:00
|
|
|
<title><?php echo htmlspecialchars($bookmark['title']); ?></title>
|
|
|
|
<link><?php echo htmlspecialchars($bookmark['link']); ?></link>
|
|
|
|
<description><?php echo htmlspecialchars($bookmark['description']); ?></description>
|
|
|
|
<dc:creator><?php echo htmlspecialchars($bookmark['creator']); ?></dc:creator>
|
2007-12-12 17:29:16 +01:00
|
|
|
<pubDate><?php echo $bookmark['pubdate']; ?></pubDate>
|
2010-01-16 11:12:25 +01:00
|
|
|
<?php foreach($bookmark['tags'] as $tag): ?>
|
2010-01-19 21:32:10 +01:00
|
|
|
<category><?php echo htmlspecialchars($tag); ?></category>
|
2010-01-16 11:12:25 +01:00
|
|
|
<?php endforeach; ?>
|
2007-12-12 17:29:16 +01:00
|
|
|
</item>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</channel>
|
|
|
|
</rss>
|