Remove matching users with default IP from profile list.

This commit is contained in:
Yuriy Pikhtarev 2017-08-07 01:00:09 +03:00
commit e865b4c258
No known key found for this signature in database
GPG key ID: 3A9B5A757B48ECC6
7 changed files with 36 additions and 264 deletions

View file

@ -98,13 +98,13 @@ switch ($mode) {
$reg_ip = DB()->fetch_rowset("SELECT username, user_id, user_rank FROM " . BB_USERS . "
WHERE user_reg_ip = '{$profiledata['user_reg_ip']}'
AND user_reg_ip != ''
AND user_reg_ip != 0
AND user_id != {$profiledata['user_id']}
ORDER BY username ASC");
$last_ip = DB()->fetch_rowset("SELECT username, user_id, user_rank FROM " . BB_USERS . "
WHERE user_last_ip = '{$profiledata['user_last_ip']}'
AND user_last_ip != ''
AND user_last_ip != 0
AND user_id != {$profiledata['user_id']}");
$link_reg_ip = $link_last_ip = '';