diff --git a/app/helpers/pagination.php b/app/helpers/pagination.php index 601a124..d626de6 100644 --- a/app/helpers/pagination.php +++ b/app/helpers/pagination.php @@ -26,7 +26,7 @@ $step_pages = 10; if ($browse_page > 1) { - echo 'first'; + echo 'first'; } else { echo 'first'; } @@ -47,20 +47,20 @@ if ($i === $browse_page) { // current page, no link if ($browse_page > 1) { - echo '<<'; + echo '<<'; } else { echo '<<'; } - echo '[' . $i . ']'; + echo '[' . htmlspecialchars($i) . ']'; if ($browse_page < $page_count) { - echo '>>'; + echo '>>'; } else { echo '>>'; } } else { // other pages - echo '[' . $i . ']'; + echo '[' . htmlspecialchars($i) . ']'; } // show ellipses between distant pages } elseif ( @@ -72,7 +72,7 @@ } if ($browse_page < $page_count) { - echo 'last'; + echo 'last'; } else { echo 'last'; } diff --git a/app/helpers/sanitize.php b/app/helpers/sanitize.php index 4ed6b19..be9bcf8 100644 --- a/app/helpers/sanitize.php +++ b/app/helpers/sanitize.php @@ -1,5 +1,6 @@ diff --git a/app/pages/config.php b/app/pages/config.php index 1ef2604..90eea9a 100644 --- a/app/pages/config.php +++ b/app/pages/config.php @@ -17,12 +17,6 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') { // $content = file_get_contents($config_file); // $updatedContent = $content; - // sanitize - $type = htmlspecialchars($_POST['type']); - $url = htmlspecialchars($_POST['url']); - $secret_key = htmlspecialchars($_POST['secret_key']); - $name = htmlspecialchars($_POST['name']); - // new agent adding if (isset($_POST['new']) && isset($_POST['item']) && $_POST['new'] === 'true' && $_POST['item'] === 'agent') { $newAgent = [ diff --git a/app/templates/agent-list.php b/app/templates/agent-list.php index bba0403..8cb9797 100644 --- a/app/templates/agent-list.php +++ b/app/templates/agent-list.php @@ -1,14 +1,14 @@
-

Jilo Agents on platform ()

+

Jilo Agents on platform ()

- agent id: - agent type: () + agent id: + agent type: ()
- endpoint: + endpoint:
- - - - + + + + - - - - + + + +

-
click a button to display data from the agent.
+
click a button to display data from the agent.
diff --git a/app/templates/block-message.php b/app/templates/block-message.php index 50a3133..4cb5df0 100644 --- a/app/templates/block-message.php +++ b/app/templates/block-message.php @@ -1,7 +1,7 @@ -
+
-
+
diff --git a/app/templates/block-results-filter.php b/app/templates/block-results-filter.php index 5c984b5..18ea088 100644 --- a/app/templates/block-results-filter.php +++ b/app/templates/block-results-filter.php @@ -1,15 +1,15 @@
-
+ - /> + /> - /> - /> - /> + /> + /> + /> - maxlength="15" size="15" /> + maxlength="15" size="15" /> diff --git a/app/templates/config-add-agent.php b/app/templates/config-add-agent.php index c93e732..15f0bd1 100644 --- a/app/templates/config-add-agent.php +++ b/app/templates/config-add-agent.php @@ -1,10 +1,10 @@
-

Add new Jilo Agent to Jitsi platform ""

+

Add new Jilo Agent to Jitsi platform ""

- +
@@ -15,8 +15,8 @@ @@ -50,7 +50,7 @@
- Cancel + Cancel
diff --git a/app/templates/config-add-platform.php b/app/templates/config-add-platform.php index b5c0666..3f1eb8f 100644 --- a/app/templates/config-add-platform.php +++ b/app/templates/config-add-platform.php @@ -4,7 +4,7 @@

Add new Jitsi platform

-
+
@@ -42,7 +42,7 @@
- Cancel + Cancel
diff --git a/app/templates/config-delete-agent.php b/app/templates/config-delete-agent.php index ad53cca..fd2381d 100644 --- a/app/templates/config-delete-agent.php +++ b/app/templates/config-delete-agent.php @@ -1,30 +1,30 @@
-

Jilo Agent configuration for Jitsi platform ""

+

Jilo Agent configuration for Jitsi platform ""

delete an agent:

-
+ $value) { // if ($key === 'id') continue; ?>
- +
-
- +
+

- +

Are you sure you want to delete this agent?


- Cancel + Cancel
diff --git a/app/templates/config-delete-platform.php b/app/templates/config-delete-platform.php index d115e7d..a00de9b 100644 --- a/app/templates/config-delete-platform.php +++ b/app/templates/config-delete-platform.php @@ -1,30 +1,30 @@
-

Jilo web configuration for Jitsi platform ""

+

Jilo web configuration for Jitsi platform ""

delete a platform:

-
+ $value) { if ($key === 'id') continue; ?>
- +
-
+

- +

Are you sure you want to delete this platform?


- Cancel + Cancel
diff --git a/app/templates/config-edit-agent.php b/app/templates/config-edit-agent.php index 0f50e8e..fe32be5 100644 --- a/app/templates/config-edit-agent.php +++ b/app/templates/config-edit-agent.php @@ -1,10 +1,10 @@
-

Jilo Agent configuration for Jitsi platform ""

+

Jilo Agent configuration for Jitsi platform ""

edit the agent details:

-
+
@@ -15,8 +15,8 @@ @@ -30,7 +30,7 @@ *
- +

URL of the Jilo Agent API (https://example.com:8081)

@@ -41,15 +41,15 @@ *
- +

secret key for generating the access JWT token


- - Cancel + + Cancel
diff --git a/app/templates/config-edit-platform.php b/app/templates/config-edit-platform.php index 98af5f8..68cd81a 100644 --- a/app/templates/config-edit-platform.php +++ b/app/templates/config-edit-platform.php @@ -1,21 +1,21 @@
-

Jilo web configuration for Jitsi platform ""

+

Jilo web configuration for Jitsi platform ""

edit the platform details:

-
+ $value) { if ($key === 'id') continue; ?>
- + *
- +

descriptive name for the platform

@@ -27,8 +27,8 @@ foreach ($platformDetails[0] as $key => $value) {

- - Cancel + + Cancel
diff --git a/app/templates/config-list-configjs.php b/app/templates/config-list-configjs.php index f4bd96f..9fbce06 100644 --- a/app/templates/config-list-configjs.php +++ b/app/templates/config-list-configjs.php @@ -1,20 +1,20 @@
-

Configuration of the Jitsi platform

+

Configuration of the Jitsi platform

diff --git a/app/templates/config-list-interfaceconfigjs.php b/app/templates/config-list-interfaceconfigjs.php index cf6a4f7..abfb015 100644 --- a/app/templates/config-list-interfaceconfigjs.php +++ b/app/templates/config-list-interfaceconfigjs.php @@ -1,20 +1,20 @@
-

Configuration of the Jitsi platform

+

Configuration of the Jitsi platform

diff --git a/app/templates/config-list.php b/app/templates/config-list.php index eb18c78..3f90551 100644 --- a/app/templates/config-list.php +++ b/app/templates/config-list.php @@ -11,33 +11,33 @@ echo "\n"; ?>
-

platforms configuration  add new

+

platforms configuration  add new

getAgentDetails($platform_array['id']); ?> - +
- -
+ +
- platform () + platform ()
-
+
@@ -49,36 +49,36 @@ echo "\n"; ?>
- : + :
- +

-

jilo agents on platform () +

jilo agents on platform ()
- total   - + total   + add new

- +
- agent id : + agent id :
@@ -86,7 +86,7 @@ echo "\n"; agent type:
- +
@@ -94,7 +94,7 @@ echo "\n"; endpoint:
- +
diff --git a/app/templates/error-notfound.php b/app/templates/error-notfound.php index a33ff0b..67bb144 100644 --- a/app/templates/error-notfound.php +++ b/app/templates/error-notfound.php @@ -2,7 +2,7 @@
The page is not found.
- go to front page or to your profile + go to front page or to your profile
diff --git a/app/templates/error-unauthorized.php b/app/templates/error-unauthorized.php index 699e7ee..9a81106 100644 --- a/app/templates/error-unauthorized.php +++ b/app/templates/error-unauthorized.php @@ -2,7 +2,7 @@
You have no access to this page.
- go to front page or to your profile + go to front page or to your profile
diff --git a/app/templates/event-list-components.php b/app/templates/event-list-components.php index 51d3aa1..36c88a9 100644 --- a/app/templates/event-list-components.php +++ b/app/templates/event-list-components.php @@ -4,14 +4,14 @@
-
+ - /> + /> - /> - /> - /> - /> + /> + /> + /> + />
@@ -31,10 +31,10 @@
- -
+ +
-

time period: -

+

time period: -

@@ -42,7 +42,7 @@ - + @@ -51,11 +51,11 @@ $column) { ?> - + - + - + @@ -73,4 +73,4 @@ if ($widget['pagination'] && $item_count > $items_per_page) {
- + diff --git a/app/templates/event-list-conferences.php b/app/templates/event-list-conferences.php index f3aa04b..6dbb67a 100644 --- a/app/templates/event-list-conferences.php +++ b/app/templates/event-list-conferences.php @@ -4,13 +4,13 @@
-
+ - /> + /> - /> - /> - /> + /> + /> + />
@@ -30,10 +30,10 @@
- -
+ +
-

time period: -

+

time period: -

@@ -41,7 +41,7 @@ - + @@ -55,21 +55,21 @@ foreach ($row as $key => $column) { if ($key === 'conference ID' && isset($conferenceId) && $conferenceId === $column) { ?> - + - + - + - + - + - + - + - + @@ -87,4 +87,4 @@ if ($widget['pagination'] && $item_count > $items_per_page) {
- + diff --git a/app/templates/form-login.php b/app/templates/form-login.php index 650fcde..c9d9be8 100644 --- a/app/templates/form-login.php +++ b/app/templates/form-login.php @@ -3,7 +3,7 @@

Login

Welcome to JILO!
Please enter login credentials:

-
+
diff --git a/app/templates/form-register.php b/app/templates/form-register.php index f95a36d..84d83b2 100644 --- a/app/templates/form-register.php +++ b/app/templates/form-register.php @@ -3,7 +3,7 @@

Register

Enter credentials for registration:

- +
diff --git a/app/templates/logs-filter.php b/app/templates/logs-filter.php index 7de2cc6..8fb49cf 100644 --- a/app/templates/logs-filter.php +++ b/app/templates/logs-filter.php @@ -3,11 +3,11 @@
- /> + /> - /> - /> - /> + /> + /> + /> diff --git a/app/templates/logs-list.php b/app/templates/logs-list.php index 4456642..0f662f6 100644 --- a/app/templates/logs-list.php +++ b/app/templates/logs-list.php @@ -1,10 +1,10 @@ - - diff --git a/app/templates/page-header.php b/app/templates/page-header.php index 028210a..7108eed 100644 --- a/app/templates/page-header.php +++ b/app/templates/page-header.php @@ -2,13 +2,13 @@ - - + + - + - + @@ -24,10 +24,10 @@ })(); - + Jilo Web - + diff --git a/app/templates/page-menu.php b/app/templates/page-menu.php index 6db1344..6a3a840 100644 --- a/app/templates/page-menu.php +++ b/app/templates/page-menu.php @@ -4,11 +4,11 @@
diff --git a/app/templates/page-sidebar.php b/app/templates/page-sidebar.php index c781883..8a630cb 100644 --- a/app/templates/page-sidebar.php +++ b/app/templates/page-sidebar.php @@ -6,8 +6,8 @@ - - format('H:i'); ?>   + + format('H:i')) ?>  
@@ -16,22 +16,22 @@ $timeNow = new DateTime('now', new DateTimeZone($userTimezone));
  • statistics

  • - +
  • general stats
  • - +
  • conferences
  • - +
  • participants
  • - +
  • components
  • @@ -40,14 +40,14 @@ $timeNow = new DateTime('now', new DateTimeZone($userTimezone));
  • jilo-web config

  • hasRight($user_id, 'view config file')) {?> -
    +
  • config
  • hasRight($user_id, 'view app logs')) {?> - +
  • logs
  • @@ -56,17 +56,17 @@ $timeNow = new DateTime('now', new DateTimeZone($userTimezone));
  • current Jitsi platform

  • -
    +
  • config.js
  • - +
  • interface_config.js
  • - +
  • jilo agents
  • diff --git a/app/templates/profile-edit.php b/app/templates/profile-edit.php index e76e1d2..7e47f06 100644 --- a/app/templates/profile-edit.php +++ b/app/templates/profile-edit.php @@ -2,15 +2,15 @@
    -

    Profile of

    +

    Profile of

    -
    +

    edit the profile fields

    - avatar + avatar
    - +
    @@ -45,7 +45,7 @@
    - +
    @@ -54,7 +54,7 @@
    - +
    @@ -65,8 +65,8 @@
    @@ -78,7 +78,7 @@
    - +
    @@ -98,7 +98,7 @@ } ?>
    /> - +
    @@ -107,7 +107,7 @@

    - Cancel + Cancel

    @@ -123,7 +123,7 @@
    @@ -156,7 +156,7 @@ document.getElementById('avatar-upload').addEventListener('change', function(eve // Avatar file size and type control document.getElementById('avatar-upload').addEventListener('change', function() { const maxFileSize = 500 * 1024; // 500 KB in bytes - const currentAvatar = ''; // current avatar + const currentAvatar = ''; // current avatar const file = this.files[0]; if (file) { diff --git a/app/templates/profile.php b/app/templates/profile.php index ad31f97..f5be915 100644 --- a/app/templates/profile.php +++ b/app/templates/profile.php @@ -2,14 +2,14 @@
    -

    Profile of

    +

    Profile of

    - avatar + avatar
    @@ -20,7 +20,7 @@
    - +
    @@ -29,7 +29,7 @@
    - +
    @@ -38,7 +38,7 @@
    - +
    @@ -48,7 +48,7 @@
    -   () +   ()
    @@ -58,7 +58,7 @@
    - +
    @@ -68,7 +68,7 @@
    - +
    @@ -77,7 +77,7 @@

    - Edit + Edit

    diff --git a/app/templates/widget-monthly.php b/app/templates/widget-monthly.php index 045fb32..26cd004 100644 --- a/app/templates/widget-monthly.php +++ b/app/templates/widget-monthly.php @@ -2,7 +2,7 @@ - -
    + + - + diff --git a/app/templates/widget.php b/app/templates/widget.php index 888ab79..b8f3881 100644 --- a/app/templates/widget.php +++ b/app/templates/widget.php @@ -1,7 +1,7 @@ - -
    + + - + diff --git a/public_html/index.php b/public_html/index.php index 9b795a8..114f397 100644 --- a/public_html/index.php +++ b/public_html/index.php @@ -15,7 +15,7 @@ // flush it later only when there is no redirect ob_start(); -// sanitize all vars that may end up in URLs or forms +// sanitize all input vars that may end up in URLs or forms require '../app/helpers/sanitize.php'; require '../app/helpers/errors.php';