Checks jilo server only when logged in

main
Yasen Pramatarov 2024-10-23 15:13:01 +03:00
parent 36f287e169
commit fee54aa827
1 changed files with 10 additions and 10 deletions

View File

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