From eeb00637e11a6dccc46762fc328536516e0338fb Mon Sep 17 00:00:00 2001 From: Antoine Pitrou <pitrou@free.fr> Date: Sat, 16 Mar 2002 13:35:32 +0000 Subject: [PATCH] =?UTF-8?q?Correction=20bug=20forums=20signal=C3=A9=20sur?= =?UTF-8?q?=20liste=20SPIP=20(par=20Ecran=20de=20Bureau)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecrire/controle_forum.php3 | 20 -------------------- ecrire/inc_presentation.php3 | 13 +------------ 2 files changed, 1 insertion(+), 32 deletions(-) diff --git a/ecrire/controle_forum.php3 b/ecrire/controle_forum.php3 index 039c9f5e10..240d6ddcaf 100644 --- a/ecrire/controle_forum.php3 +++ b/ecrire/controle_forum.php3 @@ -216,8 +216,6 @@ function controle_forum($request,$adresse_retour) { echo "<A HREF='controle_forum.php3?valid_forum=$id_forum&debut=$debut' onMouseOver=\"valider_message$id_forum.src='IMG2/valider-message-on.gif'\" onMouseOut=\"valider_message$id_forum.src='IMG2/valider-message-off.gif'\"><IMG SRC='IMG2/valider-message-off.gif' WIDTH=60 HEIGHT=52 NAME='valider_message$id_forum' ALIGN='right' BORDER=0></A>"; } - - echo "<BR>".forum_parent($id_forum); echo "<P align='justify'>".propre($forum_texte); @@ -225,24 +223,6 @@ function controle_forum($request,$adresse_retour) { if (strlen($forum_url_site) > 10 AND strlen($forum_nom_site) > 3) { echo "<P align='left'><FONT FACE='Verdana,Arial,Helvetica,sans-serif'><B><A HREF='$forum_url_site'>$forum_nom_site</A></B></FONT>"; } - - if ($mots_cles_forums == "oui"){ - - $query_mots = "SELECT * FROM spip_mots AS mots, spip_mots_forum AS lien WHERE lien.id_forum = '$id_forum' AND lien.id_mot = mots.id_mot"; - $result_mots = mysql_query($query_mots); - - while ($row_mots = mysql_fetch_array($result_mots)) { - $id_mot = $row_mots['id_mot']; - $titre_mot = propre($row_mots['titre']); - $type_mot = propre($row_mots['type']); - echo "<li> <b>$type_mot :</b> $titre_mot"; - } - - } - - - - echo "</FONT>"; echo "</TD></TR></TABLE>"; diff --git a/ecrire/inc_presentation.php3 b/ecrire/inc_presentation.php3 index 956338c1f6..3cb19d4881 100644 --- a/ecrire/inc_presentation.php3 +++ b/ecrire/inc_presentation.php3 @@ -593,18 +593,7 @@ function afficher_forum($request, $adresse_retour, $controle = "non", $recurrenc ."&titre_message=".rawurlencode($titre); echo "<b><a href=\"$url\">Répondre à ce message</a></b></font>"; } - - if ($mots_cles_forums == "oui"){ - $query_mots = "SELECT * FROM spip_mots AS mots, spip_mots_forum AS lien WHERE lien.id_forum = '$id_forum' AND lien.id_mot = mots.id_mot"; - $result_mots = mysql_query($query_mots); - while ($row_mots = mysql_fetch_array($result_mots)) { - $id_mot = $row_mots['id_mot']; - $titre_mot = propre($row_mots['titre']); - $type_mot = propre($row_mots['type']); - echo "<li> <b>$type_mot :</b> $titre_mot"; - } - } - + echo "</font>"; echo "</td></tr></table>"; if ($statut == "off" OR $statut == "prop") { -- GitLab