user management show who banned

This commit is contained in:
Austin 2021-11-25 03:57:49 -05:00
parent e1c8316267
commit 4ce172a9ee
2 changed files with 3 additions and 1 deletions

View File

@ -39,7 +39,7 @@ foreach($bans as $ban) {
"banType" => $type,
"banReason" => cleanOutput($ban['banReason']),
"bannedUser" => cleanOutput(getUsername($ban['uid'])),
"whoBannedUser" => $ban['whoBanned'],
"whoBannedUser" => cleanOutput(getUsername($ban['whoBanned'])),
"whenBanned" => date("m/d/Y", $ban['whenBanned']),
"banExpiration" => $banexpire
);

View File

@ -66,6 +66,7 @@ $body = <<<EOT
<table class="table atable-dark">
<thead>
<tr>
<th>Moderator</th>
<th>Date</th>
<th>Username</th>
<th>Reason</th>
@ -178,6 +179,7 @@ function banUser()
function getBanlist()
{
html = `<tr>
<td>{whoBannedUser}</td>
<td>{whenBanned}</td>
<td>{bannedUser}</td>
<td>{banReason}</td>