From b258ffd03a293b9a9e5a06bcbc25944c97c5b0d2 Mon Sep 17 00:00:00 2001 From: EA4GKQ Date: Tue, 28 Jun 2016 16:30:19 +0200 Subject: [PATCH] Create disk.php --- include/disk.php | 87 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 include/disk.php diff --git a/include/disk.php b/include/disk.php new file mode 100644 index 0000000..b5b2277 --- /dev/null +++ b/include/disk.php @@ -0,0 +1,87 @@ +
+ +
Disk use
+ +
+ + + + + + + + + + + + + + + + 'N.A', + 'used' => 'N.A', + 'free' => 'N.A', + 'percent_used' => 0, + 'mount' => 'N.A', + 'filesystem' => 'N.A', + ); +} +else +{ + $mounted_points = array(); + $key = 0; + + foreach ($df as $mounted) + { + list($filesystem, $type, $total, $used, $free, $percent, $mount) = explode(',', $mounted); + + if (strpos($type, 'tmpfs') !== false ) + continue; + + +?> + + + + + + + + + + + + + + + +
FilesystemMountUseFreeUsedTotal
%
+
+
+ +