', $texte); $texte= str_replace('</b>', '', $texte); $texte= str_replace('<i>', '', $texte); $texte= str_replace('</i>', '', $texte); $texte= str_replace('<u>', '', $texte); $texte= str_replace('</u>', '', $texte); $texte= str_replace('<B>', '', $texte); $texte= str_replace('</B>', '', $texte); $texte= str_replace('<I>', '', $texte); $texte= str_replace('</I>', '', $texte); $texte= str_replace('<U>', '', $texte); $texte= str_replace('</U>', '', $texte); $texte= str_replace('<br>', '
', $texte); $texte= str_replace('<BR>', '
', $texte); $texte= str_replace('<ul>', '', $texte); $texte= str_replace('<li>', '
  • ', $texte); $texte= str_replace('<LI>', '
  • ', $texte); $texte= str_replace('<h1>', '

    ', $texte); $texte= str_replace('</h1>', '

    ', $texte); $texte= str_replace('<H1>', '

    ', $texte); $texte= str_replace('</H1>', '

    ', $texte); $texte= str_replace('<center>', '
    ', $texte); $texte= str_replace('<CENTER>', '
    ', $texte); $texte= str_replace('</center>', '
    ', $texte); $texte= str_replace('</CENTER>', '
    ', $texte); $texte= str_replace('&nbsp;', ' ', $texte); $texte1=strtolower($texte); $interd1="http"; $cpt1=substr_count($texte1,$interd1); $interd2="www"; $cpt2=substr_count($texte1,$interd2); $cptt=($cpt1+$cpt2); if ($cptt>0 ) { $texte="Votre texte ne peut pas être accepté.
    Demandez au maître pourquoi."; } echo "O.K. J'enregistre..."; if (isset($_POST['bouton2'])) { $space="     "; $fich="texte.txt"; $fp=fopen("$fich","a+"); $tete="$nom $space - $space $ecole $space - $space $space $ladate $space - $space Adresse IP: $ip\n
    \n"; $fin="$texte
    \n
    \n"; fputs($fp,$tete); fputs($fp,$fin); fclose($fp); } else { // par défaut, c'est le bouton 1, même si on ne clique pas/ $fich="prevu_$nom.txt"; $fp=fopen("$fich","w+"); $fin="$texte
    \n
    \n"; fputs($fp,$fin); fclose($fp); echo "\n"; } ?>