| ";
$rq="SELECT M.*,T.forum FROM forum_message M INNER JOIN forum_topic T ON M.id_topic=T.id_topic WHERE M.id_topic='$id_topic' ORDER BY date_message LIMIT 1";
$res=mysqli_query($GLOBALS['iconnexion'],$rq);
$total=mysqli_num_rows($res);
if($ligne=mysqli_fetch_array($res))
{
extract($ligne);
if($forum!="g0" && $forum!="g")
{
$id_groupe=trim($forum,"g");
$groupe=new groupe($id_groupe);
$pic=" |
"; $message=str_replace("
$pic
".stripslashes($message)."
"; //OLD echo "
".stripslashes($message)."
"; $rq2="SELECT id_tag FROM forum_topic_tags WHERE id_topic=$id_topic"; $res2=mysqli_query($GLOBALS['iconnexion'],$rq2); if(mysqli_num_rows($res2)) { while($ligne2=mysqli_fetch_array($res2)) { if($ligne2['id_tag']!="null") { if(preg_match('/^g/',$ligne2['id_tag'])) { $groupe = new groupe(str_replace('g','',$ligne2['id_tag'])); $FinalTagList[]='#'.$groupe->nom_groupe.''; } else { if($AllNewsTags[$ligne2['id_tag']]) $FinalTagList[]='#'.$AllNewsTags[$ligne2['id_tag']].''; } } } if($FinalTagList) echo "
Tags : ".implode(" ",$FinalTagList)."
";
}
// if( (LANG!=LANG_TEXT) && !isset($_GET['translate']))
// echo '';
}
echo '
'.$common['comments'].'
//'.$total.' '.display("commentaire$pluriel","Comment$pluriel")."
"; $rows = $stmt->fetchAll(PDO::FETCH_ASSOC); foreach($rows as $ligne) { extract($ligne); // echo " //
".stripslashes($message)."
'; // if($total>0) echo ' '.$txt_main[6].' '; if($total>10) echo "".$common['SeeMore'].""; echo ''; // cadre(); } echo ' '; include("footer.php"); ?>