Update user_dashboard.php

This commit is contained in:
FusionPBX 2018-03-08 21:46:09 -07:00 committed by GitHub
parent 5ea386da9e
commit e31c1fe0f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@
The Initial Developer of the Original Code is The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com> Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2008-2017 Portions created by the Initial Developer are Copyright (C) 2008-2018
the Initial Developer. All Rights Reserved. the Initial Developer. All Rights Reserved.
Contributor(s): Contributor(s):
@ -940,7 +940,7 @@
$hud[$n]['html'] .= "<span class='hud_title' style='cursor: default;'>".$text['label-system_status']."</span>"; $hud[$n]['html'] .= "<span class='hud_title' style='cursor: default;'>".$text['label-system_status']."</span>";
//disk usage //disk usage
if (stristr(PHP_OS, 'Linux')) { if (PHP_OS == 'FreeBSD' || PHP_OS == 'Linux') {
$df = shell_exec("/usr/bin/which df"); $df = shell_exec("/usr/bin/which df");
if($df){ if($df){
$tmp = shell_exec($df." /home 2>&1"); $tmp = shell_exec($df." /home 2>&1");