user management show who banned
This commit is contained in:
parent
e1c8316267
commit
4ce172a9ee
|
|
@ -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
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue