mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Added IPHelper implementation (#631)
This commit is contained in:
parent
2ac13bbc50
commit
ef4e1aa18f
11 changed files with 152 additions and 60 deletions
|
@ -299,8 +299,8 @@ if (!isset($_REQUEST['dosearch'])) {
|
|||
unset($users);
|
||||
$users = [];
|
||||
|
||||
if (Longman\IPTools\Ip::isValid($ip_address)) {
|
||||
$ip = encode_ip($ip_address);
|
||||
if (\TorrentPier\Helpers\IPHelper::isValid($ip_address)) {
|
||||
$ip = \TorrentPier\Helpers\IPHelper::encodeIP($ip_address);
|
||||
$users[] = $ip;
|
||||
} else {
|
||||
bb_die($lang['SEARCH_INVALID_IP']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue