mirror of
https://github.com/easy-wi/developer.git
synced 2025-02-20 11:23:28 +08:00
Voiceserver Banlist Update
Remove useless information and empty cells. Add ban creator, created at and reason. Corrected end date
This commit is contained in:
parent
b1749e81b4
commit
e67130e61e
@ -121,4 +121,8 @@
|
||||
<virtualserver_needed_identity_security_level>Benötigte Sicherheitsstufe</virtualserver_needed_identity_security_level>
|
||||
<virtualserver_reserved_slots>Reservierte Slots</virtualserver_reserved_slots>
|
||||
<welcome>Wilkommensnachicht</welcome>
|
||||
<reason>Grund</reason>
|
||||
<creator>Ersteller</creator>
|
||||
<created>Erstellt</created>
|
||||
<UserID>Name/IP/UID</UserID>
|
||||
</sprache>
|
@ -107,4 +107,8 @@
|
||||
<virtualserver_needed_identity_security_level>Minimum klient identitet sikkerhedsniveau der kræves for at forbinde</virtualserver_needed_identity_security_level>
|
||||
<virtualserver_reserved_slots>Reserverede slots</virtualserver_reserved_slots>
|
||||
<welcome>Velkommen besked</welcome>
|
||||
<reason>Reason</reason>
|
||||
<creator>Creator</creator>
|
||||
<created>Created</created>
|
||||
<UserID>Name/IP/UID</UserID>
|
||||
</sprache>
|
@ -117,4 +117,8 @@
|
||||
<virtualserver_needed_identity_security_level>Minimum client identity security level required to connect</virtualserver_needed_identity_security_level>
|
||||
<virtualserver_reserved_slots>Reserved slots</virtualserver_reserved_slots>
|
||||
<welcome>Welcome message</welcome>
|
||||
<reason>Reason</reason>
|
||||
<creator>Creator</creator>
|
||||
<created>Created</created>
|
||||
<UserID>Name/IP/UID</UserID>
|
||||
</sprache>
|
@ -117,4 +117,8 @@
|
||||
<virtualserver_needed_identity_security_level>Minimum client identity security level required to connect</virtualserver_needed_identity_security_level>
|
||||
<virtualserver_reserved_slots>Reserved slots</virtualserver_reserved_slots>
|
||||
<welcome>Welcome message</welcome>
|
||||
<reason>Reason</reason>
|
||||
<creator>Creator</creator>
|
||||
<created>Created</created>
|
||||
<UserID>Name/IP/UID</UserID>
|
||||
</sprache>
|
@ -1003,7 +1003,38 @@ class TS3 {
|
||||
|
||||
foreach ($rawReturn as $r) {
|
||||
if (isset($r['banid'])) {
|
||||
$return[$r['banid']] = array('ip' => $r['ip'], 'name' => $this->ReplaceFromTS3($r['name']), 'lastnickname' => $this->ReplaceFromTS3($r['lastnickname']), 'blocked' => $r['enforcements'], 'duration' => $r['duration'], 'ends' => date('Y-m-d H:i:s', ($r['created'] + $r['duration'])));
|
||||
|
||||
|
||||
if ($r['ip'] != "") {
|
||||
$v_name = "ip=" . $this->ReplaceFromTS3($r['ip']) . " ";
|
||||
}
|
||||
|
||||
if ($r['name'] != "") {
|
||||
$v_name .= "name=" . $this->ReplaceFromTS3($r['name']) . " ";
|
||||
}
|
||||
|
||||
if ($r['uid'] != "") {
|
||||
$v_name .= "uid=" . $this->ReplaceFromTS3($r['uid']) . " ";
|
||||
}
|
||||
|
||||
if ($r['lastnickname'] != "") {
|
||||
$v_name .= "(" . $this->ReplaceFromTS3($r['lastnickname']) . ")";
|
||||
}
|
||||
|
||||
if ($r['duration'] == 0) {
|
||||
$v_dur = "never";
|
||||
} else {
|
||||
$v_dur = date('Y-m-d H:i:s', ($r['created'] + $r['duration']));
|
||||
}
|
||||
|
||||
$return[$r['banid']] = array('usr_id' => $v_name,
|
||||
'blocked' => $r['enforcements'],
|
||||
'duration' => $r['duration'],
|
||||
'ends' => $v_dur,
|
||||
'created' => date('Y-m-d H:i:s', $r['created']),
|
||||
'creator' => $this->ReplaceFromTS3($r['invokername']),
|
||||
'reason' => $this->ReplaceFromTS3($r['reason']));
|
||||
unset($v_name, $v_dur);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -25,24 +25,22 @@
|
||||
<table id="dataTable" class="table table-bordered table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?php echo $sprache->user;?></th>
|
||||
<th><?php echo $sprache->lastNickname;?></th>
|
||||
<th><?php echo $sprache->ip;?></th>
|
||||
<th><?php echo $sprache->duration.' '.$sprache->seconds;?></th>
|
||||
<th><?php echo $sprache->UserID;?></th>
|
||||
<th><?php echo $sprache->reason;?></th>
|
||||
<th><?php echo $sprache->created;?></th>
|
||||
<th><?php echo $sprache->creator;?></th>
|
||||
<th><?php echo $sprache->ends;?></th>
|
||||
<th><?php echo $sprache->blocked;?></th>
|
||||
<th><?php echo $gsprache->del;?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($banList as $k => $row) { ?>
|
||||
<tr>
|
||||
<td><?php echo $row['name'];?></td>
|
||||
<td><?php echo $row['lastnickname'];?></td>
|
||||
<td><?php echo $row['ip'];?></td>
|
||||
<td><?php echo $row['duration'];?></td>
|
||||
<td><?php echo $row['usr_id'];?></td>
|
||||
<td><?php echo $row['reason'];?></td>
|
||||
<td><?php echo $row['created'];?></td>
|
||||
<td><?php echo $row['creator'];?></td>
|
||||
<td><?php echo $row['ends'];?></td>
|
||||
<td><?php echo $row['blocked'];?></td>
|
||||
<td>
|
||||
<form method="post" action="userpanel.php?w=vo&d=bl&id=<?php echo $id;?>&r=vo" name="form" onsubmit="return confirm('<?php echo $gsprache->sure;?>');">
|
||||
<button class="btn btn-danger btn-sm" id="inputEdit" type="submit"><i class="fa fa-trash-o"></i></button>
|
||||
@ -55,12 +53,11 @@
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th><?php echo $sprache->user;?></th>
|
||||
<th><?php echo $sprache->lastNickname;?></th>
|
||||
<th><?php echo $sprache->ip;?></th>
|
||||
<th><?php echo $sprache->duration.' '.$sprache->seconds;?></th>
|
||||
<th><?php echo $sprache->UserID;?></th>
|
||||
<th><?php echo $sprache->reason;?></th>
|
||||
<th><?php echo $sprache->created;?></th>
|
||||
<th><?php echo $sprache->creator;?></th>
|
||||
<th><?php echo $sprache->ends;?></th>
|
||||
<th><?php echo $sprache->blocked;?></th>
|
||||
<th><?php echo $gsprache->del;?></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
Loading…
x
Reference in New Issue
Block a user