return $item;
}
+$now_rss = date(DATE_RSS);
+
$rss_template = file_get_contents('rss.template.xml');
$rss_dom = new DOMDocument();
$rss_dom->formatOutput = true;
$rss_dom->loadXML($rss_template);
$channel_node = $rss_dom->firstChild->childNodes[1];
+$channel_node->appendChild($rss_dom->createElement('pubDate', $now_rss));
+$channel_node->appendChild($rss_dom->createElement('lastBuildDate', $now_rss));
+$channel_node->appendChild($rss_dom->createElement('generator', 'https://git.jacobcasper.com/?p=pics.git;a=blob;f=rss.php;h=0312255783027646c3dd7a86636776dec82db03c;hb=HEAD'));
$db = get_db();
$posts = $db->query('SELECT
p.ID as POST_ID,