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) if (filter_var($ip, FILTER_VALIDATE_IP) === false)
error("Invalid IP address."); error("Invalid IP address.");
if (isset($_POST['ban_id'], $_POST['unban'])) { if (isset($_POST['ban_id'], $_POST['unban_mask'])) {
if (!hasPermission($config['mod']['unban'])) if (!hasPermission($config['mod']['unban']))
error($config['error']['noaccess']); error($config['error']['noaccess']);

8
templates/mod/ban_appeals.html

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

Loading…
Cancel
Save