-% @author GBurri
-% Version 3
+% 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
+% @author GBurri\r
+
% Pour générer des id\r
-record(counter,\r
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
}).\r
\r
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\r
- }).
+ 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\r
+ }).
+
+
+% 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