From b4aa39ca2def14eb1f6521eeb9e6f0a76b3720f5 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Thu, 31 Mar 2011 00:12:36 +1100 Subject: IP range bans --- mod.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'mod.php') diff --git a/mod.php b/mod.php index 9b649524..8808e896 100644 --- a/mod.php +++ b/mod.php @@ -945,7 +945,7 @@ } if($query->rowCount() < 1) { - $body = '(There are no active bans.)'; + $body = '

(There are no active bans.)

'; } else { $body = '
'; $body .= ''; @@ -964,9 +964,13 @@ ' ' . // IP address - ''. $ban['ip'] . '' . + (preg_match('/^(\d+\.\d+\.\d+\.\d+|' . $config['ipv6_regex'] . ')$/', $ban['ip']) ? + ''. $ban['ip'] . '' + : $ban['ip']) . + + '' . // Reason '' . -- cgit v1.3
IP addressReasonSetExpiresStaff
' . ($ban['reason'] ? $ban['reason'] : '-') . '