1 % Copyright 2008 Grégory Burri
\r
3 % This file is part of Euphorik.
\r
5 % Euphorik is free software: you can redistribute it and/or modify
\r
6 % it under the terms of the GNU General Public License as published by
\r
7 % the Free Software Foundation, either version 3 of the License, or
\r
8 % (at your option) any later version.
\r
10 % Euphorik is distributed in the hope that it will be useful,
\r
11 % but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
12 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
13 % GNU General Public License for more details.
\r
15 % You should have received a copy of the GNU General Public License
\r
16 % along with Euphorik. If not, see <http://www.gnu.org/licenses/>.
\r
18 % Le temps d'attente après une erreur de login (mauvais login/pass) : une demie seconde
\r
19 % Permet d'éviter (limiter) les attaques par dictionnaire
\r
20 -define(TEMPS_ATTENTE_ERREUR_LOGIN, 500). % ms
22 % Un message est considéré comme du spam s'il est posté 1 seconde ou moins après le dernier posté
23 -define(DUREE_SPAM, 1000). % ms
24 % Lorsque l'indice de spam d'un utilisateur atteind cette valeur alors il ne peut plus poster pendant un moment
25 -define(INDICE_SPAM_MAX, 6).
26 % Un utilisateur ayant trop spamé est bloqué pendant ce temps
27 -define(DUREE_BLOCAGE_SPAM, 20000). % ms
30 % le temps qu'une ip est bannie après avoir voulu s'etre enregistré trop de fois trop rapidement
31 -define(TEMPS_BAN_FLOOD_REGISTER, 60 * 60 * 1000). % 1 heure : en ms
32 % le temps entre deux tentatives de register pour compter un flood
33 -define(TEMPS_FLOOD_REGISTER, 1500). % 1500 ms
34 % après 5 flood l'ip fautive est considérée comme bannie
35 -define(NB_MAX_FLOOD_REGISTER, 5).
38 % le nombre max de troll qui peuvent être en attente d'être posté (tous les utilisateurs réunis)
39 -define(NB_MAX_TROLL_WAITING, 10).
40 % chaque admin peut proposer 1 seul troll à la fois
41 -define(NB_MAX_TROLL_WAITING_BY_USER, 2).
44 % Le jour ainsi que l'heure à laquelle est élu un nouveau troll (lundi à 3 heure du mat)
45 -define(JOUR_ELECTION_TROLL, 1). % 1 = lundi
46 -define(HEURE_ELECTION_TROLL, 3). % 3 heure du matin