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