summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics/inc/hardwareinfo.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2021-08-24 16:31:13 +0200
committerSimon Rettberg2022-03-09 15:06:25 +0100
commit291837061ba13647f49cc32092fd0a3ec89d51ed (patch)
treea3aa5d197d052189bc10273ef0d8ae5168f06e24 /modules-available/statistics/inc/hardwareinfo.inc.php
parent[statistics_reporting] Gather some more os infos (diff)
downloadslx-admin-291837061ba13647f49cc32092fd0a3ec89d51ed.tar.gz
slx-admin-291837061ba13647f49cc32092fd0a3ec89d51ed.tar.xz
slx-admin-291837061ba13647f49cc32092fd0a3ec89d51ed.zip
[statistics] Support new json-format of hardware info from client
We now try to use JSON output mode from any tool on the client to supply information, for easier parsability and hopefully, a more stable format.
Diffstat (limited to 'modules-available/statistics/inc/hardwareinfo.inc.php')
-rw-r--r--modules-available/statistics/inc/hardwareinfo.inc.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/modules-available/statistics/inc/hardwareinfo.inc.php b/modules-available/statistics/inc/hardwareinfo.inc.php
new file mode 100644
index 00000000..5ef94365
--- /dev/null
+++ b/modules-available/statistics/inc/hardwareinfo.inc.php
@@ -0,0 +1,16 @@
+<?php
+
+class HardwareInfo
+{
+
+ // Never change these!
+ const RAM_MODULE = 'RAM';
+ const MAINBOARD = 'MAINBOARD';
+ const DMI_SYSTEM = 'DMI_SYSTEM';
+ const POWER_SUPPLY = 'POWER_SUPPLY';
+ const SYSTEM_SLOT = 'SYSTEM_SLOT';
+ const PCI_DEVICE = 'PCI_DEVICE';
+ const HDD = 'HDD';
+ const CPU = 'CPU';
+
+}