From b1068f66148a605aacbffd185d015846f1e6d080 Mon Sep 17 00:00:00 2001 From: bergware Date: Sat, 4 Feb 2023 12:11:34 +0100 Subject: [PATCH] Remove legacy file --- plugins/dynamix/include/SystemInformation.php | 250 ------------------ 1 file changed, 250 deletions(-) delete mode 100644 plugins/dynamix/include/SystemInformation.php diff --git a/plugins/dynamix/include/SystemInformation.php b/plugins/dynamix/include/SystemInformation.php deleted file mode 100644 index 7cab1523a..000000000 --- a/plugins/dynamix/include/SystemInformation.php +++ /dev/null @@ -1,250 +0,0 @@ - - - -lang=""> - - - - - - - - -"> -"> - - - - - -
-
: - -
-
M/B: - -
-
: - -
-
: - -
-
: -'; - if (strpos($strCPUInfo,'vmx')===false && strpos($strCPUInfo, 'svm')===false) { - // CPU doesn't support virtualization - echo _("Not Available"); - } else { - // Motherboard either doesn't support virtualization or BIOS has it disabled - echo _("Disabled"); - } - echo ''; -} -?> -
-
: -'; - if (strpos($strCPUInfo,'vmx')===false && strpos($strCPUInfo, 'svm')===false) { - // CPU doesn't support virtualization so iommu would be impossible - echo _("Not Available"); - } else { - // Motherboard either doesn't support iommu or BIOS has it disabled - echo _("Disabled"); - } - echo ''; -} -?> -
-
: - -
-
: - 8 or 12 -> 16 -*/ -$sizes = ['MB','GB','TB']; -$memory_type = $ecc = ''; -$memory_installed = $memory_maximum = 0; -$memory_devices = dmidecode('Memory Device','17'); -foreach ($memory_devices as $device) { - if ($device['Type']=='Unknown') continue; - [$size, $unit] = my_explode(' ',$device['Size']); - $base = array_search($unit,$sizes); - if ($base!==false) $memory_installed += $size*pow(1024,$base); - if (!$memory_type) $memory_type = $device['Type']; -} -$memory_array = dmidecode('Physical Memory Array','16'); -foreach ($memory_array as $device) { - [$size, $unit] = my_explode(' ',$device['Maximum Capacity']); - $base = array_search($unit,$sizes); - if ($base>=1) $memory_maximum += $size*pow(1024,$base); - if (!$ecc && $device['Error Correction Type']!='None') $ecc = "{$device['Error Correction Type']} "; -} -if ($memory_installed >= 1024) { - $memory_installed = round($memory_installed/1024); - $memory_maximum = round($memory_maximum/1024); - $unit = 'GiB'; -} else $unit = 'MiB'; - -// If maximum < installed then roundup maximum to the next power of 2 size of installed. E.g. 6 -> 8 or 12 -> 16 -$low = $memory_maximum < $memory_installed; -if ($low) $memory_maximum = pow(2,ceil(log($memory_installed)/log(2))); -echo "$memory_installed $unit $memory_type $ecc("._('max. installable capacity')." $memory_maximum $unit".($low?'*':'').")"; -?> -
- {$device['Manufacturer']} {$device['Part Number']}, {$size} {$device['Type']} @ {$device['Configured Memory Speed']}"; -} -?> -
-
-
: - "; - if (substr($port,0,4)=='bond') { - if ($link) { - $bond_mode = str_replace('Bonding Mode: ','',file("/proc/net/bonding/$port",FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES)[1]); - echo "$port: $bond_mode, mtu $mtu"; - } else echo "$port: ",_("bond down"); - } else { - if ($link) { - $speed = file_get_contents("$int/speed"); - $duplex = file_get_contents("$int/duplex"); - echo "$port: $speed Mbps, $duplex duplex, mtu $mtu"; - } else echo "$port: ",_("interface down"); - } -} -?> -
-
: - -
-
: - -
-
:
-
- - - - -
- -