From 3481431eb54ac5422ea99de999838ceae79029e4 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Tue, 3 Mar 2026 15:50:14 -0500 Subject: [PATCH] Add New ticket button in client top header button, spruce up credential favorites on overview --- agent/assets.php | 9 +-- agent/client_overview.php | 92 +++++++++++++------------- agent/includes/inc_client_top_head.php | 6 ++ 3 files changed, 54 insertions(+), 53 deletions(-) diff --git a/agent/assets.php b/agent/assets.php index 4b58ec10..ab3b6774 100644 --- a/agent/assets.php +++ b/agent/assets.php @@ -626,7 +626,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); } $asset_tag_id_array[] = $asset_tag_id; - $asset_tag_name_display_array[] = "$asset_tag_name"; + $asset_tag_name_display_array[] = "$asset_tag_name"; } $asset_tags_display = implode('', $asset_tag_name_display_array); @@ -647,12 +647,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); "; } ?>
- -
- -
- + diff --git a/agent/client_overview.php b/agent/client_overview.php index ed1bfa64..a5cbb2a7 100644 --- a/agent/client_overview.php +++ b/agent/client_overview.php @@ -355,56 +355,56 @@ $sql_asset_retired = mysqli_query(
Favorite Credentials
-
- - " . truncate($credential_uri,40) . ""; - } - $credential_uri_2 = sanitize_url($row['credential_uri_2']); - $credential_username = nullable_htmlentities(decryptCredentialEntry($row['credential_username'])); - if (empty($credential_username)) { - $credential_username_display = "-"; - } else { - $credential_username_display = "$credential_username"; - } - $credential_password = nullable_htmlentities(decryptCredentialEntry($row['credential_password'])); - $credential_otp_secret = nullable_htmlentities($row['credential_otp_secret']); - $credential_id_with_secret = '"' . $row['credential_id'] . '","' . $row['credential_otp_secret'] . '"'; - if (empty($credential_otp_secret)) { - $otp_display = "-"; - } else { - $otp_display = " Hover.."; - } +
+ - - - - - - - " . truncate($credential_uri,40) . ""; + } + $credential_uri_2 = sanitize_url($row['credential_uri_2']); + $credential_username = nullable_htmlentities(decryptCredentialEntry($row['credential_username'])); + if (empty($credential_username)) { + $credential_username_display = "-"; + } else { + $credential_username_display = "$credential_username"; + } + $credential_password = nullable_htmlentities(decryptCredentialEntry($row['credential_password'])); + $credential_otp_secret = nullable_htmlentities($row['credential_otp_secret']); + $credential_id_with_secret = '"' . $row['credential_id'] . '","' . $row['credential_otp_secret'] . '"'; + if (empty($credential_otp_secret)) { + $otp_display = ""; + } else { + $otp_display = " Hover.."; } - ?> -
- - - - - -
-
+ ?> + + + + + + + + + +
+ + + + + + diff --git a/agent/includes/inc_client_top_head.php b/agent/includes/inc_client_top_head.php index f9452c83..a72b2d3f 100644 --- a/agent/includes/inc_client_top_head.php +++ b/agent/includes/inc_client_top_head.php @@ -17,6 +17,12 @@ data-modal-url="modals/client/client_edit.php?id="> Edit Client + = 2) { ?> + + + New Ticket + + = 2) { ?>