mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-24 06:05:53 -05:00
Fixed Intel AMT tab in Chrome
This commit is contained in:
parent
f5d4e96086
commit
caa6dcf27d
@ -894,7 +894,12 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) {
|
|||||||
case 'smbios':
|
case 'smbios':
|
||||||
{
|
{
|
||||||
// Store the RAW SMBios table of this computer
|
// Store the RAW SMBios table of this computer
|
||||||
obj.db.SetSMBIOS({ _id: obj.dbNodeKey, domain: domain.id, time: new Date(), value: JSON.stringify(command.value) });
|
// We store SMBIOS information as a string because we don't want the MongoDB to attempt to store all of the sub-documents seperatly.
|
||||||
|
// If an agent sends an insanely large SMBIOS table, don't store it.
|
||||||
|
try {
|
||||||
|
var smbiosstr = JSON.stringify(command.value);
|
||||||
|
if (smbiosstr.length < 65535) { obj.db.SetSMBIOS({ _id: obj.dbNodeKey, domain: domain.id, time: new Date(), value: smbiosstr }); }
|
||||||
|
} catch (ex) { }
|
||||||
|
|
||||||
// Event the node interface information change (This is a lot of traffic, probably don't need this).
|
// Event the node interface information change (This is a lot of traffic, probably don't need this).
|
||||||
//obj.parent.parent.DispatchEvent(['*', obj.meshid], obj, { action: 'smBiosChange', nodeid: obj.dbNodeKey, domain: domain.id, smbios: command.value, nolog: 1 });
|
//obj.parent.parent.DispatchEvent(['*', obj.meshid], obj, { action: 'smBiosChange', nodeid: obj.dbNodeKey, domain: domain.id, smbios: command.value, nolog: 1 });
|
||||||
|
@ -60,7 +60,7 @@ function CreateMeshCentralServer(config, args) {
|
|||||||
obj.serverKey = Buffer.from(obj.crypto.randomBytes(48), 'binary');
|
obj.serverKey = Buffer.from(obj.crypto.randomBytes(48), 'binary');
|
||||||
obj.loginCookieEncryptionKey = null;
|
obj.loginCookieEncryptionKey = null;
|
||||||
obj.serverSelfWriteAllowed = true;
|
obj.serverSelfWriteAllowed = true;
|
||||||
obj.taskLimiter = obj.common.createTaskLimiterQueue(30, 20, 60); // This is a task limiter queue to smooth out server work.
|
obj.taskLimiter = obj.common.createTaskLimiterQueue(8, 20, 60); // This is a task limiter queue to smooth out server work.
|
||||||
try { obj.currentVer = JSON.parse(obj.fs.readFileSync(obj.path.join(__dirname, 'package.json'), 'utf8')).version; } catch (e) { } // Fetch server version
|
try { obj.currentVer = JSON.parse(obj.fs.readFileSync(obj.path.join(__dirname, 'package.json'), 'utf8')).version; } catch (e) { } // Fetch server version
|
||||||
|
|
||||||
// Setup the default configuration and files paths
|
// Setup the default configuration and files paths
|
||||||
|
1495
public/commander.htm
1495
public/commander.htm
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -246,7 +246,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id=p2 style="display:none">
|
<div id=p2 style="display:none">
|
||||||
<h1>My Account</h1>
|
<h1>My Account</h1>
|
||||||
<img alt="" width=150 height=103 src=images/mainaccount.jpg style=margin-bottom:10px;margin-right:20px;float:right />
|
<img id="p2AccountImage" alt="" width=150 height=103 src=images/mainaccount.jpg style=margin-bottom:10px;margin-right:20px;float:right />
|
||||||
<div id="p2AccountSecurity" style="display:none">
|
<div id="p2AccountSecurity" style="display:none">
|
||||||
<p><strong>Account security</strong></p>
|
<p><strong>Account security</strong></p>
|
||||||
<div style="margin-left:25px">
|
<div style="margin-left:25px">
|
||||||
@ -1121,8 +1121,9 @@
|
|||||||
if (noServerBackup == 1) { siteRights &= 0xFFFFFFFA; } // If not server backups allowed, remove server backup and restore permissions
|
if (noServerBackup == 1) { siteRights &= 0xFFFFFFFA; } // If not server backups allowed, remove server backup and restore permissions
|
||||||
|
|
||||||
// Update account actions
|
// Update account actions
|
||||||
QV('p2AccountActions', ((features & 4) == 0) && (serverinfo.domainauth == false)); // Hide Account Actions if in single user mode or domain authentication
|
|
||||||
QV('p2AccountSecurity', ((features & 4) == 0) && (serverinfo.domainauth == false) && ((features & 4096) != 0)); // Hide Account Security if in single user mode, domain authentication to 2 factor auth not supported.
|
QV('p2AccountSecurity', ((features & 4) == 0) && (serverinfo.domainauth == false) && ((features & 4096) != 0)); // Hide Account Security if in single user mode, domain authentication to 2 factor auth not supported.
|
||||||
|
QV('p2AccountActions', ((features & 4) == 0) && (serverinfo.domainauth == false)); // Hide Account Actions if in single user mode or domain authentication
|
||||||
|
QV('p2AccountImage', ((features & 4) == 0) && (serverinfo.domainauth == false)); // If account actions are not visible, also remove the image on that panel
|
||||||
QV('p2ServerActions', siteRights & 21);
|
QV('p2ServerActions', siteRights & 21);
|
||||||
QV('LeftMenuMyServer', siteRights & 21); // 16 + 4 + 1
|
QV('LeftMenuMyServer', siteRights & 21); // 16 + 4 + 1
|
||||||
QV('MainMenuMyServer', siteRights & 21);
|
QV('MainMenuMyServer', siteRights & 21);
|
||||||
|
Loading…
Reference in New Issue
Block a user