From 33d23c2322f61cb5cfa4bbdb09eb6ff7510bf540 Mon Sep 17 00:00:00 2001 From: Mafoo Date: Wed, 7 Jun 2017 15:58:33 +0100 Subject: [PATCH] Enhance-system information (#2650) use human format and wide display for free under linux use posix output format and totals on df under linux make spacing consistent on value assignements --- app/system/system.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/app/system/system.php b/app/system/system.php index 98611f6cb6..0956ec6468 100644 --- a/app/system/system.php +++ b/app/system/system.php @@ -210,7 +210,7 @@ $document['title'] = $text['title-sys-status']; //linux if (stristr(PHP_OS, 'Linux')) { echo "\n"; if (strlen($shell_result) > 0) { @@ -237,7 +237,7 @@ $document['title'] = $text['title-sys-status']; //freebsd if (stristr(PHP_OS, 'FreeBSD')) { echo "\n"; if (strlen($shell_result) > 0) { @@ -267,7 +267,7 @@ $document['title'] = $text['title-sys-status']; //linux if (stristr(PHP_OS, 'Linux')) { echo "\n"; if (strlen($shell_result) > 0) { @@ -302,7 +302,7 @@ $document['title'] = $text['title-sys-status']; //freebsd if (stristr(PHP_OS, 'FreeBSD')) { echo "\n"; if (strlen($shell_result) > 0) { @@ -330,6 +330,10 @@ $document['title'] = $text['title-sys-status']; //drive space if (permission_exists('system_view_hdd')) { if (stristr(PHP_OS, 'Linux') || stristr(PHP_OS, 'FreeBSD')) { + echo "\n"; echo "\n"; echo "\n"; echo " \n"; @@ -340,8 +344,6 @@ $document['title'] = $text['title-sys-status']; echo " \n"; echo " \n";
".$text['title-drive']."\n"; echo "
\n";
-			$shellcmd = 'df -h';
-			$shell_result = shell_exec($shellcmd);
 			echo "$shell_result
"; echo "
\n"; echo "