diff --git a/web/root/ecWeb/sidebar/002-whosOnline.ssjs b/web/root/ecWeb/sidebar/002-whosOnline.ssjs index 31bb95f70e961b792e478fafd25a4b5516164f76..f35eacb6ce6e9e8b36083937fd6d4953ed858103 100644 --- a/web/root/ecWeb/sidebar/002-whosOnline.ssjs +++ b/web/root/ecWeb/sidebar/002-whosOnline.ssjs @@ -11,10 +11,12 @@ if(http_request.query.hasOwnProperty("action") && http_request.query.action.toSt print("<b>Who's online</b><br><br>"); print("<table border=0 cellpadding=0 cellspacing=0 class='standardColor standardFont'>"); - for(n in system.node_list) { - print("<tr><td>Node " + (parseInt(n) + 1) + ": </td>"); + for(n = 0; n < system.node_list.length; n++) { + print("<tr><td>Node " + (n + 1) + ": </td>"); if(system.node_list[n].status == 3) { print("<td>" + system.username(system.node_list[n].useron) + "</td></tr><tr><td> </td><td style=font-style:italic;>" + NodeAction[system.node_list[n].action] + "</td></tr>"); + } else if(system.node_list[n].status == 4) { + print("<td style=font-style:italic;>" + NodeStatus[0] + "</td></tr>"); // Pretend to be WFC if in use but quiet. Edit here if you'd like to display quiet nodes differently. } else { print("<td style=font-style:italic;>" + NodeStatus[system.node_list[n].status] + "</td></tr>"); }