Advertisement
Guest User

rss-divxtotal

a guest
Nov 10th, 2012
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.18 KB | None | 0 0
  1. <?
  2. $options = array('http' => array(
  3. 'method'  => 'GET',
  4. ));
  5.  
  6. $serie = $_GET['s'];
  7.  
  8. $config= stream_context_create($options);
  9. $config_final=file_get_contents('http://www.divxtotal.com/series/'.$serie.'/',false, $config);
  10.  
  11. preg_match_all("#\<h2\>(.*)\&nbsp;#Ui", $config_final, $titulo);
  12. preg_match_all("#<a href\=\"/download.php\?id\=(.*)\" title\=\"(.*)\"\>#Ui", $config_final, $val);
  13.  
  14. echo '<?xml version="1.0" encoding="iso-8859-1"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  15.    <channel>
  16.        <title>'.$titulo[1][0].'</title>
  17.     <link>http://www.divxtotal.com/series/'.$serie.'/</link>
  18.     <description>'.$titulo[1][0].'</description>
  19.     <language>es-ES</language>
  20.     <atom:link href="http://www.tuweb.com/series.php" />';
  21.  
  22. echo '<item><title>'.$val[2][0].'</title><guid isPermaLink=\'true\'>http://www.divxtotal.com/download.php?id='.$val[1][0].'</guid><category>Series</category><link>http://www.divxtotal.com/download.php?id='.$val[1][0].'</link><enclosure url="http://www.divxtotal.com/download.php?id='.$val[1][0].'" type="application/x-bittorrent" /><description><![CDATA['.$val[2][0].']]></description></item>';
  23.  
  24. echo '      </channel>
  25.    </rss>';
  26.  
  27.  
  28. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement