mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 22:33:55 -07:00
#51 Removing the legacy code
This commit is contained in:
parent
17c95ac01c
commit
bf329709aa
4 changed files with 3 additions and 19 deletions
|
@ -2023,11 +2023,6 @@ function get_topic_icon ($topic, $is_unread = null)
|
||||||
$folder = $images['folder_locked'];
|
$folder = $images['folder_locked'];
|
||||||
$folder_new = $images['folder_locked_new'];
|
$folder_new = $images['folder_locked_new'];
|
||||||
}
|
}
|
||||||
else if ($topic['tracker_status'])
|
|
||||||
{
|
|
||||||
$folder = ($t_hot) ? $images['folder_dl_hot'] : $images['folder_dl'];
|
|
||||||
$folder_new = ($t_hot) ? $images['folder_dl_hot_new'] : $images['folder_dl_new'];
|
|
||||||
}
|
|
||||||
|
|
||||||
$folder_image = ($is_unread) ? $folder_new : $folder;
|
$folder_image = ($is_unread) ? $folder_new : $folder;
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,13 +14,13 @@ $template->assign_vars(array('DL_BUTTONS' => false));
|
||||||
|
|
||||||
$count_mode = ($bb_cfg['bt_dl_list_only_count'] && !(@$_GET['dl'] === 'names'));
|
$count_mode = ($bb_cfg['bt_dl_list_only_count'] && !(@$_GET['dl'] === 'names'));
|
||||||
|
|
||||||
$dl_topic = ($t_data['tracker_status'] && !($bb_cfg['bt_dl_list_only_1st_page'] && $start));
|
$dl_topic = !($bb_cfg['bt_dl_list_only_1st_page'] && $start);
|
||||||
$show_dl_list = ($dl_topic && ($bb_cfg['bt_show_dl_list'] || ($bb_cfg['allow_dl_list_names_mode'] && @$_GET['dl'] === 'names')));
|
$show_dl_list = ($dl_topic && ($bb_cfg['bt_show_dl_list'] || ($bb_cfg['allow_dl_list_names_mode'] && @$_GET['dl'] === 'names')));
|
||||||
$show_dl_buttons = ($dl_topic && $bb_cfg['bt_show_dl_list_buttons']);
|
$show_dl_buttons = ($dl_topic && $bb_cfg['bt_show_dl_list_buttons']);
|
||||||
|
|
||||||
// link to clear DL-List
|
// link to clear DL-List
|
||||||
$template->assign_vars(array('S_DL_DELETE' => false));
|
$template->assign_vars(array('S_DL_DELETE' => false));
|
||||||
if ($is_auth['auth_mod'] && $t_data['tracker_status'])
|
if ($is_auth['auth_mod'])
|
||||||
{
|
{
|
||||||
$s_dl_delete = "<a href=\"dl_list.php?mode=dl_delete&". POST_TOPIC_URL ."=$topic_id&sid=". $userdata['session_id'] .'">'. $lang['DL_LIST_DEL'] .'</a>';
|
$s_dl_delete = "<a href=\"dl_list.php?mode=dl_delete&". POST_TOPIC_URL ."=$topic_id&sid=". $userdata['session_id'] .'">'. $lang['DL_LIST_DEL'] .'</a>';
|
||||||
$template->assign_vars(array('S_DL_DELETE' => $s_dl_delete));
|
$template->assign_vars(array('S_DL_DELETE' => $s_dl_delete));
|
||||||
|
|
|
@ -485,7 +485,7 @@ foreach ($topic_rowset as $topic)
|
||||||
'ATTACH' => $topic['attach_ext_id'],
|
'ATTACH' => $topic['attach_ext_id'],
|
||||||
'STATUS' => $topic['topic_status'],
|
'STATUS' => $topic['topic_status'],
|
||||||
'TYPE' => $topic['topic_type'],
|
'TYPE' => $topic['topic_type'],
|
||||||
'DL' => ($topic['tracker_status'] && !$forum_data['allow_reg_tracker']),
|
'DL' => !$forum_data['allow_reg_tracker'],
|
||||||
'POLL' => $topic['topic_vote'],
|
'POLL' => $topic['topic_vote'],
|
||||||
'DL_CLASS' => isset($topic['dl_status']) ? $dl_link_css[$topic['dl_status']] : '',
|
'DL_CLASS' => isset($topic['dl_status']) ? $dl_link_css[$topic['dl_status']] : '',
|
||||||
|
|
||||||
|
|
|
@ -527,12 +527,6 @@ $template->assign_vars(array(
|
||||||
));
|
));
|
||||||
require(INC_DIR .'torrent_show_dl_list.php');
|
require(INC_DIR .'torrent_show_dl_list.php');
|
||||||
|
|
||||||
if ($t_data['topic_attachment'])
|
|
||||||
{
|
|
||||||
require(INC_DIR .'old_attachment.php');
|
|
||||||
init_display_post_attachments($t_data['topic_attachment']);
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Update the topic view counter
|
// Update the topic view counter
|
||||||
//
|
//
|
||||||
|
@ -743,11 +737,6 @@ for($i = 0; $i < $total_posts; $i++)
|
||||||
'RG_SIG_ATTACH' => $postrow[$i]['attach_rg_sig'],
|
'RG_SIG_ATTACH' => $postrow[$i]['attach_rg_sig'],
|
||||||
));
|
));
|
||||||
|
|
||||||
if ($postrow[$i]['post_attachment'] && $is_auth['auth_download'] && function_exists('display_post_attachments'))
|
|
||||||
{
|
|
||||||
display_post_attachments($post_id, $postrow[$i]['post_attachment']);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($is_first_post && $t_data['attach_ext_id'])
|
if ($is_first_post && $t_data['attach_ext_id'])
|
||||||
{
|
{
|
||||||
if (IS_GUEST)
|
if (IS_GUEST)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue