'; $xml .='vs-webzine.com'; $xml .='http://www.vs-webzine.com'; $xml .='Les dernieres nouvelles'; $xml .='webmaster@vs-webzine.com'; $xml .='fr'; $xml .='VS-webzine'; $xml .='Vs-webzine'; $xml .='webmaster@vs-webzine.com'; $result = mysql_query("SELECT id,date,url_image,signature,news,url_source,nom_source FROM MyNewsInfos WHERE titre!='HERO' and titre!='NHERO' ORDER BY id desc LIMIT 0, 25", $db); while(list($id, $date, $url_image, $signature, $news, $url_source,$nom_source) = mysql_fetch_row($result)) { $date = substr($date,0,5); $news = str_replace("à","a",$news); $titre = 'News: '.substr(utf8_encode ($news),0,80).'...'; $titre = stripslashes(trim($titre)); $titre = strip_tags($titre); $titre= str_replace("
",'
',$titre); $titre = str_replace("&",'&',$titre); $titre = str_replace("<","<",$titre); $titre = str_replace(">",">",$titre); $titre = str_replace("–"," ",$titre); $lien = 'http://www.vs-webzine.com/news.php?page=news_comment-single&id_news='.$id; $lien = str_replace("&",'&',$lien); $xml .=''; $xml .='webmaster@vswebzine.com'; $xml .=''.$titre.''; $xml .=''.$lien.''; $xml .=''.$date.' GMT'; $xml .=''.$lien.''; $xml .=''.$lien.''; $xml .=''; $xml .= 'Lire la news complete sur VS-webzine.com'; $xml .=''; } $result = mysql_query("SELECT id,titre,date,url_image,signature,nom_source FROM MyKronikInfos where valider = ' ' ORDER BY date_verif desc LIMIT 0, 18", $db); while(list($id, $titre, $date, $url_image,$signature, $nom_source) = mysql_fetch_row($result)) { $date = substr($date,0,5); $titre = 'Kro:'.stripslashes(trim($titre)); $titre = strip_tags($titre); $titre= str_replace("
",'
',$titre); $titre = str_replace("&",'&',$titre); $titre = str_replace("<","<",$titre); $titre = str_replace(">",">",$titre); $titre = str_replace("–"," ",$titre); $lien = 'http://www.vs-webzine.com/news.php?page=kronik&id_news='.$id; $lien = str_replace("&",'&',$lien); $xml .=''; $xml .='webmaster@vs-webzine.com'; $xml .=''.$titre.''; $xml .=''.$lien.''; $xml .=''.$date.' GMT'; $xml .=''.$lien.''; $xml .=''.$lien.''; $xml .=''; $xml .= 'Lire la chronique sur VS-webzine.com'; $xml .=''; } mysql_close(); $xml .='
'; echo $xml; //$fichier2=fopen("rss.xml","w"); //fputs($fichier2, $xml); //fclose($fichier2); ?>