mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 19:37:23 +08:00
improve userdetails page hide_text
This commit is contained in:
@@ -103,7 +103,7 @@ bark($lang_takeupload['std_empty_file']);
|
||||
//check max price
|
||||
$maxPrice = get_setting("torrent.max_price");
|
||||
$paidTorrentEnabled = get_setting("torrent.paid_torrent_enabled") == "yes";
|
||||
if ($maxPrice > 0 && $_POST['price'] > $maxPrice && $paidTorrentEnabled) {
|
||||
if ($maxPrice > 0 && isset($_POST['price']) && $_POST['price'] > $maxPrice && $paidTorrentEnabled) {
|
||||
bark('price too much');
|
||||
}
|
||||
|
||||
@@ -141,7 +141,7 @@ if (strlen($pieces) % 20 != 0)
|
||||
bark($lang_takeupload['std_invalid_pieces']);
|
||||
|
||||
$filelist = array();
|
||||
$totallen = $info['length'];
|
||||
$totallen = $info['length'] ?? null;
|
||||
if (isset($totallen)) {
|
||||
$filelist[] = array($dname, $totallen);
|
||||
$type = "single";
|
||||
|
||||
@@ -235,8 +235,9 @@ if (user_can('userprofile') || $user["id"] == $CURUSER["id"])
|
||||
$locationinfo = "<span title=\"" . $loc_mod . "\">[" . $loc_pub . "]</span>";
|
||||
}
|
||||
else $locationinfo = "";
|
||||
$ip = $user["id"] == $CURUSER["id"] ? hide_text($user['ip']) : $user['ip'];
|
||||
tr_small($lang_userdetails['row_ip_address'], $ip.$locationinfo.$seedBoxIcon, 1);
|
||||
// $ip = $user["id"] == $CURUSER["id"] ? hide_text($user['ip']) : $user['ip'];
|
||||
$ip = $user["ip"];
|
||||
tr_small($lang_userdetails['row_ip_address'], hide_text($ip.$locationinfo.$seedBoxIcon), 1);
|
||||
}
|
||||
$clientselect = '';
|
||||
$res = sql_query("SELECT peer_id, agent, ipv4, ipv6, port FROM peers WHERE userid = {$user['id']} GROUP BY agent, ipv4, ipv6, port") or sqlerr();
|
||||
|
||||
Reference in New Issue
Block a user