mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 22:33:55 -07:00
Update displaying_torrent.php
This commit is contained in:
parent
ab57cf1a05
commit
cf4d5a619e
1 changed files with 8 additions and 1 deletions
|
@ -455,10 +455,17 @@ if ($tor_reged && $tor_info) {
|
|||
$row_bgr = ($change_peers_bgr_over) ? " class=\"$bgr_class\" onmouseover=\"this.className='$bgr_class_over';\" onmouseout=\"this.className='$bgr_class';\"" : '';
|
||||
$tr[$x]++;
|
||||
|
||||
$peerTorrentClient = $lang['UNKNOWN'];
|
||||
if (IS_AM || $peer['user_id'] == $userdata['user_id'] || !bf($peer['user_opt'], 'user_opt', 'user_hide_torrent_client')) {
|
||||
if (isset($peer['peer_id'])) {
|
||||
$peerTorrentClient = get_user_torrent_client($peer['peer_id']);
|
||||
}
|
||||
}
|
||||
|
||||
$template->assign_block_vars("$x_full.$x_row", [
|
||||
'ROW_BGR' => $row_bgr,
|
||||
'NAME' => ($peer['update_time']) ? $name : "<s>$name</s>",
|
||||
'PEER_ID' => isset($peer['peer_id']) ? get_user_torrent_client($peer['peer_id']) : $lang['UNKNOWN'],
|
||||
'PEER_ID' => $peerTorrentClient,
|
||||
'COUNTRY' => render_flag(infoByIP((!empty($peer['ipv6']) ? $peer['ipv6'] : $peer['ip']), $peer['port'])['countryCode'], false),
|
||||
'COMPL_PRC' => $compl_perc,
|
||||
'UP_TOTAL' => ($max_up_id[$x] == $pid) ? "<b>$up_tot</b>" : $up_tot,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue