|
|
@ -65,17 +65,17 @@ function getBanlist() {
|
|
|
|
$user = null;
|
|
|
|
$user = null;
|
|
|
|
|
|
|
|
|
|
|
|
if (!empty($ban['ip']))
|
|
|
|
if (!empty($ban['ip']))
|
|
|
|
$user = censorIP($ban['ip']->toString());
|
|
|
|
$user = censorIP((string)$ban['ip']);
|
|
|
|
|
|
|
|
|
|
|
|
if (!empty($ban['lastnickname']))
|
|
|
|
if (!empty($ban['lastnickname']))
|
|
|
|
$user = $ban['lastnickname']->toString();
|
|
|
|
$user = (string)$ban['lastnickname'];
|
|
|
|
|
|
|
|
|
|
|
|
if (empty($user))
|
|
|
|
if (empty($user))
|
|
|
|
$user = "<i>Unknown</i>";
|
|
|
|
$user = "<i>Unknown</i>";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$reason = $ban['reason'];
|
|
|
|
$reason = $ban['reason'];
|
|
|
|
$invokername = $ban['invokername']->toString();
|
|
|
|
$invokername = (string)$ban['invokername'];
|
|
|
|
$duration = $ban['duration'];
|
|
|
|
$duration = $ban['duration'];
|
|
|
|
$createdepoch = $ban['created'];
|
|
|
|
$createdepoch = $ban['created'];
|
|
|
|
$expiresepoch = $ban['created'] + $duration;
|
|
|
|
$expiresepoch = $ban['created'] + $duration;
|
|
|
|