Discover the Best Caribbean Cruise Lines
Enjoy the grace of Alaska with Royal Caribbean Alaskan cruises
Find what you salacity to compare Caribbean cruises
Great Caribbean cruise pooh-pooh vacations
It Is Smoke Free In This Paradise : Take A Caribbean Cruise With Fellow Non-Smokers
Live the catastrophe with Royal Caribbean cruise racket cruises
Royal Caribbean Cruises! Where Their Slogan Is Get Out There further They Mean It
Take A Caribbean Cruise
The Best Caribbean Cruises
Try a Caribbean Carnival Cruise
|Articles Page 1| |Articles Page 2| |Articles Page 3| |Articles Page 4|
cache_dir = $dir;
$rss->cache_time = 1800;
$randomOrder = 0;
$rs = $rss->get('http://www.findarticles.com/p/search?tb=art&qt=cruise&so=date&pi=rss');
$random_items = rand(3,7);
$itemcount = 0;
$usehtml = 0;
if ($randomOrder) shuffle($rs[items]);
foreach($rs[items] as $item) {
if ($itemcount >= $random_items) break;
$text=stripslashes($item[title]);
$text = str_replace('<','<',html_entity_decode($text));
$text = str_replace('','',$text);
$title = $text;
if (!$usehtml){
$text=strip_tags(html_entity_decode(str_replace('<','<',$text)));
$text_array = explode(' ',$text);
$titleLenght=rand(10,20);
$title = implode(' ',array_slice($text_array, 0,$titleLenght));
}
$text=stripslashes($item[description]);
$text = str_replace('<','<',html_entity_decode($text));
$text = str_replace('','',$text);
$text = str_replace('[!]','',$text);
$description = $text;
if (!$usehtml){
$text=strip_tags(html_entity_decode(str_replace('<','<',$text)));
$text_array = explode(' ',$text);
$descLenght=rand(50,100);
$description = implode(' ',array_slice($text_array, 0,$descLenght));
}
$template = stripslashes('\"><#rss_title#> <#rss_description#>
');
$template = str_replace('<#rss_link#>',$item[link],$template);
$template = str_replace('<#rss_title#>',$title,$template);
$template = str_replace('<#rss_description#>',$description,$template);
echo $template;
$itemcount++;
}
?>
|