[Frugalware-darcs] frugalware-current: homepage/rss.php

VMiklos vmiklos at frugalware.org
Thu Mar 30 23:37:36 CEST 2006


[homepage/rss.php
VMiklos <vmiklos at frugalware.org>**20060329224242
 use the <pubDate> tag where it's possible (package updates)
] {
hunk ./docs/homepage/frugalware/rss.php 28
-			$query="select groups, pkgname, id, pkgver, pkgrel, arch, `desc` from packages order by updated desc limit 10";
+			$query="select groups, pkgname, id, pkgver, pkgrel, arch, `desc`, unix_timestamp(updated) from packages order by updated desc limit 10";
hunk ./docs/homepage/frugalware/rss.php 34
+						"pubDate" => date(DATE_RFC2822, $i['unix_timestamp(updated)']),
hunk ./docs/homepage/frugalware/rss.php 76
-<link>" . $i['link'] . "</link>
-</item>");
+<link>" . $i['link'] . "</link>\n");
+if(isset($i['pubDate']))
+	print("<pubDate>" . $i['pubDate'] . "</pubDate>\n");
+print("</item>");
}


More information about the Frugalware-darcs mailing list