<?
   include "Functions.php";

// Connect

   include "inc_connect.php";

//   echo "<?xml version='1.0' encoding='iso-8859-1' ?".">\n";
//   echo "<rss version='2.0' xmlns:media='http://search.yahoo.com/mrss/'>\n";


   echo "<?xml version='1.0' encoding='UTF-8'?>\n"; 
   echo "<?xml-stylesheet title='XSL_formatting' type='text/xsl' href='/shared/bsp/xsl/rss/nolsol.xsl'?>\n\n";
 
   echo "<rss xmlns:media='http://search.yahoo.com/mrss/' xmlns:atom='http://www.w3.org/2005/Atom' version='2.0'>\n"; 

   echo "<channel>\n";

   echo "<title>Astronautical News</title>\n";
   echo "<link>http://www.astronautical-news.com</link>\n";
   echo "<description>Breaking news from the world of space and astronautics</description>\n";
   echo "<language>en-gb</language>\n";  
   echo "<lastBuildDate>".gmdate("D, d M Y H:i:s ")."GMT</lastBuildDate>\n";  
   echo "<copyright>Copyright: Public domain</copyright>\n";    
   echo "<ttl>30</ttl>\n";      
   echo "<atom:link href='http://astronautical-news.com/rss.xml' rel='self' type='application/rss+xml'/>  \n";      


   $rightnow = gmdate("Ymd");

   $r = mysql('globalg6_gns', "select * from knowledge where updated<=$rightnow and processed<=2 order by updated desc, sortorder desc limit 0,16");

   include "xml_items.php";

   echo "</channel>\n";
   echo "</rss>\n";

   // Disconnect
   mysql_close();


?>



