From da4a35d506f6aa3a59f04905b35382e39f5d629e Mon Sep 17 00:00:00 2001 From: Yasen Pramatarov Date: Mon, 13 Jan 2025 10:45:31 +0200 Subject: [PATCH] Adds the new messages system to all pages --- app/pages/agents.php | 4 ++++ app/pages/components.php | 4 ++++ app/pages/conferences.php | 4 ++++ app/pages/config.php | 4 ++++ app/pages/data.php | 4 ++++ app/pages/help.php | 4 ++++ app/pages/logs.php | 4 ++++ app/pages/participants.php | 4 ++++ app/pages/profile.php | 4 ++++ app/pages/status.php | 4 ++++ 10 files changed, 40 insertions(+) diff --git a/app/pages/agents.php b/app/pages/agents.php index 01ae9bd..a8d6262 100644 --- a/app/pages/agents.php +++ b/app/pages/agents.php @@ -8,6 +8,10 @@ * to allow time-based invalidation if needed. */ +// Get any new messages +include '../app/includes/messages.php'; +include '../app/includes/messages-show.php'; + $action = $_REQUEST['action'] ?? ''; $agent = $_REQUEST['agent'] ?? ''; require '../app/classes/agent.php'; diff --git a/app/pages/components.php b/app/pages/components.php index 32a3cbd..05aa341 100644 --- a/app/pages/components.php +++ b/app/pages/components.php @@ -8,6 +8,10 @@ * Supports pagination. */ +// Get any new messages +include '../app/includes/messages.php'; +include '../app/includes/messages-show.php'; + require '../app/classes/component.php'; // connect to database diff --git a/app/pages/conferences.php b/app/pages/conferences.php index 1c13662..ebd4307 100644 --- a/app/pages/conferences.php +++ b/app/pages/conferences.php @@ -8,6 +8,10 @@ * Supports pagination. */ +// Get any new messages +include '../app/includes/messages.php'; +include '../app/includes/messages-show.php'; + require '../app/classes/conference.php'; // connect to database diff --git a/app/pages/config.php b/app/pages/config.php index cc58a40..2b0a037 100644 --- a/app/pages/config.php +++ b/app/pages/config.php @@ -7,6 +7,10 @@ * hosts, agents, and the configuration file itself. */ +// Get any new messages +include '../app/includes/messages.php'; +include '../app/includes/messages-show.php'; + $action = $_REQUEST['action'] ?? ''; $agent = $_REQUEST['agent'] ?? ''; $host = $_REQUEST['host'] ?? ''; diff --git a/app/pages/data.php b/app/pages/data.php index e1b98d6..e583a70 100644 --- a/app/pages/data.php +++ b/app/pages/data.php @@ -1,5 +1,9 @@ diff --git a/app/pages/logs.php b/app/pages/logs.php index 79faa0d..9d1c69a 100644 --- a/app/pages/logs.php +++ b/app/pages/logs.php @@ -7,6 +7,10 @@ * It supports pagination and filtering, and generates a widget to display the logs. */ +// Get any new messages +include '../app/includes/messages.php'; +include '../app/includes/messages-show.php'; + // Check for rights; user or system if (($userObject->hasRight($user_id, 'superuser') || $userObject->hasRight($user_id, 'view app logs'))) { diff --git a/app/pages/participants.php b/app/pages/participants.php index 50fea2a..97a13f8 100644 --- a/app/pages/participants.php +++ b/app/pages/participants.php @@ -8,6 +8,10 @@ * Supports pagination. */ +// Get any new messages +include '../app/includes/messages.php'; +include '../app/includes/messages-show.php'; + require '../app/classes/participant.php'; // connect to database diff --git a/app/pages/profile.php b/app/pages/profile.php index 129cc9d..edbf30e 100644 --- a/app/pages/profile.php +++ b/app/pages/profile.php @@ -12,6 +12,10 @@ * - `edit`: Edit user profile details, rights, or avatar. */ +// Get any new messages +include '../app/includes/messages.php'; +include '../app/includes/messages-show.php'; + $action = $_REQUEST['action'] ?? ''; // if a form is submitted, it's from the edit page diff --git a/app/pages/status.php b/app/pages/status.php index bb98cd4..beaf2c0 100644 --- a/app/pages/status.php +++ b/app/pages/status.php @@ -8,6 +8,10 @@ * It generates output for each platform and agent. */ +// Get any new messages +include '../app/includes/messages.php'; +include '../app/includes/messages-show.php'; + require '../app/classes/agent.php'; $agentObject = new Agent($dbWeb);