X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=modules%2Ferl%2Feuphorik_requests.erl;h=524f735edbd7f99569f52be995a6a2f9005bb0f0;hb=bde82d4691e6bb96f841307b8e2771cec5996e5d;hp=f8dad51627cee769d088348c29c1ac137a317296;hpb=221a44d7aeaf467ef9854fe21af93bc964e92ef1;p=euphorik.git diff --git a/modules/erl/euphorik_requests.erl b/modules/erl/euphorik_requests.erl index f8dad51..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([ @@ -64,5 +82,9 @@ traiter_action("put_troll", JSON, _) -> traiter_action("mod_troll", JSON, _) -> euphorik_protocole:mod_troll(JSON); traiter_action("del_troll", JSON, _) -> - euphorik_protocole:del_troll(JSON). + euphorik_protocole:del_troll(JSON); +traiter_action("list_banned_ips", JSON, _) -> + euphorik_protocole:list_banned_ips(JSON); +traiter_action("unban", JSON, _) -> + euphorik_protocole:unban_ip(JSON). \ No newline at end of file