mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Minor improvements (#175)
This commit is contained in:
parent
20b24119f3
commit
98955ece12
@ -73,13 +73,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 = '';
|
||||
|
12
modcp.php
12
modcp.php
@ -673,7 +673,10 @@ switch ($mode)
|
||||
bb_die($lang['NO_SUCH_POST']);
|
||||
}
|
||||
|
||||
$ip_this_post = decode_ip($post_row['poster_ip']);
|
||||
if (!$ip_this_post = decode_ip($post_row['poster_ip']))
|
||||
{
|
||||
$ip_this_post = $lang['NOT_AVAILABLE'];
|
||||
}
|
||||
$ip_this_post = ($rdns_ip_num == $ip_this_post) ? gethostbyaddr($ip_this_post) : $ip_this_post;
|
||||
|
||||
$poster_id = $post_row['poster_id'];
|
||||
@ -708,7 +711,10 @@ switch ($mode)
|
||||
continue;
|
||||
}
|
||||
|
||||
$ip = decode_ip($row['poster_ip']);
|
||||
if (!$ip = decode_ip($row['poster_ip']))
|
||||
{
|
||||
$ip = $lang['NOT_AVAILABLE'];
|
||||
}
|
||||
$ip = ( $rdns_ip_num == $ip || $rdns_ip_num == 'all') ? gethostbyaddr($ip) : $ip;
|
||||
|
||||
$template->assign_block_vars('iprow', array(
|
||||
@ -850,4 +856,4 @@ require(PAGE_HEADER);
|
||||
|
||||
$template->pparse('body');
|
||||
|
||||
require(PAGE_FOOTER);
|
||||
require(PAGE_FOOTER);
|
||||
|
Loading…
Reference in New Issue
Block a user