Browse Source

Display split ban mask and appeal IP

display-appeal-src-ip
Zankaria 2 months ago
parent
commit
a8ff605571
  1. 2
      inc/mod/pages.php
  2. 8
      templates/mod/ban_appeals.html

2
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']);

8
templates/mod/ban_appeals.html

@ -15,9 +15,13 @@
</tr>
{% if mod|hasPermission(config.mod.show_ip, board.uri) %}
<tr>
<th>{% trans 'IP' %}</th>
<th>{% trans 'Ban mask' %}</th>
<td><a href="/mod.php?/IP/{{ ban.mask }}"</a>{{ ban.mask }}</td>
</tr>
<tr>
<th>{% trans 'Appeal IP' %}</th>
<td><a href="/mod.php?/IP/{{ ban.source_ip }}"</a>{{ ban.source_ip }}</td>
</tr>
{% endif %}
<tr>
<th>{% trans 'Reason' %}</th>
@ -89,7 +93,7 @@
<th>{% trans 'Action' %}</th>
<td>
<input type="hidden" name="appeal_id" value="{{ ban.id }}">
<input type="submit" name="unban" value="Unban">
<input type="submit" name="unban_mask" value="Unban mask">
<input type="submit" name="deny" value="Deny appeal">
</td>
</tr>

Loading…
Cancel
Save