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
+7
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();
+1 -1
View File
@@ -174,7 +174,7 @@ else {
}
$pickcontent .= "<b>".$lang_edit['row_torrent_position'].":&nbsp;</b>"."<select name=\"sel_posstate\" style=\"width: 100px;\">" . implode('', $options) . "</select>&nbsp;&nbsp;&nbsp;";
}
if(get_user_class()>=$torrentmanage_class && $CURUSER["picker"] == 'yes')
if(get_user_class()>=$torrentmanage_class && ($CURUSER["picker"] == 'yes' || get_user_class() >= \App\Models\User::CLASS_SYSOP))
{
if ($pickcontent) $pickcontent .= '<br />';
$pickcontent .= "<b>".$lang_edit['row_recommended_movie'].":&nbsp;</b>"."<select name=\"sel_recmovie\" style=\"width: 100px;\">" .