CPU:
+
CPU:
function write($number) {
$words = array('zero','one','two','three','four','five','six','seven','eight','nine','ten','eleven','twelve','thirteen','fourteen','fifteen','sixteen','seventeen','eighteen','nineteen','twenty');
@@ -66,7 +71,7 @@ if (strpos($cpumodel,'@')===false) {
}
?>
-
HVM:
+
HVM:
// Check for Intel VT-x (vmx) or AMD-V (svm) cpu virtualzation support
// If either kvm_intel or kvm_amd are loaded then Intel VT-x (vmx) or AMD-V (svm) cpu virtualzation support was found
@@ -91,7 +96,7 @@ if (strpos($cpumodel,'@')===false) {
}
?>
-
IOMMU:
+
IOMMU:
// Check for any IOMMU Groups
$iommu_groups = shell_exec("find /sys/kernel/iommu_groups/ -type l");
@@ -112,7 +117,7 @@ if (strpos($cpumodel,'@')===false) {
}
?>
-
Cache:
+
Cache:
$cache = explode('#',exec("dmidecode -q -t 7|awk -F: '/^\tSocket Designation:/{c=c$2\";\";}; /^\tInstalled Size:/{s=s$2\";\";} END{print c\"#\"s}'"));
$socket = array_map('trim',explode(';',$cache[0]));
@@ -129,7 +134,7 @@ for ($i=0; $i
-
Memory:
+
Memory:
// Memory Device (16) will get us each ram chip. By matching on MB it'll filter out Flash/Bios chips
// Sum up all the Memory Devices to get the amount of system memory installed. Convert MB to GB
@@ -144,13 +149,13 @@ if ($memory_maximum < $memory_installed) {$memory_maximum = pow(2,ceil(log($memo
echo "$memory_installed GB (max. installable capacity $memory_maximum GB)$star";
?>
-
Network:
+
Network:
exec("ls /sys/class/net|grep -Po '^(bond|eth)\d+$'",$sPorts);
$i = 0;
foreach ($sPorts as $port) {
$mtu = file_get_contents("/sys/class/net/$port/mtu");
- if ($i++) echo "
";
+ if ($i++) echo "
";
if ($port=='bond0') {
echo "$port: ".exec("grep -Pom1 '^Bonding Mode: \K.+' /proc/net/bonding/bond0").", mtu $mtu";
} else {
@@ -161,19 +166,19 @@ foreach ($sPorts as $port) {
}
?>
-
Kernel:
+
Kernel:
$kernel = exec("uname -srm");
echo $kernel;
?>
-
OpenSSL:
+
OpenSSL:
$openssl_ver = exec("openssl version|cut -d' ' -f2");
echo $openssl_ver;
?>
-
Uptime:
-
+Uptime:
+