PHP Code:
<?
extract($_REQUEST);
?>
<?php
$feed = "http://feeds.net.hr/c/33283/f/564662/index.rss";
$fp = @fopen($feed,"r");
if(!$fp)
{
echo"Cannot Connect<br/>";
echo"Try Again Later<br/>";
} else
{
while(!feof($fp)) $raw .= @fgets($fp, 4096);
fclose($fp);
if( eregi("<item>(.*)</item>", $raw, $rawitems ) ) {
$items = explode("<item>", $rawitems[0]);
$p = 3;
if ($npage == "")$npage = "1";
$countfile= count($items);
$countfile=$countfile-2;
$first=($npage*$p)-$p;
$npages = ceil($countfile / $p);
$next_arrays=($first+($p-1));
if($next_arrays>$countfile)$next_arrays=$countfile;
for ($i=($first); $i <= $next_arrays; $i++) {
eregi("<title>(.*)</title>",$items[$i+1], $title );
eregi("<link>(.*)</link>",$items[$i+1], $url );
eregi("<description>(.*)</description>",$items[$i+1], $description);
#$title[1] = str_replace("'", "", $title[1]);
$title[1] = str_replace("&", "&", $title[1]);
$title[1] = str_replace("<", "<", $title[1]);
$title[1] = str_replace(">", ">", $title[1]);
$title[1] = str_replace("<![CDATA[", "", $title[1]);
$title[1] = str_replace("]]>", "", $title[1]);
$description[1] = str_replace("&", "&", $description[1]);
$description[1] = str_replace("<", "<", $description[1]);
$description[1] = str_replace(">", ">", $description[1]);
$description[1] = str_replace("'", "'", $description[1]);
$description[1] = str_replace("<![CDATA[", "", $description[1]);
$description[1] = str_replace("]]>", "", $description[1]);
$url[1] = str_replace("<![CDATA[", "", $url[1]);
$url[1] = str_replace("]]>", "", $url[1]);
$url[1] = str_replace("<![CDATA[", "", $url[1]);
echo "<h1>$title[1]</h1>";
echo "<div class=\"text\">$description[1]</div><br/>";
echo "<br/>----<br/>";