Don't like ads? PRO users don't see any ads ;-)

TPB Warez Leecher By Boxxy V1.1

By: Boxxy on Aug 20th, 2012  |  syntax: PHP  |  size: 1.39 KB  |  hits: 69  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. $items = 500;
  3. $feeds = array("101", "102", "103", "104", "199", "201", "203", "204", "205", "206", "207", "208", "209", "299", "301", "303", "304", "305", "306", "399", "401", "402", "403", "404", "405", "406", "407", "408", "499", "501", "502", "503", "504", "505", "506", "599", "601", "602", "603", "604", "605", "699");
  4. for($i = 0; $i <= 43; $i++)
  5. {
  6. ${"rss$i"} = simplexml_load_file('http://rss.thepiratebay.se/' .$feeds[$i]);
  7. }
  8.  
  9. echo "<h1>TPB Warez Leecher By Boxxy</h1><br />\n";
  10. echo "<div class=\"time\"><h2>" . $rss0->channel->lastBuildDate . "</h2></div><br>\n";
  11.  
  12. for($i1 = 0; $i1 <= $items; $i1++)
  13. {
  14.     for($i2 = 0; $i2 <= 43; $i2++)
  15.     {
  16.         $var1 = ${"rss$i2"};
  17.         $var2 = $var1->channel->item[$i1]->title;
  18.         echo ("<div class=\"channel\">" . filter($var2) . "</div>\n");
  19.     }
  20. }
  21.  
  22. function filter($source)
  23. {
  24.     $source = str_replace("\\", " ", $source);
  25.         $source = str_replace(";", " ", $source);
  26.     $source = str_replace("/", " ", $source);
  27.     $source = str_replace(":", " ", $source);
  28.     $source = str_replace("*", " ", $source);
  29.     $source = str_replace("?", " ", $source);
  30.     $source = str_replace("\"", " ", $source);
  31.     $source = str_replace("<", " ", $source);
  32.     $source = str_replace(">", " ", $source);
  33.     $source = str_replace("|", " ", $source);
  34.     return $source;
  35. }
  36. ?>
  37. <!-- Thanks to Eekhoorn for cleaning up my code! -->