<?php $fichier_xml = 'http://9deux.fr/rss.xml'; $nombre_limite = 5; // Nombre de news à afficher $file = fopen($fichier_xml, 'r'); if($file){ while(!feof($file)) $raw .= fread($file, 32000); fclose($file); if(eregi('<item>(.*)</item>', $raw, $rawitems)){ $items = explode('<item>', $rawitems[0]); $nb = count($items); $maximum = (($nb-1) < $nombre_limite) ? ($nb-1) : $nombre_limite; for ($i=0; $i<$maximum; $i++){ eregi('<title>(.*)</title>', $items[$i+1], $title); eregi('<guid>(.*)</guid>', $items[$i+1], $link); $getid = explode('-', $link[1]); $id = $getid[2]; echo '- <a href="http://9deux.fr/partenariats.html?id='.$id.'">'.$title[1].'</a>'; } } } ?>
<script type="text/javascript"> <!-- // Les couleurs neufdeux_newsbord = "#BE8513"; // bordure du bloc neufdeux_newsback = "#FDF5E6"; // fond du bloc neufdeux_newstext = "#525151"; // textes et titre "Les news du 9deux" neufdeux_newslink = "#BE8513"; // des liens // La taille du bloc neufdeux_newswidh = 200; // largeur (en pixel) neufdeux_newsheig = 200; // hauteur (en pixel) //--> </script> <script type="text/javascript" src="http://9deux.fr/news9deux.js"></script>

<a href="http://9deux.fr/partenariats.html?logo"> <img src="http://9deux.fr/style/BlueStyle/img/logo.gif" alt="" /> </a>

<a href="http://9deux.fr/partenariats.html?logo"> <img src="http://9deux.fr/style/NewStyle/img/logo.gif" alt="" /> </a>

<a href="http://9deux.fr/partenariats.html?logo"> <img src="http://9deux.fr/style/OldStyle/img/logo.gif" alt="" /> </a>

<a href="http://9deux.fr/partenariats.html?logo"> <img src="http://9deux.fr/style/RedStyle/img/logo.gif" alt="" /> </a>

<a href="http://9deux.fr/partenariats.html?logo"> <img src="http://9deux.fr/style/ZunStyle/img/logo.gif" alt="" /> </a>