From 78eead24f711d02d2944848be8f9326446ed58a1 Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Fri, 30 Aug 2024 22:49:18 +0100 Subject: [PATCH] Log when users navigate to the credentials page for a client --- client_logins.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/client_logins.php b/client_logins.php index ae9753a7..61eeef59 100644 --- a/client_logins.php +++ b/client_logins.php @@ -6,6 +6,9 @@ $order = "ASC"; require_once "inc_all_client.php"; +// Log when users load the Credentials/Logins page +mysqli_query($mysqli,"INSERT INTO logs SET log_type = 'Credential', log_action = 'View', log_description = '$session_name viewed the Credentials page for client', log_ip = '$session_ip', log_user_agent = '$session_user_agent', log_client_id = $client_id, log_user_id = $session_user_id"); + // Location Filter if (isset($_GET['location']) & !empty($_GET['location'])) { @@ -96,7 +99,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
- "> Archived @@ -159,7 +162,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); $login_uri = nullable_htmlentities($row['login_uri']); if (empty($login_uri)) { $login_uri_display = "-"; - } else { + } else { $login_uri_display = truncate($login_uri,40) . ""; } $login_uri_2 = nullable_htmlentities($row['login_uri_2']);