Include IP address when informing users they are banned

This commit is contained in:
Trevor Slocum 2020-11-13 13:19:07 -08:00
parent 124d051cb6
commit bce5c8fc30

View File

@ -278,7 +278,7 @@ function checkBanned() {
if ($ban['expire'] == 0 || $ban['expire'] > time()) {
$expire = ($ban['expire'] > 0) ? ('<br>This ban will expire ' . strftime(TINYIB_DATEFMT, $ban['expire'])) : '<br>This ban is permanent and will not expire.';
$reason = ($ban['reason'] == '') ? '' : ('<br>Reason: ' . $ban['reason']);
fancyDie('Your IP address ' . $ban['ip'] . ' has been banned from posting on this image board. ' . $expire . $reason);
fancyDie('Your IP address ' . $_SERVER['REMOTE_ADDR'] . ' has been banned from posting on this image board. ' . $expire . $reason);
} else {
clearExpiredBans();
}