X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=modules%2Finclude%2Feuphorik_bd.hrl;h=8c16c702181c852c45ef1fa95abf5c1320d989e4;hb=bde82d4691e6bb96f841307b8e2771cec5996e5d;hp=173ab09a31b05c1a9eb3035e4ba9ab7c9ce853e4;hpb=2faefc542de20cfcc0220b5c7fd7982dd0fbbfd4;p=euphorik.git diff --git a/modules/include/euphorik_bd.hrl b/modules/include/euphorik_bd.hrl index 173ab09..8c16c70 100755 --- a/modules/include/euphorik_bd.hrl +++ b/modules/include/euphorik_bd.hrl @@ -1,5 +1,22 @@ -% @author GBurri -% Version 3 +% 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 . +% +% @author GBurri + % Pour générer des id -record(counter, @@ -43,5 +60,31 @@ nick_format = nick, %atom(), peut valoir 'nick', 'login' ou 'nick_login' indice_flood = 0, % integer() est incrémenté lorsque l'utilisateur envoie trop rapidement des messages. page_principale = 1, % la page de la conversation principale - conversations = [] % [{integer(), integer()}], la liste des messages correspondant au conversation ainsi que la page affichée - }). + conversations = [], % [{integer(), integer()}], la liste des messages correspondant au conversation ainsi que la page affichée + ek_master = false, + last_ip = undefined % integer(), undefined si inconnu + }). + + +% identificateur : (ip) +-record(ip_table, + { + ip, % {integer(), integer(), integer(), integer()} + ban = undefined, % la date du dernier bannissement + ban_duration = 0, % le temps de ban en minute + nb_try_register = 0, + nb_try_login = 0, % pour l'instant pas utilisé + date_last_try_register, + date_last_try_login % pour l'instant pas utilisé + }). + + +-record(troll, + { + id, + id_user, + date_create, % erlang:now() + date_post = undefined, % date à laquelle le troll est affiché sur la page principale. undefined initialement puis erlang:now() quand affiché + content % chaine de caractère + }). + \ No newline at end of file