Feature #67
IP Search function
| Status: | Closed | Start: | 06/09/2008 | |
| Priority: | High | Due date: | ||
| Assigned to: | - | % Done: | 100% |
|
| Category: | Web Panel | |||
| Target version: | 1.1.1 | |||
Description
Find all bans from a certain IP.
History
Updated by Olly Ginger 210 days ago
PeaceMaker - Fix:
In this case, you have to modify 3 files:
/pages/page.banlist.php
/scripts/sourcebans.js
TEMPLATE/box_admin_bans_search.tpl
page.banlist.php:
AFTER line 242 (break;) insert this:1 case "ip":
2 $where = "WHERE BN.ban_ip LIKE '%" . $value . "%'";
3 $ban_where = "WHERE ip LIKE '%" . $value . "%'";
4 $ban_hist_where = "WHERE IP LIKE '%" . $value . "%'";
5 break;
6
sourcebans.js:
AFTER line 610 (}) insert:
1 if($('ip_').checked)
2 {
3 type = "ip";
4 input = $('ip').value;
5 }
box_admin_bans_search.tpl:
AFTER line 19 () insert:
1 <tr>
2 <td align="center" class="listtable_1" ><input id="ip_" type="radio" name="search_type" value="radiobutton"></td>
3 <td class="listtable_1" >IP</td>
4 <td class="listtable_1" ><input type="text" id="ip" value="" onmouseup="$(\'ip_\').checked = true"style="border: 1px solid #0; font-size: 12px; background-color: rgb(215, 215, 215);width: 250px;"></td>
5 </tr>
Updated by Erik Minekus 171 days ago
- Status changed from New to Closed
- Target version set to 1.1.1
- % Done changed from 0 to 100