From a8ff6055717c0e4730257af3176a6d9f9ff1f4ed Mon Sep 17 00:00:00 2001 From: Zankaria Date: Fri, 15 Mar 2024 14:52:16 +0100 Subject: [PATCH] Display split ban mask and appeal IP --- inc/mod/pages.php | 2 +- templates/mod/ban_appeals.html | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/inc/mod/pages.php b/inc/mod/pages.php index 31f76133..5b1ceb06 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -858,7 +858,7 @@ function mod_page_ip($ip) { if (filter_var($ip, FILTER_VALIDATE_IP) === false) error("Invalid IP address."); - if (isset($_POST['ban_id'], $_POST['unban'])) { + if (isset($_POST['ban_id'], $_POST['unban_mask'])) { if (!hasPermission($config['mod']['unban'])) error($config['error']['noaccess']); diff --git a/templates/mod/ban_appeals.html b/templates/mod/ban_appeals.html index fa386747..ee3a85ec 100644 --- a/templates/mod/ban_appeals.html +++ b/templates/mod/ban_appeals.html @@ -15,9 +15,13 @@ {% if mod|hasPermission(config.mod.show_ip, board.uri) %} - {% trans 'IP' %} + {% trans 'Ban mask' %} {{ ban.mask }} + + {% trans 'Appeal IP' %} + {{ ban.source_ip }} + {% endif %} {% trans 'Reason' %} @@ -89,7 +93,7 @@ {% trans 'Action' %} - +