root/antispam/trunk/INSTALL.dotclear

Revision 217, 0.7 kB (checked in by haypo, 9 months ago)

default conf: only send email with score >= 0.1

  • Property svn:eol-style set to native
Line 
1 Open inc/classes/class.blog.php. First add to the top:
2     require_once( dirname(__FILE__).'/dotclear_antispam.php' );
3
4 Then, just before,
5                 # Insertion
6                 $insReq = 'INSERT INTO '.$this->t_comment(...);
7
8 add the following lines:
9                 if (dotclear_antispam($auteur, $email, $site, $content))
10                 {
11                     $this->setError(
12                         '<b>Votre message est considere comme spam</b> ! '.
13                         '<a href="http://www.haypocalc.com/wiki/Victor_Stinner">Contactez Victor</a> '.
14                         'si vous pensez le contraire.',
15                         1000);
16                     return false;
17                 }
18
19 In layout/prepend.php, add:
20     addComment(..., $c_content)
Note: See TracBrowser for help on using the browser.