Dotclear

Changeset 1518


Ignore:
Timestamp:
09/27/09 13:31:17 (14 years ago)
Author:
JcDenis
Message:

whiteListCom 0.2:

  • Changed to antispam system
Location:
plugins/whiteListCom
Files:
2 added
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • plugins/whiteListCom/_define.php

    r1463 r1518  
    1515$this->registerModule( 
    1616     /* Name */               "Whitelist comments", 
    17      /* Description*/         "Whitelist for comment moderation", 
     17     /* Description*/              "Whitelists for comment moderation", 
    1818     /* Author */             "JC Denis", 
    19      /* Version */            '0.1', 
    20      /* Permissions */        'admin' 
     19     /* Version */            '0.2', 
     20     /* Permissions */             'admin', 
     21     /* Priority */           200 
    2122); 
    22      /* date */          #20090916 
     23     /* date */          #20090927 
    2324?> 
  • plugins/whiteListCom/_prepend.php

    r1463 r1518  
    1515global $__autoload, $core; 
    1616 
     17$__autoload['whiteListCom'] =  
     18     dirname(__FILE__).'/inc/lib.whitelistcom.php'; 
     19 
    1720$__autoload['whiteListComBehaviors'] =  
    18      dirname(__FILE__).'/inc/lib.whitelistcom.behaviors.php'; 
     21     dirname(__FILE__).'/inc/lib.whitelistcom.php'; 
    1922 
    20 $core->addBehavior( 
    21      'adminBeforeBlogSettingsUpdate', 
    22      array('whiteListComBehaviors','adminBeforeBlogSettingsUpdate') 
    23 ); 
     23$__autoload['whiteListComReservedFilter'] =  
     24     dirname(__FILE__).'/inc/lib.whitelistcom.php'; 
    2425 
    25 $core->addBehavior( 
    26      'adminBlogPreferencesForm', 
    27      array('whiteListComBehaviors','adminBlogPreferencesForm') 
    28 ); 
     26$__autoload['whiteListComReservedFilter'] =  
     27     dirname(__FILE__).'/inc/lib.whitelistcom.php'; 
    2928 
    30 $core->addBehavior( 
    31      'publicBeforeCommentPreview', 
    32      array('whiteListComBehaviors','publicBeforeCommentPreview') 
    33 ); 
     29# This filter is used only if comments are moderates 
     30if (!$core->blog->settings->comments_pub) 
     31{ 
     32     $core->spamfilters[] = 'whiteListComModeratedFilter'; 
     33     $core->addBehavior('publicAfterCommentCreate', 
     34          array('whiteListComBehaviors','switchStatus') 
     35     ); 
     36} 
    3437 
    35 $core->addBehavior( 
    36      'publicBeforeCommentCreate', 
    37      array('whiteListComBehaviors','publicBeforeCommentCreate') 
    38 ); 
    39  
     38$core->spamfilters[] = 'whiteListComReservedFilter'; 
    4039?> 
  • plugins/whiteListCom/locales/fr/main.lang.php

    r1463 r1518  
    11<?php 
    22// Language: français  
    3 // Module: whiteListCom - 0.0.1 
    4 // Date: 2009-09-16 02:19:51  
     3// Module: whiteListCom - 0.2 
     4// Date: 2009-09-27 11:09:28  
    55// Author: , jcdenis@gdwd.com 
    6 // Translated with dcTranslater - 0.2.4  
     6// Translated with dcTranslater - 0.2.5  
    77 
    8 #inc/lib.whitelistcom.behaviors.php:104 
    9 $GLOBALS['__l10n']['This name is reserved to another people, choose another one.'] = 'Ce nom est réservé à une autre personne, choisissez-en un autre.'; 
     8#inc/lib.whitelistcom.php:23 
     9$GLOBALS['__l10n']['Whitelist of unmoderated authors'] = 'Liste blanche des auteurs noms modèrés'; 
    1010 
    11 #inc/lib.whitelistcom.behaviors.php:124 
    12 $GLOBALS['__l10n']['Comment moderation'] = 'Modèration des commentaires'; 
     11#inc/lib.whitelistcom.php:193 
     12$GLOBALS['__l10n']['Check the users who can make comments without being moderated.'] = 'Cocher les utilisateurs qui peuvent faire des commentaires sans être modèrés.'; 
    1313 
    14 #inc/lib.whitelistcom.behaviors.php:125 
    15 $GLOBALS['__l10n']['If you moderate comments, you can use a white list of people whose comments will be published directly.'] = 'Si vous modèrez les commentaires, vous pouvez utiliser un liste des personnes dont le commentaire sera directement publié.'; 
     14#inc/lib.whitelistcom.php:74 
     15$GLOBALS['__l10n']['Posts authors list'] = 'Liste des auteurs de billets'; 
    1616 
    17 #inc/lib.whitelistcom.behaviors.php:129 
    18 $GLOBALS['__l10n']['Use the publication of comments of the whitelist'] = 'Utiliser la publication des commentaires de la liste blanche'; 
     17#inc/lib.whitelistcom.php:194 
     18$GLOBALS['__l10n']['Comments authors list'] = 'Liste des auteurs de commentaires'; 
    1919 
    20 #inc/lib.whitelistcom.behaviors.php:130 
    21 $GLOBALS['__l10n']['You must enable moderation to use this.'] = 'Vous devez activer la modération pour utiliser cette option.'; 
     20#inc/lib.whitelistcom.php:133 
     21$GLOBALS['__l10n']['Whitelist of reserved names of users'] = 'Liste blanche des noms d\'utilisateurs réservés'; 
    2222 
    23 #inc/lib.whitelistcom.behaviors.php:134 
    24 $GLOBALS['__l10n']['Use the block of reserved names whitelist'] = 'Utiliser le blocage des noms réservés de la liste blanche'; 
    25  
    26 #inc/lib.whitelistcom.behaviors.php:135 
    27 $GLOBALS['__l10n']['This works even if moderation is not enabled.'] = 'Cette option fonctionne même si la modèration n\'est pas activée.'; 
    28  
    29 #inc/lib.whitelistcom.behaviors.php:138 
    30 $GLOBALS['__l10n']['White list:'] = 'Liste blanche :'; 
    31  
    32 #inc/lib.whitelistcom.behaviors.php:142 
    33 $GLOBALS['__l10n']['Write white list like email1;name1|email2;name2|email3...'] = 'Ecrire la liste blanche comme cela email1;nom1|email2;nom2|email3...'; 
     23#inc/lib.whitelistcom.php:166 
     24$GLOBALS['__l10n']['This name is reserved to an other user.'] = 'Ce nom est réservé à un autre utilisateur.'; 
    3425 
    3526?> 
  • plugins/whiteListCom/locales/fr/main.po

    r1463 r1518  
    11# Language: français 
    2 # Module: whiteListCom - 0.0.1 
    3 # Date: 2009-09-16 02:19:51 
     2# Module: whiteListCom - 0.2 
     3# Date: 2009-09-27 11:09:28 
    44# Author: , jcdenis@gdwd.com 
    5 # Translated with dcTranslater - 0.2.4 
     5# Translated with dcTranslater - 0.2.5 
    66 
    77msgid "" 
    88msgstr "Content-Type: text/plain; charset=UTF-8\n" 
    99 
    10 #: inc/lib.whitelistcom.behaviors.php:104 
    11 msgid "This name is reserved to another people, choose another one." 
    12 msgstr "Ce nom est réservé à une autre personne, choisissez-en un autre." 
     10#: inc/lib.whitelistcom.php:23 
     11msgid "Whitelist of unmoderated authors" 
     12msgstr "Liste blanche des auteurs noms modèrés" 
    1313 
    14 #: inc/lib.whitelistcom.behaviors.php:124 
    15 msgid "Comment moderation" 
    16 msgstr "Modèration des commentaires" 
     14#: inc/lib.whitelistcom.php:193 
     15msgid "Check the users who can make comments without being moderated." 
     16msgstr "Cocher les utilisateurs qui peuvent faire des commentaires sans être modèrés." 
    1717 
    18 #: inc/lib.whitelistcom.behaviors.php:125 
    19 msgid "If you moderate comments, you can use a white list of people whose comments will be published directly." 
    20 msgstr "Si vous modèrez les commentaires, vous pouvez utiliser un liste des personnes dont le commentaire sera directement publié." 
     18#: inc/lib.whitelistcom.php:74 
     19msgid "Posts authors list" 
     20msgstr "Liste des auteurs de billets" 
    2121 
    22 #: inc/lib.whitelistcom.behaviors.php:129 
    23 msgid "Use the publication of comments of the whitelist" 
    24 msgstr "Utiliser la publication des commentaires de la liste blanche" 
     22#: inc/lib.whitelistcom.php:194 
     23msgid "Comments authors list" 
     24msgstr "Liste des auteurs de commentaires" 
    2525 
    26 #: inc/lib.whitelistcom.behaviors.php:130 
    27 msgid "You must enable moderation to use this." 
    28 msgstr "Vous devez activer la modération pour utiliser cette option." 
     26#: inc/lib.whitelistcom.php:133 
     27msgid "Whitelist of reserved names of users" 
     28msgstr "Liste blanche des noms d'utilisateurs réservés" 
    2929 
    30 #: inc/lib.whitelistcom.behaviors.php:134 
    31 msgid "Use the block of reserved names whitelist" 
    32 msgstr "Utiliser le blocage des noms réservés de la liste blanche" 
     30#: inc/lib.whitelistcom.php:166 
     31msgid "This name is reserved to an other user." 
     32msgstr "Ce nom est réservé à un autre utilisateur." 
    3333 
    34 #: inc/lib.whitelistcom.behaviors.php:135 
    35 msgid "This works even if moderation is not enabled." 
    36 msgstr "Cette option fonctionne même si la modèration n'est pas activée." 
    37  
    38 #: inc/lib.whitelistcom.behaviors.php:138 
    39 msgid "White list:" 
    40 msgstr "Liste blanche :" 
    41  
    42 #: inc/lib.whitelistcom.behaviors.php:142 
    43 msgid "Write white list like email1;name1|email2;name2|email3..." 
    44 msgstr "Ecrire la liste blanche comme cela email1;nom1|email2;nom2|email3..." 
    45  
  • plugins/whiteListCom/release.txt

    r1463 r1518  
     10.2 20090927 
     2 * Changed to antispam system 
     3 
    140.1 20090916 
    25 * First lab release 
Note: See TracChangeset for help on using the changeset viewer.

Sites map