Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- $options = array('http' => array(
- 'method' => 'GET',
- ));
- $serie = $_GET['s'];
- $config= stream_context_create($options);
- $config_final=file_get_contents('http://www.divxtotal.com/series/'.$serie.'/',false, $config);
- preg_match_all("#\<h2\>(.*)\ #Ui", $config_final, $titulo);
- preg_match_all("#<a href\=\"/download.php\?id\=(.*)\" title\=\"(.*)\"\>#Ui", $config_final, $val);
- echo '<?xml version="1.0" encoding="iso-8859-1"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
- <channel>
- <title>'.$titulo[1][0].'</title>
- <link>http://www.divxtotal.com/series/'.$serie.'/</link>
- <description>'.$titulo[1][0].'</description>
- <language>es-ES</language>
- <atom:link href="http://www.tuweb.com/series.php" />';
- 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>';
- echo ' </channel>
- </rss>';
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement