parse();
if (!$ch = $r->getChannelInfo()) echo "error";
$site_title = mb_convert_encoding($ch['title'], $code, "UTF-8,EUC-JP,SJIS");
$site_title = htmlspecialchars($site_title);
$site_link = $ch['link'];
// ヘッダ
$num = ($_GET['n']) ? $_GET['n'] : count($r->getItems());
if($num>1){ $num=1; }
for ($i=0; $i<$num; $i++) {
$val = $r->getItems();
$title = mb_convert_encoding(strip_tags($val[$i]['title']), $code, "UTF-8,EUC-JP,SJIS");
$desc = mb_convert_encoding(strip_tags($val[$i]['description']), $code, "UTF-8,EUC-JP,SJIS");
$link = htmlspecialchars($val[$i]['link']);
$date = $val[$i]['dc:date'];
$date=strtotime(str_replace("T", " ", substr($date, 0, 19)));
//広告以外を表示
if(!strpos(" ".$title, "PR")){
?>
";
}
?>
(続きを読む)
}
}
?>