public function ip()
{
return _class('html')->ip('8.8.8.8');
}
public function ip()
{
asset('bfh-select');
$args = func_get_args();
$a = [];
// numerics params
if (isset($args[0]) && is_array($args[0])) {
$a = $args[0];
} elseif (isset($args[0])) {
$a['ip'] = $args[0];
}
if (isset($args['extra']) && is_array($args['extra'])) {
foreach ($args['extra'] as $k => $v) {
$a[$k] = $v;
}
}
$ip = $a['ip'];
$code = strtoupper($this->_get_ip_country($ip));
$name = _prepare_html($this->_get_country_name($code));
return a('http://www.infobyip.com/ip-' . urlencode($ip) . '.html', $ip . ' | ' . $code . ' | ' . $name, ($code ? 'bfh-flag-' . $code : ''), $ip, $a['class']);
}