mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 10:37:30 -07:00
Simplified IPHelper (#712)
This commit is contained in:
parent
8a5bac558f
commit
d9d38935b6
11 changed files with 17 additions and 90 deletions
|
@ -300,7 +300,7 @@ if (!isset($_REQUEST['dosearch'])) {
|
|||
$users = [];
|
||||
|
||||
if (\TorrentPier\Helpers\IPHelper::isValid($ip_address)) {
|
||||
$ip = \TorrentPier\Helpers\IPHelper::encodeIP($ip_address);
|
||||
$ip = \TorrentPier\Helpers\IPHelper::ip2long($ip_address);
|
||||
$users[] = $ip;
|
||||
} else {
|
||||
bb_die($lang['SEARCH_INVALID_IP']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue