mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-15 05:00:49 +08:00
sysop can pick torrent
This commit is contained in:
@@ -1722,6 +1722,13 @@ function get_ip_location($ip)
|
||||
if (isset($locations[$ip])) {
|
||||
return $locations[$ip];
|
||||
}
|
||||
/**
|
||||
* @since 1.7.4
|
||||
*/
|
||||
$arr = get_ip_location_from_geoip($ip);
|
||||
$result = array($arr["name"], $lang_functions['text_user_ip'] . ": " . $ip);
|
||||
return $locations[$ip] = $result;
|
||||
|
||||
$cacheKey = "location_$ip";
|
||||
if (!$ret = $Cache->get_value($cacheKey)){
|
||||
$ret = array();
|
||||
|
||||
Reference in New Issue
Block a user