<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><?php header('Content-type: text/xml'); ?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
<channel>

<title>Design Snack: CSS/XHTML Websites</title>
<description>The ultimate inspiration tool.</description>
<link>http://designsnack.com</link>

<?php // Set up URL and pull in basic functions & mysql class
$goBack = "../";
$site_url = "http://designsnack.com";
include($goBack."config/functions.php");
include($goBack."config/mysql.php");
$db = &new MySQL($host, $dbUser, $dbPass, $dbName); 

$sql = "SELECT * FROM items WHERE hidden = 0 AND type='css_website' AND toprated_id > 0 ORDER BY toprated_id DESC LIMIT 25";
$queryResource = mysql_query($sql);
while ($item = mysql_fetch_array($queryResource, MYSQL_ASSOC)) {

	$current_rating = $item['current_rating'];
	$item_url = $item['url'];
	$item_name = $item['title'];
	$item_name = str_replace('&','&amp;',$item_name);
	$id = $item['id'];
	$url_slug = url_slug($item_name);
	
	$url = "http://designsnack.com/item/".$url_slug."/".$id."/";	
	?>
	
	<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/designsnack-cssxhtml" /><feedburner:info uri="designsnack-cssxhtml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>designsnack-cssxhtml</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
	  	<title><?php echo $item_name; ?></title>
	  	<link><?php echo $url ?></link>
		<guid><?php echo $url ?></guid>
	  	<pubDate><?php echo date("D, j M Y H:i:s T", strtotime($item['date'])) ?></pubDate>
	  	<description>&lt;strong&gt;&lt;?php echo $item_name . "&lt;/strong&gt; (&lt;a href=\"".$item_url."\"&gt;".$item_url."&lt;/a&gt;)" ?&gt;&lt;br /&gt;&lt;img src="http://designsnack.com/screenshots/image.php?width=550&amp;amp;image=/screenshots/&lt;?php echo $item['screenshot']; ?&gt;" alt="&lt;?php echo $item_name ?&gt;" /&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/designsnack-cssxhtml?a=Ro2eosQjYao:ZDvulBp9odE:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/designsnack-cssxhtml?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/designsnack-cssxhtml?a=Ro2eosQjYao:ZDvulBp9odE:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/designsnack-cssxhtml?i=Ro2eosQjYao:ZDvulBp9odE:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/designsnack-cssxhtml?a=Ro2eosQjYao:ZDvulBp9odE:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/designsnack-cssxhtml?i=Ro2eosQjYao:ZDvulBp9odE:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/designsnack-cssxhtml?a=Ro2eosQjYao:ZDvulBp9odE:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/designsnack-cssxhtml?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/designsnack-cssxhtml?a=Ro2eosQjYao:ZDvulBp9odE:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/designsnack-cssxhtml?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/designsnack-cssxhtml?a=Ro2eosQjYao:ZDvulBp9odE:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/designsnack-cssxhtml?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description>
	</item>

<?php } ?>

</channel>
</rss>
