[med-svn] r501 - trunk/community/website

hanska-guest at alioth.debian.org hanska-guest at alioth.debian.org
Tue Oct 2 11:51:16 UTC 2007


Author: hanska-guest
Date: 2007-10-02 11:51:16 +0000 (Tue, 02 Oct 2007)
New Revision: 501

Modified:
   trunk/community/website/index.php
Log:
First parsing


Modified: trunk/community/website/index.php
===================================================================
--- trunk/community/website/index.php	2007-10-02 11:31:18 UTC (rev 500)
+++ trunk/community/website/index.php	2007-10-02 11:51:16 UTC (rev 501)
@@ -11,9 +11,6 @@
 Please, take a look at our current <a href="http://wiki.debian.org/DebianMed">homepage</a>
 </p>
 <hr width="50%" align="center" />
-<p>
-<div id="rssOutput">div</div>
-</p>
 <?php
 	include_once("inc/lastRSS.php");
 	
@@ -22,10 +19,14 @@
 	$rss->cache_time = 3600;
 	
 	if ($rs = $rss->get("http://cia.vc/stats/project/Debian-Med/.rss")) {
-		echo "<pre>"; print_r($rs); echo "</pre>";
+		foreach $item in $rs["items"]
+		{
+			echo $item["description"];
+		}
+		//echo "<pre>"; print_r($rs); echo "</pre>";
 	}
 	else {
-		echo "Error: can't get RSS feed.<br />";
+		echo "Error: can't get RSS feed from CIA.vc.<br />";
 	}
 ?>
 <small>Please, note that this is a SVN export of our website. It might break during




More information about the debian-med-commit mailing list