user management show who banned
This commit is contained in:
parent
e1c8316267
commit
4ce172a9ee
|
|
@ -39,7 +39,7 @@ foreach($bans as $ban) {
|
||||||
"banType" => $type,
|
"banType" => $type,
|
||||||
"banReason" => cleanOutput($ban['banReason']),
|
"banReason" => cleanOutput($ban['banReason']),
|
||||||
"bannedUser" => cleanOutput(getUsername($ban['uid'])),
|
"bannedUser" => cleanOutput(getUsername($ban['uid'])),
|
||||||
"whoBannedUser" => $ban['whoBanned'],
|
"whoBannedUser" => cleanOutput(getUsername($ban['whoBanned'])),
|
||||||
"whenBanned" => date("m/d/Y", $ban['whenBanned']),
|
"whenBanned" => date("m/d/Y", $ban['whenBanned']),
|
||||||
"banExpiration" => $banexpire
|
"banExpiration" => $banexpire
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -66,6 +66,7 @@ $body = <<<EOT
|
||||||
<table class="table atable-dark">
|
<table class="table atable-dark">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
<th>Moderator</th>
|
||||||
<th>Date</th>
|
<th>Date</th>
|
||||||
<th>Username</th>
|
<th>Username</th>
|
||||||
<th>Reason</th>
|
<th>Reason</th>
|
||||||
|
|
@ -178,6 +179,7 @@ function banUser()
|
||||||
function getBanlist()
|
function getBanlist()
|
||||||
{
|
{
|
||||||
html = `<tr>
|
html = `<tr>
|
||||||
|
<td>{whoBannedUser}</td>
|
||||||
<td>{whenBanned}</td>
|
<td>{whenBanned}</td>
|
||||||
<td>{bannedUser}</td>
|
<td>{bannedUser}</td>
|
||||||
<td>{banReason}</td>
|
<td>{banReason}</td>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue