From: Greg Burri Date: Thu, 22 May 2008 09:06:23 +0000 (+0000) Subject: ADD licences sur les fichier .erl X-Git-Tag: 1.0.0^2~46 X-Git-Url: https://git.euphorik.ch/?a=commitdiff_plain;h=bde82d4691e6bb96f841307b8e2771cec5996e5d;p=euphorik.git ADD licences sur les fichier .erl --- diff --git a/modules/erl/euphorik_bd.erl b/modules/erl/euphorik_bd.erl index 9de83fb..b938f75 100755 --- a/modules/erl/euphorik_bd.erl +++ b/modules/erl/euphorik_bd.erl @@ -1,8 +1,26 @@ -% coding: utf-8 +% coding: utf-8 +% 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 . +% % Ce module permet de gérer les données persistantes lié au site d'euphorik.ch. % Il permet d'ajouter des message, de demande les messages sur une page donnée, etc.. % Ce module utilise une base mnesia. -% @author G.Burri +% @author G.Burri + -module(euphorik_bd). -export([ diff --git a/modules/erl/euphorik_daemon.erl b/modules/erl/euphorik_daemon.erl index 051e26d..4e5d4ed 100755 --- a/modules/erl/euphorik_daemon.erl +++ b/modules/erl/euphorik_daemon.erl @@ -1,30 +1,49 @@ -% Module tournant en background s'occupant periodiquement de certaines tâches : -% - Élection du prochain troll chaque semaine +% coding: utf-8 +% 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 . +% +% Module tournant en background s'occupant periodiquement de certaines tâches : +% - sélection du prochain troll chaque semaine % Date : 05.11.2007 % @author G.Burri + -module(euphorik_daemon). -export([start/1]). -include("../include/euphorik_defines.hrl"). -% Démarre le démon +% Démarre le démon start(_A) -> loop(). + loop() -> - % on attend une minute de plus pour prevenir une dérive négative + % on attend une minute de plus pour prevenir une dérive nétive timer:sleep(1000 * trunc(temps_prochaine_election() + 60)), euphorik_bd:elire_troll(), loop(). -% Renvoie le nombre de seconde qu'il reste jusque au prochain lundi à l'heure donnée (l'heure est sur 24heures) +% Renvoie le nombre de seconde qu'il reste jusque au prochain lundi à l'heure donnée (l'heure est sur 24heures) % 86400 est le nombre de seconde dans un jour temps_prochaine_election() -> {Date, {H,M,S}} = calendar:local_time(), Delta = (?JOUR_ELECTION_TROLL - 1) * 86400 + ?HEURE_ELECTION_TROLL * 60 * 60 -((calendar:day_of_the_week(Date) - 1) * 86400 + H * 60 * 60 + M * 60 + S), - % attention au cas où les deux dates (maintenant et la date d'élection) ne se trouvent pas dans la même semaine. + % attention au cas où deux dates (maintenant et la date d'éction) ne se trouvent pas dans la même semaine. if Delta =< 0 -> Delta + 7 * 86400; true -> Delta end. - diff --git a/modules/erl/euphorik_minichat_conversation.erl b/modules/erl/euphorik_minichat_conversation.erl index 1e76e40..013c7af 100755 --- a/modules/erl/euphorik_minichat_conversation.erl +++ b/modules/erl/euphorik_minichat_conversation.erl @@ -1,4 +1,21 @@ -% coding: utf-8 +% coding: utf-8 +% 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 . +% % Ce module permet la gestion des conversations du minichat d'euphorik. % Un message (enfant) peut répondre à des messages (ses parents). % Un message (parent) peut avoir plusieurs réponses (enfants) @@ -7,6 +24,7 @@ % @type Message() = {integer(), [integer()]} % @type Conversation_detailee() = {[integer()], [integer()], [integer()], bool()} % @type Conversation = {[Message()] , bool()} bool() : si true alors il y a encore des messages dans les pages suivantes. + -module(euphorik_minichat_conversation). -export([ diff --git a/modules/erl/euphorik_protocole.erl b/modules/erl/euphorik_protocole.erl index 8056f6b..f1f0acd 100755 --- a/modules/erl/euphorik_protocole.erl +++ b/modules/erl/euphorik_protocole.erl @@ -1,7 +1,25 @@ -% coding: utf-8 +% coding: utf-8 +% 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 . +% % Ce module gére les différents messages envoyés par le client (javascript) via AJAX. % Les messages donnés ainsi que les réponses sont au format JSON. % @author G.Burri + -module(euphorik_protocole). -export([ diff --git a/modules/erl/euphorik_requests.erl b/modules/erl/euphorik_requests.erl index 79df04d..524f735 100755 --- a/modules/erl/euphorik_requests.erl +++ b/modules/erl/euphorik_requests.erl @@ -1,8 +1,26 @@ % coding: utf-8 +% 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 . +% % Ce module est fait pour répondre à des requêtes 'AJAX'. % Il est définit comme 'appmods' pour l'url "request" dans yaws. % Par exemple http://www.euphorik.ch/request abouti sur la fonction out() de ce module. % @author G.Burri + -module(euphorik_requests). -export([ diff --git a/modules/include/euphorik_bd.hrl b/modules/include/euphorik_bd.hrl index edadbcc..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, diff --git a/modules/include/euphorik_defines.hrl b/modules/include/euphorik_defines.hrl index e9beafb..2e0c48b 100755 --- a/modules/include/euphorik_defines.hrl +++ b/modules/include/euphorik_defines.hrl @@ -1,3 +1,19 @@ +% 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 . % Un message est considéré comme du spam s'il est posté 1 seconde ou moins après le dernier posté diff --git a/pages/about.html b/pages/about.html index 2528905..280295a 100644 --- a/pages/about.html +++ b/pages/about.html @@ -12,11 +12,15 @@ + - -

Pourquoi les couleurs du site font mal aux yeux ?

-

Le daltonisme du webmaster n'y est surement pas étranger. Il est possible de choisir parmis d'autres styles via le menu en haut à droite.

- + + + +

C'est quoi une "troll de la semaine" ?

+

Simplement un sujet de débat à tendance trollifique. Chaque lundi à 3 heure du matin un nouveau troll est choisit au hasard parmis ceux proposés par les administrateurs.

+

Quels-sont les navigateurs supportés ?

Le site a été testé avec succès sous "Firefox 2", "Safari 3", "Opera 9" et "Konqueror".