mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-23 22:55:46 -07:00
Update displaying_torrent.php
This commit is contained in:
parent
b9d28041bb
commit
ec6e7e8191
1 changed files with 8 additions and 3 deletions
|
@ -66,6 +66,7 @@ $tracker_status = $attachments['_' . $post_id][$i]['tracker_status'];
|
|||
$download_count = declension((int)$attachments['_' . $post_id][$i]['download_count'], 'times');
|
||||
$tor_file_size = humn_size($attachments['_' . $post_id][$i]['filesize']);
|
||||
$tor_file_time = bb_date($attachments['_' . $post_id][$i]['filetime']);
|
||||
$real_filename = clean_filename(basename($attachments['_' . $post_id][$i]['real_filename']));
|
||||
|
||||
$tor_reged = (bool)$tracker_status;
|
||||
$show_peers = (bool)$bb_cfg['bt_show_peers'];
|
||||
|
@ -88,10 +89,14 @@ if ($tor_auth_reg || $tor_auth_del) {
|
|||
$tracker_link = ($tor_reged) ? $unreg_tor_url : $reg_tor_url;
|
||||
}
|
||||
|
||||
if ($bb_cfg['tracker']['use_old_torrent_name_format']) {
|
||||
$display_name = '[' . $bb_cfg['server_name'] . '].t' . $bt_topic_id . '.' . TORRENT_EXT;
|
||||
if ($bb_cfg['tracker']['use_real_filename']) {
|
||||
$display_name = $real_filename;
|
||||
} else {
|
||||
$display_name = $t_data['topic_title'] . ' [' . $bb_cfg['server_name'] . '-' . $bt_topic_id . ']' . '.' . TORRENT_EXT;
|
||||
if ($bb_cfg['tracker']['use_old_torrent_name_format']) {
|
||||
$display_name = '[' . $bb_cfg['server_name'] . '].t' . $bt_topic_id . '.' . TORRENT_EXT;
|
||||
} else {
|
||||
$display_name = $t_data['topic_title'] . ' [' . $bb_cfg['server_name'] . '-' . $bt_topic_id . ']' . '.' . TORRENT_EXT;
|
||||
}
|
||||
}
|
||||
|
||||
if (!$tor_reged) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue