-1 && $prive_annonce==1 || $prive_annonce==0) { $contenu_annonce = mysql_result($requete,0,"contenu"); if (trim($contenu_annonce) <> '') { $image_annonce = mysql_result($requete,0,"image"); echo "

"; if ($image_annonce != "") { echo ""; } echo contenu_mep($contenu_annonce); echo "


"; } } echo "

Sondage

"; echo afficher_sondage($id_visiteur); echo "

Forum

"; echo afficher_topic_accueil($id_visiteur); echo "

Vidéos à télécharger


"; $i = "1"; while ($i != "3") { $image_hebdo = req_id("video_hebdo","image",$i,"0"); list($width_vignette,$height_vignette,$type,$attr) = getimagesize("images/hebdo/$image_hebdo"); $titre_hebdo = req_id("video_hebdo","titre",$i,"0"); $nbr_reactions = mysql_result(mysql_query("select posts from topic where id='-$i'"),0,0); // $nbr_reactions = mysql_num_rows(mysql_query("select * from post where id_topic='-$i'"))-1; echo ""; $i++; } echo "
"; echo lien("

"; echo lien("$titre_hebdo","video_download.php?id=$i","$titre_hebdo"); echo "
"; echo lien("$nbr_reactions commentaire".($nbr_reactions>1?'s':'')."","forum/lire.php?id=-$i","Réagissez sur cette video !"); echo "

"; echo "

News

"; $requete = mysql_query("SELECT * from news order by id desc LIMIT 0, 10"); $nbr_news = mysql_num_rows($requete); $i = "0"; WHILE ($i != $nbr_news) { echo afficher_news(mysql_result($requete,$i,"id"),$id_visiteur); echo "
"; $i++; } if (mysql_num_rows(mysql_query("SELECT * from news")) > "10") { echo "

"; echo lien("Archives des News","archives_news.php?debut=10","Consulter les archives des News"); echo "

"; } include 'interface_bas.php'; ?>