View Single Post
  #1  
Old 6th November 2010, 01:58
lafouine022 lafouine022 is offline
Senior Member
 
Join Date: Feb 2010
P2P
Posts: 120
Default Rss Torrentfreak
PHP Code:
<?php
/*İİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİ
İ       Rss Torrentfreak by Fouini    İ             
İİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİ*/
require_once('global.php');
gzip();
dbconn(true);
loggedinorreturn(true);
maxsysop();
is_mod();
define ('UL_VERSION''1.1 by xam');
stdhead ();

$htmlout='';



$use_limit true;
$limit 15;
$xml file_get_contents('http://feed.torrentfreak.com/Torrentfreak/');

preg_match_all('/\<(title|pubDate|dc:creator|link|description)\>(.+?)\<\/\\1\>/i',$xml,$out,PREG_PATTERN_ORDER);

$feeds $out[2];
$c count($feeds);

$html begin_table (true);
for(
$i=5;$i<$c;$i+=5) {
  
$html .= '<h3><u>'.$feeds[$i].'</u></h3><font class="small">by '.$feeds[$i+3].' on '.$feeds[$i+2].'</font><br/><p>'.str_replace(array('<![CDATA[',']]>'),'',$feeds[$i+4]).'</p><br/><a href="'.$feeds[$i+1].'" target="_blank"><font class="small">Read more</font></a>';
  if(
$use_limit && $i >= ($limit*5))
  break;
}


echo 
$html ;
end_table ();
stdfoot();
?>
Reply With Quote
The Following 2 Users Say Thank You to lafouine022 For This Useful Post:
Marco (8th November 2010), mmisu120000 (6th November 2010)