mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 20:17:24 +08:00
sysop can pick torrent
This commit is contained in:
@@ -1722,6 +1722,13 @@ function get_ip_location($ip)
|
|||||||
if (isset($locations[$ip])) {
|
if (isset($locations[$ip])) {
|
||||||
return $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";
|
$cacheKey = "location_$ip";
|
||||||
if (!$ret = $Cache->get_value($cacheKey)){
|
if (!$ret = $Cache->get_value($cacheKey)){
|
||||||
$ret = array();
|
$ret = array();
|
||||||
|
|||||||
+1
-1
@@ -174,7 +174,7 @@ else {
|
|||||||
}
|
}
|
||||||
$pickcontent .= "<b>".$lang_edit['row_torrent_position'].": </b>"."<select name=\"sel_posstate\" style=\"width: 100px;\">" . implode('', $options) . "</select> ";
|
$pickcontent .= "<b>".$lang_edit['row_torrent_position'].": </b>"."<select name=\"sel_posstate\" style=\"width: 100px;\">" . implode('', $options) . "</select> ";
|
||||||
}
|
}
|
||||||
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 />';
|
if ($pickcontent) $pickcontent .= '<br />';
|
||||||
$pickcontent .= "<b>".$lang_edit['row_recommended_movie'].": </b>"."<select name=\"sel_recmovie\" style=\"width: 100px;\">" .
|
$pickcontent .= "<b>".$lang_edit['row_recommended_movie'].": </b>"."<select name=\"sel_recmovie\" style=\"width: 100px;\">" .
|
||||||
|
|||||||
Reference in New Issue
Block a user