From 4f59d0867dc3664c8d11a509f2490234ed0414a0 Mon Sep 17 00:00:00 2001 From: Carlos V <76731844+cvc90@users.noreply.github.com> Date: Wed, 9 Aug 2023 00:32:56 +0200 Subject: [PATCH] Update systeminfo.php Added new section "Motherboard" Added new section "Motherboard stat" Added new variable "motherboard_name" in the section "Motherboard stat" Added new variable "motherboard_manufactured" in the section "Motherboard stat" Added new variable "motherboard_revision" in the section "Motherboard stat" Added new variable "motherboard_bios" in the section "Motherboard stat" Added new variable "motherboard_biosdate" in the section "Motherboard stat" Added new variable "biosvendor" in the section "Motherboard stat" --- front/systeminfo.php | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/front/systeminfo.php b/front/systeminfo.php index d6b8c303..65db1595 100644 --- a/front/systeminfo.php +++ b/front/systeminfo.php @@ -38,6 +38,13 @@ if ($os_version == '') {$os_version = exec('uname -o');} //$os_version_arr = explode("\n", trim($os_version)); $stat['os_version'] = str_replace('"', '', str_replace('PRETTY_NAME=', '', $os_version)); $stat['uptime'] = str_replace('up ', '', shell_exec("uptime -p")); +//Motherboard stat +$motherboard_name = shell_exec('cat /sys/class/dmi/id/board_name'); // Get the Motherboard name +$motherboard_manufactured = shell_exec('cat /sys/class/dmi/id/board_vendor'); // Get the Motherboard manufactured +$motherboard_revision = shell_exec('cat /sys/class/dmi/id/board_version'); // Get the Motherboard revision +$motherboard_bios = shell_exec('cat /sys/class/dmi/id/bios_version'); // Get the Motherboard BIOS +$motherboard_biosdate = shell_exec('cat /sys/class/dmi/id/bios_date'); // Get the Motherboard BIOS date +$motherboard_biosvendor = shell_exec('cat /sys/class/dmi/id/bios_vendor'); // Get the Motherboard BIOS vendor //CPU stat $prevVal = shell_exec("cat /proc/cpuinfo | grep processor"); $prevArr = explode("\n", trim($prevVal)); @@ -198,6 +205,39 @@ echo '