X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=modules%2Ferl%2Feuphorik_requests.erl;h=42fb87ff5207d11ff3af83d7c592372690ee4fe7;hp=1cd460ad20517a1216561fda416f2c7b88f192e2;hb=81393a74d648e4830dc8c7c562fa203f50a105f6;hpb=ba4387c6afaaa2964c28292e7fbd1c35b3404ce5 diff --git a/modules/erl/euphorik_requests.erl b/modules/erl/euphorik_requests.erl index 1cd460a..42fb87f 100755 --- a/modules/erl/euphorik_requests.erl +++ b/modules/erl/euphorik_requests.erl @@ -15,7 +15,7 @@ % % 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 JSON via '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/1 de ce module. @@ -24,7 +24,7 @@ -module(euphorik_requests). -export([out/1]). --include_lib("yaws/include/yaws_api.hrl"). +-include_lib("yaws_api.hrl"). -include("../include/euphorik_defines.hrl"). @@ -55,7 +55,7 @@ traiter_message(Contenu, IP) -> ))) end ). - + % Authentification d'un client. traiter_action("authentification", JSON, IP) -> @@ -78,19 +78,9 @@ traiter_action("ban", JSON, _) -> % Un ekMaster slap un utilisateur. traiter_action("slap", JSON, _) -> euphorik_protocole:slap(JSON); -% Un ekMaster envoie un nouveau troll. -traiter_action("put_troll", JSON, _) -> - euphorik_protocole:put_troll(JSON); -% Un ekMaster modifie un troll. -traiter_action("mod_troll", JSON, _) -> - euphorik_protocole:mod_troll(JSON); -% Un ekMaster supprime un troll. -traiter_action("del_troll", JSON, _) -> - euphorik_protocole:del_troll(JSON); % Un ekMaster demande la liste des ips bannies. traiter_action("list_banned_ips", JSON, _) -> euphorik_protocole:list_banned_ips(JSON); % Un ekMaster débannie une ip. traiter_action("unban", JSON, _) -> euphorik_protocole:unban_ip(JSON). - \ No newline at end of file