")) {*/ $sitedata=get_sitedata($source); extract($sitedata); $news=parse_rss2($source); /*} else { echo "XML not valid"; unset($sitedata); unset($source); unset($news); }*/ /************************ partie affichage *************************/ extract($themeset, EXTR_OVERWRITE); if (!isset($nbnews)) { $nbnews = $index_title; } $ga = 0; while($ga<=$nbnews-1) { /* $news[$ga]["title"] = str_replace("é","é", $news[$ga]["title"]); $news[$ga]["title"] = str_replace("è","è", $news[$ga]["title"]); $news[$ga]["title"] = str_replace("ô","ô", $news[$ga]["title"]); $news[$ga]["title"] = str_replace("ê","ê", $news[$ga]["title"]); $news[$ga]["title"] = str_replace("ë","ë", $news[$ga]["title"]); $news[$ga]["title"] = str_replace("à","à", $news[$ga]["title"]); $news[$ga]["title"] = str_replace("ç","ç", $news[$ga]["title"]); $news[$ga]["title"] = str_replace("ï","ï", $news[$ga]["title"]); $news[$ga]["title"] = str_replace("û","û", $news[$ga]["title"]); $news[$ga]["title"] = str_replace("î","î", $news[$ga]["title"]); $news[$ga]["title"] = str_replace("ö","ö", $news[$ga]["title"]); $news[$ga]["title"] = str_replace("’","'", $news[$ga]["title"]); $news[$ga]["title"] = str_replace("“","«", $news[$ga]["title"]); $news[$ga]["title"] = str_replace("”","»", $news[$ga]["title"]); $news[$ga]["title"] = str_replace("Â","", $news[$ga]["title"]); $news[$ga]["title"] = str_replace("»","»", $news[$ga]["title"]); $news[$ga]["title"] = str_replace("«","«", $news[$ga]["title"]);*/ $news[$ga]["link"] = str_replace("&","&", $news[$ga]["link"]); $news[$ga]["link"] = str_replace("[ampersand]","&", $news[$ga]["link"]); $news[$ga]["title"] = str_replace("[ampersand]","&", $news[$ga]["title"]); $news[$ga]["title"] = str_replace("[agrave]","à", $news[$ga]["title"]); $news[$ga]["title"] = str_replace("[eacute]","é", $news[$ga]["title"]); $news[$ga]["title"] = str_replace("[egrave]","è", $news[$ga]["title"]); $news[$ga]["title"] = str_replace("[ugrave]","ù", $news[$ga]["title"]); $news[$ga]["title"] = str_replace("[ecirc]","ê", $news[$ga]["title"]); $news[$ga]["title"] = str_replace("[icirc]","î", $news[$ga]["title"]); $news[$ga]["title"] = str_replace("[ccedil]","ç", $news[$ga]["title"]); //echo "".htmlspecialchars($news[$ga++]["title"])."
\n"; echo "".$news[$ga++]["title"]."
\n"; } // libération des variables @array_splice($item_title,0); @array_splice($item_link,0); unset($rss_ver); unset($image_url); unset($image_localurl); unset($image_title); unset($image_width); unset($image_height); unset($textinput_title); unset($textinput_description); unset($textinput_name); unset($textinput_link); unset($source); // merci et à bientôt } else echo "Fichier source introuvable ou corrompu ($source)"; ?>