comparison comment.php @ 1:7dec52982000

Affichage uniquement des messages publiquement visible (non spam)
author Franck Deroche <webmaster@defr.org>
date Sat, 20 Oct 2007 14:25:20 +0200
parents 629389204276
children 116ef98b4cb5
comparison
equal deleted inserted replaced
0:629389204276 1:7dec52982000
48 <h2>{$Titre} | <span class='Date'>{$dateFormatee}</span></h2> 48 <h2>{$Titre} | <span class='Date'>{$dateFormatee}</span></h2>
49 {$mood} 49 {$mood}
50 {$Mess}<br /> 50 {$Mess}<br />
51 {$infos} 51 {$infos}
52 </div>"); 52 </div>");
53 $Data->Query("SELECT * FROM Commentaires Where MessId={$id} ORDER BY num_comm"); 53 $Data->Query("SELECT * FROM Commentaires Where MessId={$id} AND Visible=1 ORDER BY num_comm");
54 $defaultGravatar = urlencode("http://defr.org/Misc/NoGravatar.png"); 54 $defaultGravatar = urlencode("http://defr.org/Misc/NoGravatar.png");
55 while(0 !== ($row = $Data->GetRow())) { 55 while(0 !== ($row = $Data->GetRow())) {
56 $dateFormatee = strftime(" à %Hh%M le <span class='Date'>%A %d %B %Y</span>", strtotime($row['DateComment'])); 56 $dateFormatee = strftime(" à %Hh%M le <span class='Date'>%A %d %B %Y</span>", strtotime($row['DateComment']));
57 $AdresseMail = $row['AdresseMail']; 57 $AdresseMail = $row['AdresseMail'];
58 $grav_id = md5($AdresseMail); 58 $grav_id = md5($AdresseMail);