ADD script permettant la mise à jour de la BD et le rechargement des modules lors...
[euphorik.git] / modules / include / euphorik_defines.hrl
index 5c2d357..9fe5f8e 100755 (executable)
@@ -1,6 +1,31 @@
+% Copyright 2008 Grégory Burri\r
+%\r
+% This file is part of Euphorik.\r
+%\r
+% Euphorik is free software: you can redistribute it and/or modify\r
+% it under the terms of the GNU General Public License as published by\r
+% the Free Software Foundation, either version 3 of the License, or\r
+% (at your option) any later version.\r
+%\r
+% Euphorik is distributed in the hope that it will be useful,\r
+% but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+% GNU General Public License for more details.\r
+%\r
+% You should have received a copy of the GNU General Public License\r
+% along with Euphorik.  If not, see <http://www.gnu.org/licenses/>.\r
 
+\r
+% Le temps d'attente après une erreur de login (mauvais login/pass) : une demie seconde\r
+% Permet d'éviter (limiter) les attaques par dictionnaire\r
+-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é
+-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 
+-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
@@ -9,3 +34,14 @@
 -define(TEMPS_FLOOD_REGISTER, 1500). % 1500 ms
 % 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)
+-define(NB_MAX_TROLL_WAITING, 10).
+% 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)
+-define(JOUR_ELECTION_TROLL, 1). % 1 = lundi
+-define(HEURE_ELECTION_TROLL, 3). % 3 heure du matin