Checks jilo server only when logged in
parent
36f287e169
commit
fee54aa827
|
@ -146,7 +146,6 @@ if ($page == 'logout') {
|
||||||
$userDetails = $userObject->getUserDetails($user_id);
|
$userDetails = $userObject->getUserDetails($user_id);
|
||||||
$userRights = $userObject->getUserRights($user_id);
|
$userRights = $userObject->getUserRights($user_id);
|
||||||
$userTimezone = isset($userDetails[0]['timezone']) ? $userDetails[0]['timezone'] : 'UTC'; // Default to UTC if no timezone is set
|
$userTimezone = isset($userDetails[0]['timezone']) ? $userDetails[0]['timezone'] : 'UTC'; // Default to UTC if no timezone is set
|
||||||
}
|
|
||||||
|
|
||||||
// check if the Jilo Server is running
|
// check if the Jilo Server is running
|
||||||
require '../app/classes/server.php';
|
require '../app/classes/server.php';
|
||||||
|
@ -159,6 +158,7 @@ if ($page == 'logout') {
|
||||||
if (!$server_status) {
|
if (!$server_status) {
|
||||||
$error = 'The Jilo Server is not running. Some data may be old and incorrect.';
|
$error = 'The Jilo Server is not running. Some data may be old and incorrect.';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// page building
|
// page building
|
||||||
include '../app/templates/page-header.php';
|
include '../app/templates/page-header.php';
|
||||||
|
|
Loading…
Reference in New Issue