function(data) {
if (data.reply === "list_banned_ips") {
var XHTML = "";
- data.list.each(function(ip) {
+ data.list.each(function(i, ip) {
XHTML += '<div class="ban"><span class="ip">' + ip.ip + '</span>|' +
'<span class="temps">' +
ip.remaining_time +
'</span>|';
- ip.users.each(function(user) {
+ ip.users.each(function(j, user) {
XHTML += (j > 0 ? ", " : "") +
'<span class="pseudo">' + thisPageAdmin.formateur.traitementComplet(user.nick) + '</span>' +
(user.login === "" ? "" : '<span class="login">(' + thisPageAdmin.formateur.traitementComplet(user.login) + ')</span>');
if T#ip_table.nb_try_register =:= ?NB_MAX_FLOOD_REGISTER, Delta < ?TEMPS_BAN_FLOOD_REGISTER ->\r
false;\r
true ->\r
- mnesia:write(#ip_table{\r
+ mnesia:write(T#ip_table{\r
ip = IP,\r
date_last_try_register = now(),\r
nb_try_register = T#ip_table.nb_try_register + if Delta < ?TEMPS_FLOOD_REGISTER -> 1; T#ip_table.nb_try_register > 0 -> -1; true -> 0 end\r
</file>
</editor-bookmarks>
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/1">
+ <file>file:/home/gburri/projets/euphorik/branches/1.1/VERSION</file>
+ <file>file:/home/gburri/projets/euphorik/branches/1.1/js/formateur.js</file>
+ <file>file:/home/gburri/projets/euphorik/branches/1.1/js/pageMinichat/conversation.js</file>
+ <file>file:/home/gburri/projets/euphorik/branches/1.1/js/pageMinichat/message.js</file>
+ <file>file:/home/gburri/projets/euphorik/branches/1.1/js/pageMinichat/pageMinichat.js</file>
+ <file>file:/home/gburri/projets/euphorik/branches/1.1/js/util.js</file>
<file>file:/home/gburri/projets/euphorik/branches/1.1/modules/erl/euphorik_daemon.erl</file>
+ <file>file:/home/gburri/projets/euphorik/branches/1.1/styles/1/pageMinichat.css</file>
+ <file>file:/home/gburri/projets/euphorik/branches/1.1/styles/2/pageMinichat.css</file>
</open-files>
</project-private>
main(_) ->
net_kernel:start([tv, shortnames]),
- Yaws = yaws@flynux,
+ Yaws = yaws_dev@flynux,
io:format("Connexion à Yaws : ~p~n", [net_adm:ping(Yaws)]),
mnesia:start(),
mnesia:change_config(extra_db_nodes, nodes()),