/*
======================================================================
lastRSS
======================================================================
*/
// include lastRSS
include "/hsphere/local/home/academic/designerfashionreviews.com/_scripts/lastRSS.php";
// Create lastRSS object
$rss = new lastRSS;
// Set cache dir and cache time limit (1200 seconds)
// (don't forget to chmod cache dir to 777 to allow writing)
$rss->cache_dir = ‘/hsphere/local/home/academic/designerfashionreviews.com/_scripts/cache’;
$rss->cache_time = 3600;
$AffLink = ‘/cgi-bin/axs/ax.pl?http://www.jdoqocy.com/sk82wktqks7AH8GEGA798CCBB9F?sid=Feed&url=’;
// Try to load and parse RSS file
if ($rs = $rss->get(’http://www.myjewelrybox.com/media/rss/WhatsnewatMJB.xml’)) {
// Show website logo (if presented)
if ($rs[image_url] != ”) {
echo “
\n”;
}
// Show clickable website title
// echo “$rs[title]
\n”;
// Show website description
// echo “$rs[description]
\n”;
// Show last published articles (title, link, description)
echo “Newest Jewelry Items from My Jewelry Box:
\n”;
foreach($rs['items'] as $item) {
$fix_openBracket = str_replace(”<”, “<", $item['description']);
$fix_closeBracket = str_replace(">", ">“, $fix_openBracket);
$fix_imageAfflink = str_replace(”
$fix_quotes = str_replace(""", "\"", $fix_imageAfflink);
$fix_adminLink = str_replace("admpnl.", "www.", $fix_quotes);
$fix_imageSizefixed = str_replace("img src", "img width=\"159\" height=\"122\" src", $fix_adminLink);
$filtered_description = $fix_imageSizefixed;
echo "\t“.$item['title'].”
” . $filtered_description . “
\n”;
}
echo “\n”;
}
else {
echo “Error: It’s not possible to reach RSS file…\n”;
}
?>

No comments
Comments feed for this article
Trackback link: http://www.designerfashionreviews.com/newest-items-my-jewelry-box/trackback/