ADD licences sur les fichier .erl
authorGreg Burri <greg.burri@gmail.com>
Thu, 22 May 2008 09:06:23 +0000 (09:06 +0000)
committerGreg Burri <greg.burri@gmail.com>
Thu, 22 May 2008 09:06:23 +0000 (09:06 +0000)
modules/erl/euphorik_bd.erl
modules/erl/euphorik_daemon.erl
modules/erl/euphorik_minichat_conversation.erl
modules/erl/euphorik_protocole.erl
modules/erl/euphorik_requests.erl
modules/include/euphorik_bd.hrl
modules/include/euphorik_defines.hrl
pages/about.html

index 9de83fb..b938f75 100755 (executable)
@@ -1,8 +1,26 @@
-% coding: utf-8
+% coding: utf-8\r
+% 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
+% 
 % 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.
 % 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\r
+
 
 -module(euphorik_bd).\r
 -export([
 
 -module(euphorik_bd).\r
 -export([
index 051e26d..4e5d4ed 100755 (executable)
@@ -1,30 +1,49 @@
-% Module tournant en background s'occupant periodiquement de certaines tâches :
-%  - Élection du prochain troll chaque semaine\r
+% coding: utf-8\r
+% 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
+% Module tournant en background s'occupant periodiquement de certaines tâches :
+%  - sélection du prochain troll chaque semaine\r
 % Date : 05.11.2007
 % @author G.Burri\r
 \r
 % Date : 05.11.2007
 % @author G.Burri\r
 \r
+\r
 -module(euphorik_daemon).
 -export([start/1]).
 -include("../include/euphorik_defines.hrl").
 
 
 -module(euphorik_daemon).
 -export([start/1]).
 -include("../include/euphorik_defines.hrl").
 
 
-% Démarre le démon
+% Démarre le démon
 start(_A) ->\r
    loop().
 start(_A) ->\r
    loop().
+   \r
    
 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(),\r
    loop().
    
    
    timer:sleep(1000 * trunc(temps_prochaine_election() + 60)),
    euphorik_bd:elire_troll(),\r
    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),
 % 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.
    if Delta =< 0 -> Delta + 7 * 86400; true -> Delta end.
-
index 1e76e40..013c7af 100755 (executable)
@@ -1,4 +1,21 @@
-% coding: utf-8
+% coding: utf-8\r
+% 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
+% 
 % 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)
 % 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.
 % @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.
+\r
 
 -module(euphorik_minichat_conversation).\r
 -export([\r
 
 -module(euphorik_minichat_conversation).\r
 -export([\r
index 8056f6b..f1f0acd 100755 (executable)
@@ -1,7 +1,25 @@
-% coding: utf-8
+% coding: utf-8\r
+% 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
+% 
 % 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
 % 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
+\r
 
 -module(euphorik_protocole).
 -export([
 
 -module(euphorik_protocole).
 -export([
index 79df04d..524f735 100755 (executable)
@@ -1,8 +1,26 @@
 % coding: utf-8\r
 % coding: utf-8\r
+% 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
 % Ce module est fait pour répondre à des requêtes 'AJAX'.\r
 % Il est définit comme 'appmods' pour l'url "request" dans yaws.\r
 % Par exemple http://www.euphorik.ch/request abouti sur la fonction out() de ce module.
 % @author G.Burri
 % Ce module est fait pour répondre à des requêtes 'AJAX'.\r
 % Il est définit comme 'appmods' pour l'url "request" dans yaws.\r
 % Par exemple http://www.euphorik.ch/request abouti sur la fonction out() de ce module.
 % @author G.Burri
+\r
 
 -module(euphorik_requests).\r
 -export([\r
 
 -module(euphorik_requests).\r
 -export([\r
index edadbcc..8c16c70 100755 (executable)
@@ -1,5 +1,22 @@
-% @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
 
 % Pour générer des id\r
 -record(counter,\r
index e9beafb..2e0c48b 100755 (executable)
@@ -1,3 +1,19 @@
+% 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
 
 
 % Un message est considéré comme du spam s'il est posté 1 seconde ou moins après le dernier posté
 
 
 % Un message est considéré comme du spam s'il est posté 1 seconde ou moins après le dernier posté
index 2528905..280295a 100644 (file)
 
 <!-- h3>Coment insérer des smiles autres que ceux par défaut ?</h3>
 <p>Les smiles de <a href="http://totoz.eu">totoz.eu</a> peuvent être utilisés en insérant leur tag dans un message, par exemple [:beuh].</p -->
 
 <!-- h3>Coment insérer des smiles autres que ceux par défaut ?</h3>
 <p>Les smiles de <a href="http://totoz.eu">totoz.eu</a> peuvent être utilisés en insérant leur tag dans un message, par exemple [:beuh].</p -->
+\r
 
 
-
-<h3>Pourquoi les couleurs du site font mal aux yeux ?</h3>
-<p>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.</p>
-
+<!-- h3>Pourquoi les couleurs du site font mal aux yeux ?</h3>
+<p>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.</p -->
+\r
+\r
+<h3>C'est quoi une "troll de la semaine" ?</h3>\r
+<p>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.</p>\r
+\r
 
 <h3>Quels-sont les navigateurs supportés ?</h3>
 <p>Le site a été testé avec succès sous "Firefox 2", "Safari 3", "Opera 9" et "Konqueror".
 
 <h3>Quels-sont les navigateurs supportés ?</h3>
 <p>Le site a été testé avec succès sous "Firefox 2", "Safari 3", "Opera 9" et "Konqueror".