Log when users navigate to the credentials page for a client
This commit is contained in:
+5
-2
@@ -6,6 +6,9 @@ $order = "ASC";
|
|||||||
|
|
||||||
require_once "inc_all_client.php";
|
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
|
// Location Filter
|
||||||
if (isset($_GET['location']) & !empty($_GET['location'])) {
|
if (isset($_GET['location']) & !empty($_GET['location'])) {
|
||||||
@@ -96,7 +99,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="btn-group float-right">
|
<div class="btn-group float-right">
|
||||||
<a href="?client_id=<?php echo $client_id; ?>&archived=<?php if($archived == 1){ echo 0; } else { echo 1; } ?>"
|
<a href="?client_id=<?php echo $client_id; ?>&archived=<?php if($archived == 1){ echo 0; } else { echo 1; } ?>"
|
||||||
class="btn btn-<?php if($archived == 1){ echo "primary"; } else { echo "default"; } ?>">
|
class="btn btn-<?php if($archived == 1){ echo "primary"; } else { echo "default"; } ?>">
|
||||||
<i class="fa fa-fw fa-archive mr-2"></i>Archived
|
<i class="fa fa-fw fa-archive mr-2"></i>Archived
|
||||||
</a>
|
</a>
|
||||||
@@ -159,7 +162,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
$login_uri = nullable_htmlentities($row['login_uri']);
|
$login_uri = nullable_htmlentities($row['login_uri']);
|
||||||
if (empty($login_uri)) {
|
if (empty($login_uri)) {
|
||||||
$login_uri_display = "-";
|
$login_uri_display = "-";
|
||||||
} else {
|
} else {
|
||||||
$login_uri_display = truncate($login_uri,40) . "<button class='btn btn-sm clipboardjs' type='button' data-clipboard-text='$login_uri'><i class='far fa-copy text-secondary'></i></button>";
|
$login_uri_display = truncate($login_uri,40) . "<button class='btn btn-sm clipboardjs' type='button' data-clipboard-text='$login_uri'><i class='far fa-copy text-secondary'></i></button>";
|
||||||
}
|
}
|
||||||
$login_uri_2 = nullable_htmlentities($row['login_uri_2']);
|
$login_uri_2 = nullable_htmlentities($row['login_uri_2']);
|
||||||
|
|||||||
Reference in New Issue
Block a user