ÿþ<?phpheader("Content-type: text/xml");echo '<?xml version="1.0" encoding="ISO-8859-1" ?>';echo '<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">';?> <channel> <title>Chibinet</title> <link>http://www.chibinet.com</link> <description>I totally haxored your moms ass last night.</description> <language>us-en</language> <copyright>Copyright 2004, Jeff Van Boxtel.</copyright> <managingEditor>sailorh</managingEditor> <webMaster>sailorh</webMaster> <image> <title>Chibinet</title> <url>http://www.chibinet.com/img/new/chibinet.gif</url> <link>http://www.chibinet.com</link> <width>229</width> <height>91</height> <description>Got chibi?</description> </image><?phpinclude("./login.inc.php");$db = mysql_list_dbs($conn);$sql="SELECT * FROM rants WHERE hidden=0 ORDER BY time DESC LIMIT 5;";$result_set = mysql_query ($sql);$rows = mysql_num_rows($result_set);if ((!$result_set) || ($rows < 1)) { // error echo "<item>"; echo "<title>Error No Articles</title>"; echo "<link>http://www.chibinet.com/index.php?id=$pid</link>";}else{ for ($j=0; $j < $rows; $j++) { $name = mysql_result($result_set, $j, 'user'); $smallname = strtolower($name); $mood = mysql_result($result_set, $j, 'mood'); $title = mysql_result($result_set, $j, 'title'); $content = mysql_result($result_set, $j, 'content'); $pid = mysql_result($result_set, $j, 'id'); $commentsql = "SELECT * FROM comments WHERE pid=\"" . my($pid ). "\" && hidden=0 ORDER BY time;"; $comments_set = mysql_query ($commentsql); $comment_count = mysql_num_rows($comments_set); echo "<item>"; echo "<title>" . substr($title,0,100) . "</title>"; echo "<link>http://www.chibinet.com/index.php?id=$pid</link>";// if(strlen($content)>200) echo "<description>" . strip_tags(substr($content, 0, 200)) . "... ($comment_count Comments)</description>";// else echo "<content:encoded><![CDATA[<img src=\"/img/mug/" . strtolower($name) . "/" . $mood . ".gif\">" . $content . "]]></content:encoded>(Comments)";// echo "<content:encoded>" . mysql_result($result_set, $j, 'content') . " ($comment_count Comments)</content:encoded>"; echo "</item>"; // Time//echo date('l, F j, g:i:s A', (strtotime (mysql_result($result_set, $j, 'time'))-$timeoffset)); }}mysql_free_result;mysql_close;?> </channel></rss>