Location: PHPKode > projects > rapidshareBot > rapidsharebot/feed.php
<?php
include('functions.inc.php');

$home_url = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['PHP_SELF'];
$home_url = trim($home_url, '/');
$home_url = explode('/', $home_url);
array_pop($home_url);
$home_url = implode("/", $home_url);

$trends = build_trends(date("Y-m-d"));
shuffle($trends);
echo "<?xml version=\"1.0\"?>\n";
?>
<rss version="2.0">
   <channel>
      <title><?php echo $_SERVER['SERVER_NAME']; ?>- Free full version Downloads</title>
      <link><?php echo $home_url; ?>/feed.php</link>
      <description><?php echo $_SERVER['SERVER_NAME']; ?> lets you search for shared files from various file  hosting sites like: FileServe, FileSonic, Megaupload, 4shared, Rapidshare, Hotfile, Mediafire, Netload and many others.</description>
      <language>en-us</language>
      <pubDate><?php echo date("D, d M Y H:i:s Z"); ?></pubDate>
      <lastBuildDate><?php echo date("D, d M Y H:i:s Z"); ?></lastBuildDate>
      <docs>http://makemoneydownloadscript.blogspot.com/</docs>
      <generator><?php echo $home_url; ?></generator>
      <managingEditor>hide@address.com</managingEditor>
      <webMaster>hide@address.com</webMaster><?php foreach ($trends as $trend) { echo "\n"; ?>
      <item>
         <title><?php echo $trend; ?> - Free full version downloads.</title>
         <link><?php echo $home_url . '/search.php?q=' . urlencode($trend) ; ?></link>
         <description><?php echo $trend; ?> - Free full version downloads.</description>
         <pubDate><?php echo date("D, d M Y H:i:s Z"); ?></pubDate>
         <guid><?php echo $home_url . '/search.php?q=' . urlencode($trend) ; ?></guid>
      </item><?php } echo "\n"; ?>
   </channel>
</rss>
Return current item: rapidshareBot