No device groups.
@@ -1482,7 +1474,7 @@
-
+
@@ -5727,7 +5719,7 @@
for (var j in node.sessions.kvm) {
if (j.startsWith('user/')) {
var trash = '';
- if (((j == userinfo._id) || (GetNodeRights(node) == 0xFFFFFFFF))) { trash = ' '; }
+ if (((j == userinfo._id) || (GetNodeRights(node) == 0xFFFFFFFF))) { trash = ' '; }
x += addHtmlValue2(getUserName(j), ((node.sessions.kvm[j] == 1) ? "1 session" : nobreak(format("{0} sessions", node.sessions.kvm[j]))) + trash);
} else if (j == 'busy') {
x += addHtmlValue2("Device is busy", ((node.sessions.kvm[j] == 1) ? "1 session" : nobreak(format("{0} sessions", node.sessions.kvm[j]))));
@@ -5737,35 +5729,35 @@
x += '' + "Remote Desktop" + '';
for (var j in node.sessions.multidesk) {
var trash = '';
- if ((j == userinfo._id) || (GetNodeRights(node) == 0xFFFFFFFF)) { trash = ' '; }
+ if ((j == userinfo._id) || (GetNodeRights(node) == 0xFFFFFFFF)) { trash = ' '; }
x += addHtmlValue2(getUserName(j), ((node.sessions.multidesk[j] == 1) ? "1 session" : nobreak(format("{0} sessions", node.sessions.multidesk[j]))) + trash);
}
} else if (i == 'terminal') {
x += '' + "Terminal" + '';
for (var j in node.sessions.terminal) {
var trash = '';
- if ((j == userinfo._id) || (GetNodeRights(node) == 0xFFFFFFFF)) { trash = ' '; }
+ if ((j == userinfo._id) || (GetNodeRights(node) == 0xFFFFFFFF)) { trash = ' '; }
x += addHtmlValue2(getUserName(j), ((node.sessions.terminal[j] == 1) ? "1 session" : nobreak(format("{0} sessions", node.sessions.terminal[j]))) + trash);
}
} else if (i == 'files') {
x += '' + "Files" + '';
for (var j in node.sessions.files) {
var trash = '';
- if ((j == userinfo._id) || (GetNodeRights(node) == 0xFFFFFFFF)) { trash = ' '; }
+ if ((j == userinfo._id) || (GetNodeRights(node) == 0xFFFFFFFF)) { trash = ' '; }
x += addHtmlValue2(getUserName(j), ((node.sessions.files[j] == 1) ? "1 session" : nobreak(format("{0} sessions", node.sessions.files[j]))) + trash);
}
} else if (i == 'tcp') {
x += '' + "TCP Routing" + '';
for (var j in node.sessions.tcp) {
var trash = '';
- if ((j == userinfo._id) || (GetNodeRights(node) == 0xFFFFFFFF)) { trash = ' '; }
+ if ((j == userinfo._id) || (GetNodeRights(node) == 0xFFFFFFFF)) { trash = ' '; }
x += addHtmlValue2(getUserName(j), ((node.sessions.tcp[j] == 1) ? "1 session" : nobreak(format("{0} sessions", node.sessions.tcp[j]))) + trash);
}
} else if (i == 'udp') {
x += '' + "UDP Routing" + '';
for (var j in node.sessions.udp) {
var trash = '';
- if ((j == userinfo._id) || (GetNodeRights(node) == 0xFFFFFFFF)) { trash = ' '; }
+ if ((j == userinfo._id) || (GetNodeRights(node) == 0xFFFFFFFF)) { trash = ' '; }
x += addHtmlValue2(getUserName(j), ((node.sessions.udp[j] == 1) ? "1 session" : nobreak(format("{0} sessions", node.sessions.udp[j]))) + trash);
}
}
@@ -8960,7 +8952,7 @@
for (var i = 0; i < deviceShares.length; i++) {
var dshare = deviceShares[i], trash = '';
if (dshare.url != null) { trash += ' '; }
- trash += '';
+ trash += '';
var type = ''; if (dshare.p <= 7) { type = ['', "Terminal", "Desktop", "Desktop + Terminal", "Files", "Terminal + Files", "Desktop + Files", "Desktop + Terminal + Files"][dshare.p]; } else if (dshare.p == 8) { type = "HTTP/" + dshare.port; } else if (dshare.p == 16) { type = "HTTPS/" + dshare.port; }
var details = type;
if ((dshare.startTime != null) && (dshare.expireTime != null)) { details = format("{0}, {1} to {2}", type, printFlexDateTime(new Date(dshare.startTime)), printFlexDateTime(new Date(dshare.expireTime))); }
@@ -12974,9 +12966,9 @@
dateHeader = printDate(time);
x += '' + dateHeader + ' | ';
}
- var icon = 'si3';
- if (event.etype == 'user') icon = 'm2';
- if (event.etype == 'server') icon = 'si3';
+ var icon = 'fa-mobile-screen';
+ if (event.etype == 'user') icon = 'fa-user';
+ if (event.etype == 'server') icon = 'fa-server';
var msg;
if ((event.msgid == null) || (eventsMessageId[event.msgid] == null)) {
@@ -13000,8 +12992,8 @@
msg = EscapeHtml(event.username) + guestname + ' → ' + msg;
}
}
- if (event.etype == 'relay' || event.action == 'relaylog') icon = 'relayIcon16';
- x += ' | | ' + printTime(time) + ' - ' + msg + ' | ';
+ if (event.etype == 'relay' || event.action == 'relaylog') icon = 'fa-arrow-right-arrow-left';
+ x += ' | | ' + printTime(time) + ' - ' + msg + ' | ';
}
}
if (dateHeader != null) x += ' ';
@@ -16588,8 +16580,7 @@
e.children[1].classList.remove('g1s');
e.children[2].classList.remove('style10s');
//e.children[2].style['background-color'] = ((over == 0) ? '#c9c9c9' : '#b9b9b9');
- e.children[3].classList.remove('g2s');
- if (over == 1) { e.children[1].classList.add('g1s'); e.children[2].classList.add('style10s'); e.children[3].classList.add('g2s'); }
+ if (over == 1) { e.children[1].classList.add('g1s'); e.children[2].classList.add('style10s'); }
}
function eventsUpdate() {
@@ -16603,10 +16594,10 @@
dateHeader = printDate(time);
x += '' + dateHeader + ' | ';
}
- var icon = 'si3';
- if (event.etype == 'ugrp') icon = 'm4';
- if (event.etype == 'user') icon = 'm2';
- if (event.etype == 'server') icon = 'si3';
+ var icon = 'fa-mobile-screen';
+ if (event.etype == 'ugrp') icon = 'fa-users';
+ if (event.etype == 'user') icon = 'fa-user';
+ if (event.etype == 'server') icon = 'fa-server';
var msg;
if ((event.msgid == null) || (eventsMessageId[event.msgid] == null)) {
@@ -16632,7 +16623,18 @@
if (event.nodeid) {
var node = getNodeFromId(event.nodeid);
if (node != null) {
- icon = 'si' + node.icon;
+ console.log(node);
+ switch(node.icon){
+ case 1:
+ icon = 'fa-computer';
+ break;
+ case 2:
+ icon = 'fa-laptop';
+ break;
+ case 8:
+ icon = 'fa-laptop-code';
+ break;
+ }
msg = '' + EscapeHtml(node.name) + ' → ' + msg;
}
}
@@ -16646,8 +16648,8 @@
}
}
if (event.remoteaddr) { msg += ' (' + event.remoteaddr + ')'; }
- if (event.etype == 'relay' || event.action == 'relaylog') icon = 'relayIcon16';
- x += ' | | ' + printTime(time) + ' - ' + msg + ' | ';
+ if (event.etype == 'relay' || event.action == 'relaylog') icon = 'fa-arrow-right-arrow-left';
+ x += ' | | ' + printTime(time) + ' - ' + msg + ' | ';
}
}
if (dateHeader != null) x += ' ';
@@ -20602,7 +20604,7 @@
// function addLink(x, f) { return '' + x + ' '; }
function addLink(x, f) { return '' + x + ' '; }
function addLinkConditional(x, f, c) { if (c) return addLink(x, f); return x; }
- function addKeyLink(x, f) { return '' + x + ' '; }
+ function addKeyLink(x, f) { return '' + x + ' '; }
function addKeyLinkConditional(x, f, c) { if (c) return addKeyLink(x, f); return x; }
function haltEvent(e) { if (e.preventDefault) e.preventDefault(); if (e.stopPropagation) e.stopPropagation(); return false; }
function addOption(q, t, i) { var option = document.createElement('option'); option.text = t; option.value = i; Q(q).add(option); }
|