X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=modules%2Finclude%2Feuphorik_defines.hrl;h=bf6ec5b70299184a6c349687c21b09a71f89331e;hp=c0791b52ffaa3636882533a6cb11c9c94bf6ba7e;hb=2424ba818818a6bd0b547fa540742f9b54db990b;hpb=e82b363f65838828948a62ef4452e752743ef661 diff --git a/modules/include/euphorik_defines.hrl b/modules/include/euphorik_defines.hrl index c0791b5..bf6ec5b 100755 --- a/modules/include/euphorik_defines.hrl +++ b/modules/include/euphorik_defines.hrl @@ -1,51 +1,51 @@ -% Copyright 2008 Grégory Burri -% -% This file is part of Euphorik. -% -% Euphorik is free software: you can redistribute it and/or modify -% it under the terms of the GNU General Public License as published by -% the Free Software Foundation, either version 3 of the License, or -% (at your option) any later version. -% -% Euphorik is distributed in the hope that it will be useful, -% but WITHOUT ANY WARRANTY; without even the implied warranty of -% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -% GNU General Public License for more details. -% -% You should have received a copy of the GNU General Public License -% along with Euphorik. If not, see . - - -% Le temps d'attente après une erreur de login (mauvais login/pass) : une demie seconde -% Permet d'éviter (limiter) les attaques par dictionnaire +% Copyright 2008 Grégory Burri +% +% This file is part of Euphorik. +% +% Euphorik is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 3 of the License, or +% (at your option) any later version. +% +% Euphorik is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with Euphorik. If not, see . + + +% Le temps d'attente après une erreur de login (mauvais login/pass) : une demie seconde +% Permet d'éviter (limiter) les attaques par dictionnaire -define(TEMPS_ATTENTE_ERREUR_LOGIN, 500). % ms -% Un message est considéré comme du spam s'il est posté 1 seconde ou moins après le dernier posté +% Un message est considéré comme du spam s'il est posté 1 seconde ou moins après le dernier posté -define(DUREE_SPAM, 1000). % ms % Lorsque l'indice de spam d'un utilisateur atteind cette valeur alors il ne peut plus poster pendant un moment -define(INDICE_SPAM_MAX, 6). -% Un utilisateur ayant trop spamé est bloqué pendant ce temps +% Un utilisateur ayant trop spamé est bloqué pendant ce temps -define(DUREE_BLOCAGE_SPAM, 20000). % ms -% le temps qu'une ip est bannie après avoir voulu s'etre enregistré trop de fois trop rapidement +% le temps qu'une ip est bannie après avoir voulu s'etre enregistré trop de fois trop rapidement -define(TEMPS_BAN_FLOOD_REGISTER, 60 * 60 * 1000). % 1 heure : en ms % le temps entre deux tentatives de register pour compter un flood -define(TEMPS_FLOOD_REGISTER, 1500). % 1500 ms -% après 5 flood l'ip fautive est considérée comme bannie +% après 5 flood l'ip fautive est considérée comme bannie -define(NB_MAX_FLOOD_REGISTER, 5). -% le nombre max de troll qui peuvent être en attente d'être posté (tous les utilisateurs réunis) +% le nombre max de troll qui peuvent être en attente d'être posté (tous les utilisateurs réunis) -define(NB_MAX_TROLL_WAITING, 10). -% chaque admin peut proposer 1 seul troll à la fois +% chaque admin peut proposer 1 seul troll à la fois -define(NB_MAX_TROLL_WAITING_BY_USER, 2). -% Le jour ainsi que l'heure à laquelle est élu un nouveau troll (lundi à 3 heure du mat) +% Le jour ainsi que l'heure à laquelle est élu un nouveau troll (lundi à 3 heure du mat) -define(JOUR_ELECTION_TROLL, 1). % 1 = lundi -define(HEURE_ELECTION_TROLL, 3). % 3 heure du matin -% Le dossier utilisé pour le trie (qlc:keysort()) +% Le dossier utilisé pour le trie (qlc:keysort()) -define(KEY_SORT_TEMP_DIR, "/tmp").