sysop can pick torrent

This commit is contained in:
xiaomlove
2022-04-18 20:05:46 +08:00
parent 55138da862
commit 817fab9be5
2 changed files with 8 additions and 1 deletions

View File

@@ -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();