From b2fcaf6793f2f274f4b8de1cb748482a4fb47ede Mon Sep 17 00:00:00 2001 From: Yasen Pramatarov Date: Fri, 17 Jan 2025 16:08:37 +0200 Subject: [PATCH] HTML fixes --- app/pages/status.php | 13 +++---- app/templates/security.php | 58 +++++++++++++++---------------- app/templates/status-agent.php | 31 ++++++++++------- app/templates/status-platform.php | 28 +++++++++------ app/templates/status-server.php | 39 ++++++++++++--------- 5 files changed, 95 insertions(+), 74 deletions(-) diff --git a/app/pages/status.php b/app/pages/status.php index beaf2c0..d79e232 100644 --- a/app/pages/status.php +++ b/app/pages/status.php @@ -23,9 +23,9 @@ foreach ($platformsAll as $platform) { // check if we can connect to the jilo database $response = connectDB($config, 'jilo', $platform['jilo_database'], $platform['id']); if ($response['error'] !== null) { - $jilo_database_status = '' . htmlspecialchars($response['error']) . ''; + $jilo_database_status = $response['error']; } else { - $jilo_database_status = 'OK'; + $jilo_database_status = 'OK'; } include '../app/templates/status-platform.php'; @@ -44,19 +44,19 @@ foreach ($platformsAll as $platform) { // determine agent availability based on response data if (json_last_error() === JSON_ERROR_NONE) { - $agent_availability = 'unknown'; + $agent_availability = 'unknown'; foreach ($agent_data as $key => $value) { if ($key === 'error') { - $agent_availability = '' . htmlspecialchars($value) . ''; + $agent_availability = $value; break; } if (preg_match('/_state$/', $key)) { if ($value === 'error') { - $agent_availability = 'not running'; + $agent_availability = 'not running'; break; } if ($value === 'running') { - $agent_availability = 'running'; + $agent_availability = 'running'; break; } } @@ -66,6 +66,7 @@ foreach ($platformsAll as $platform) { } include '../app/templates/status-agent.php'; + echo ''; } } diff --git a/app/templates/security.php b/app/templates/security.php index 861426b..b897c4e 100644 --- a/app/templates/security.php +++ b/app/templates/security.php @@ -1,22 +1,22 @@ - -
+ +
-

Security Settings

+

Security settings

@@ -24,12 +24,12 @@
hasRight($user_id, 'superuser') || $userObject->hasRight($user_id, 'edit whitelist'))) { ?> - +
-

IP Whitelist

+

IP whitelist

IP addresses and networks that will always bypass the ratelimiting login checks.
@@ -37,7 +37,7 @@
- +
@@ -45,11 +45,11 @@
- +
- +
@@ -57,11 +57,11 @@ - + - - + + @@ -91,12 +91,12 @@ hasRight($user_id, 'superuser') || $userObject->hasRight($user_id, 'edit blacklist'))) { ?> - +
-

IP Blacklist

+

IP blacklist

IP addresses and networks that will always get blocked at login.
@@ -104,7 +104,7 @@
- +
@@ -115,11 +115,11 @@
- +
- +
@@ -127,11 +127,11 @@
IP AddressIP address Network DescriptionAdded ByAdded OnAdded byAdded on Actions
- + - - + + @@ -163,17 +163,17 @@ hasRight($user_id, 'superuser') || $userObject->hasRight($user_id, 'edit ratelimiting'))) { ?> - +
-

Rate Limiting Settings

+

Rate limiting settings

Rate limiting settings control how many failed login attempts are allowed before blocking an IP address.
-

Current Settings

+

Current settings

  • Maximum login attempts: maxAttempts ?>
  • Time window: decayMinutes ?> minutes
  • @@ -185,13 +185,13 @@

-

Recent Failed Login Attempts

+

Recent failed login attempts

IP AddressIP address Network ReasonAdded ByAdded OnAdded byAdded on Expires Actions
- + - + @@ -220,4 +220,4 @@ - + diff --git a/app/templates/status-agent.php b/app/templates/status-agent.php index e85c4c8..b979e13 100644 --- a/app/templates/status-agent.php +++ b/app/templates/status-agent.php @@ -1,14 +1,19 @@ - -
-
-

- Jilo Agent : - -
- host: , - port: , - endpoint: -

-
-
+ +
+
+ Jilo agent + + + : + + + + +
+
+ Host: + Port: + Endpoint: +
+
diff --git a/app/templates/status-platform.php b/app/templates/status-platform.php index 44d9e4e..e74fa67 100644 --- a/app/templates/status-platform.php +++ b/app/templates/status-platform.php @@ -1,13 +1,21 @@ - -
-
-
-

- Jitsi Meet platform: -
- jilo database: , - status: -

+ +
+
+

+ + Jitsi platform "" + +

+ Remote Jitsi Meet installation with its database and agents here. +
+
+
+
+ Jilo database: +
+ Status: +
+
diff --git a/app/templates/status-server.php b/app/templates/status-server.php index 9a33722..cf5dbf0 100644 --- a/app/templates/status-server.php +++ b/app/templates/status-server.php @@ -1,19 +1,26 @@ + +
+
+
+

Jilo status

- -
-

Jilo platform status

-
-

- Jilo Server: - - running - - not running - -
- host: , - port: , - endpoint: -

+ +
+
+

Jilo server

+ Responsible for periodic checks of remote agents and storing received data. +
+
+
+
+ Jilo server: + + + +
+ Host: + Port: + Endpoint:
+
IP AddressIP sddress UsernameAttempted AtAttempted at