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
%
+
+
+ +