Example #1
0
function bt_show_ip($ip, $port = '')
{
    global $is_auth, $ft_cfg;
    if (!$is_auth['auth_mod']) {
        if ($ft_cfg['bt_show_ip_only_moder']) {
            return '';
        } else {
            return decode_ip_xx($ip);
        }
    } else {
        $ip = decode_ip($ip);
        $ip .= $port ? ":{$port}" : '';
        return $ip;
    }
}
Example #2
0
function bt_show_ip($ip, $port = '')
{
    global $bb_cfg;
    if (IS_AM) {
        $ip = decode_ip($ip);
        $ip .= $port ? ":{$port}" : '';
        return $ip;
    } else {
        return $bb_cfg['bt_show_ip_only_moder'] ? false : decode_ip_xx($ip);
    }
}