From b77a393289a820af940e3418a5ac43fc5242df68 Mon Sep 17 00:00:00 2001 From: Fil <fil@rezo.net> Date: Mon, 12 Aug 2002 01:56:57 +0000 Subject: [PATCH] signaler pourquoi on refuse un message de forum --- inc-forum.php3 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/inc-forum.php3 b/inc-forum.php3 index 7e426540e0..624d0a8182 100644 --- a/inc-forum.php3 +++ b/inc-forum.php3 @@ -213,7 +213,11 @@ function retour_forum($id_rubrique, $id_parent, $id_article, $id_breve, $id_synd } - if ((strlen($texte) >= 10 OR $presence_mots) AND (strlen($titre) >= 3 OR $afficher_texte=="non")) + if (strlen($texte) < 10 AND !$presence_mots) + $ret .= "<p><div align='right'><font color=red><b>Attention !</b> votre message fait moins de dix caractères.</font></div>\n"; + else if (strlen($titre) < 3 AND $afficher_texte <> "non") + $ret .= "<p><div align='right'><font color=red><b>Attention !</b> votre titre fait moins de trois caractères.</font></div>\n"; + else $ret .= "\n<p><DIV ALIGN='right'><INPUT TYPE='submit' NAME='confirmer' CLASS='spip_bouton' VALUE='Message définitif : envoyer au site'></DIV>"; $ret .= "</div>\n<p>"; -- GitLab