comparison comment.php @ 79:7f0347d4c75e

Commentaires: On passe a une modération a priori
author Franck Deroche <root@hedwige.defr.net>
date Tue, 16 Feb 2010 22:16:08 +0100
parents e43b756548b4
children 0b635e3ae1a1 1f2410012dbc
comparison
equal deleted inserted replaced
78:80bb1ca0114e 79:7f0347d4c75e
33 ); 33 );
34 $ak = new akismet(BLOG_URL, AKISMET_API_KEY, $comment); 34 $ak = new akismet(BLOG_URL, AKISMET_API_KEY, $comment);
35 if(!$ak->errorsExist()) 35 if(!$ak->errorsExist())
36 $visibleBool = !$ak->isSpam(); 36 $visibleBool = !$ak->isSpam();
37 else 37 else
38 $visibleBool = true; 38 $visibleBool = false;
39 39
40 // Suppression d'un gros lourd 40 // Suppression d'un gros lourd
41 $visibleBool &= (ereg('^ma[0-9]+zda$', $Auteur) === false); 41 $visibleBool &= (ereg('^ma[0-9]+zda$', $Auteur) === false);
42 $visible = $visibleBool ? 1 : 0; 42 $visible = $visibleBool ? 1 : 0;
43 43