mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
minor fix
This commit is contained in:
parent
6f498d6d5d
commit
ea87392bc1
@ -91,18 +91,20 @@ foreach ($servers as $server) {
|
|||||||
|
|
||||||
// Status
|
// Status
|
||||||
$data[1] = ui_print_status_image(STATUS_SERVER_OK, '', true);
|
$data[1] = ui_print_status_image(STATUS_SERVER_OK, '', true);
|
||||||
if (($server['status'] == 0) || (($date - time_w_fixed_tz($server['keepalive'])) > ($server['server_keepalive']) * 2)) {
|
if ($server['status'] == -1) {
|
||||||
$data[1] = ui_print_status_image(
|
|
||||||
STATUS_SERVER_DOWN,
|
|
||||||
__('Server is stopped.'),
|
|
||||||
true
|
|
||||||
);
|
|
||||||
} else if ($server['status'] == -1) {
|
|
||||||
$data[1] = ui_print_status_image(
|
$data[1] = ui_print_status_image(
|
||||||
STATUS_SERVER_CRASH,
|
STATUS_SERVER_CRASH,
|
||||||
__('Server has crashed.'),
|
__('Server has crashed.'),
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
|
} else if (($server['status'] == 0)
|
||||||
|
|| (($date - time_w_fixed_tz($server['keepalive'])) > ($server['server_keepalive']) * 2)
|
||||||
|
) {
|
||||||
|
$data[1] = ui_print_status_image(
|
||||||
|
STATUS_SERVER_DOWN,
|
||||||
|
__('Server is stopped.'),
|
||||||
|
true
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Type
|
// Type
|
||||||
|
Loading…
x
Reference in New Issue
Block a user