2007-03-12 14:28:12 +00:00
|
|
|
<? header("location: http://blog.CAcert.org/feed/"); exit; ?>
|
2005-02-16 18:11:53 +00:00
|
|
|
<? /* <author>$row['who'] <nomail@nospam.sss></author> */ ?>
|
|
|
|
<? header("Content-Type: application/xml");
|
|
|
|
?><<?="?"?>xml version="1.0" encoding="UTF-8" <?="?"?>>
|
|
|
|
<rss version="2.0">
|
|
|
|
<channel>
|
|
|
|
<title>CAcert.org NEWS!</title>
|
2008-09-03 18:43:25 +00:00
|
|
|
<link>http://www.CAcert.org/</link>
|
2005-02-16 18:11:53 +00:00
|
|
|
<copyright>Copyright © 2002-present, CAcert Inc.</copyright>
|
|
|
|
<description>News feed for CAcert.org</description>
|
|
|
|
<pubDate><?=date("D, d M Y H:i:s O")?></pubDate>
|
|
|
|
<lastBuildDate><?=date("D, d M Y H:i:s O")?></lastBuildDate>
|
|
|
|
<ttl>3600</ttl><?
|
|
|
|
$query = "select *, UNIX_TIMESTAMP(`when`) as `TS` from news order by `when` desc limit 10";
|
|
|
|
$res = mysql_query($query);
|
|
|
|
while($row = mysql_fetch_assoc($res))
|
|
|
|
{ ?>
|
|
|
|
<item>
|
|
|
|
<title><?=strip_tags($row['short'])?></title>
|
|
|
|
<description><?=strip_tags($row['story'])?></description>
|
|
|
|
<link>http://www.cacert.org/news.php?from=rss&id=<?=$row['id']?></link>
|
|
|
|
<pubDate><?=date("D, d M Y H:i:s O", $row['TS'])?></pubDate>
|
|
|
|
</item>
|
|
|
|
<? } ?>
|
|
|
|
|
|
|
|
</channel>
|
|
|
|
</rss>
|