X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=modules%2Finclude%2Feuphorik_bd.hrl;h=ff1ca4091badc2547b7129ba5dc05457da8b295e;hb=de1974f6e7ffcb18f0f4378ade72fe154dab4bba;hp=f1a2241e175287055368c678bbf8496b63ffe9dd;hpb=eae50232e73fca26d6f631c8177cbea649e5036e;p=euphorik.git diff --git a/modules/include/euphorik_bd.hrl b/modules/include/euphorik_bd.hrl index f1a2241..ff1ca40 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, @@ -16,7 +33,8 @@ auteur_id, % -> #user.id date, % erlang:now() pseudo, % chaine de caractère - contenu % chaine de caractère + contenu, % chaine de caractère + troll_id = undefined % l'id du troll associé correspondant }). @@ -46,13 +64,13 @@ 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() + 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, @@ -68,6 +86,6 @@ 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é - contenu % chaine de caractère + content % chaine de caractère }). \ No newline at end of file