mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-07 12:52:54 -05:00
allow system variables in footer, loginfooter, welcometext, title2 #6634
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
@@ -162,7 +162,19 @@ module.exports.CreateMeshScanner = function (parent) {
|
||||
try {
|
||||
if ((typeof obj.parent.config.domains[''].title == 'string') && (obj.parent.config.domains[''].title.length > 0)) {
|
||||
name = obj.parent.config.domains[''].title; info = '';
|
||||
try { if ((typeof obj.parent.config.domains[''].title2 == 'string') && (obj.parent.config.domains[''].title2.length > 0)) { info = obj.parent.config.domains[''].title2; } } catch (ex) { }
|
||||
try {
|
||||
if ((typeof obj.parent.config.domains[''].title2 == 'string') && (obj.parent.config.domains[''].title2.length > 0)) {
|
||||
info = obj.common.replacePlaceholders(obj.parent.config.domains[''].title2, {
|
||||
'serverversion': obj.parent.currentVer,
|
||||
'servername': obj.getWebServerName(domain, req),
|
||||
'agentsessions': Object.keys(parent.webserver.wsagents).length,
|
||||
'connectedusers': Object.keys(parent.webserver.wssessions).length,
|
||||
'userssessions': Object.keys(parent.webserver.wssessions2).length,
|
||||
'relaysessions': parent.webserver.relaySessionCount,
|
||||
'relaycount': Object.keys(parent.webserver.wsrelays).length
|
||||
});
|
||||
}
|
||||
} catch (ex) { }
|
||||
}
|
||||
} catch (ex) { }
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user