mirror of
https://github.com/ShaYmez/ezservermonitor-web.git
synced 2024-11-15 12:51:50 -05:00
Fix on retreive users connected on system block
This commit is contained in:
parent
f6a714596e
commit
f71fb5bfc1
@ -59,15 +59,10 @@ else
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Current users
|
// Current users
|
||||||
if (!($current_users_cmd = shell_exec('who -q')))
|
if (!($current_users = shell_exec('who -u | awk \'{ print $1 }\' | wc -l')))
|
||||||
{
|
{
|
||||||
$current_users = 'N.A';
|
$current_users = 'N.A';
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
$arr_user = explode('=', $current_users_cmd);
|
|
||||||
$current_users = $arr_user[1];
|
|
||||||
}
|
|
||||||
|
|
||||||
// Server datetime
|
// Server datetime
|
||||||
if (!($server_date = shell_exec('/bin/date')))
|
if (!($server_date = shell_exec('/bin/date')))
|
||||||
|
Loading…
Reference in New Issue
Block a user