get_country($ip); } function ip2c_get_flag_url($ip) { global $__ip2c_images_base; $country = ip2c_get_country($ip); if (!$country) return "$ip not found"; $code = strtolower($country['id2']); $name = $country['name']; return "$name"; } function ip2c_get_comment_flag_url() { $ip = get_comment_author_IP(); return ip2c_get_flag_url($ip); } function ip2c_echo_comment_flag_url() { echo ip2c_get_comment_flag_url(); } ?>