mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update tracker.php
This commit is contained in:
parent
23979e0212
commit
7ca1e71e78
@ -730,7 +730,7 @@ if ($allowed_forums)
|
|||||||
$select = "
|
$select = "
|
||||||
SELECT
|
SELECT
|
||||||
tor.topic_id, tor.post_id, tor.attach_id, tor.size, tor.reg_time, tor.complete_count, tor.seeder_last_seen, tor.tor_status, tor.tor_type,
|
tor.topic_id, tor.post_id, tor.attach_id, tor.size, tor.reg_time, tor.complete_count, tor.seeder_last_seen, tor.tor_status, tor.tor_type,
|
||||||
t.topic_title, t.topic_time, t.topic_replies, t.topic_views, sn.seeders, sn.leechers, tor.info_hash,
|
t.topic_title, t.topic_time, t.topic_replies, t.topic_views, t.topic_vote, sn.seeders, sn.leechers, tor.info_hash,
|
||||||
ad.download_count
|
ad.download_count
|
||||||
";
|
";
|
||||||
$select .= (!$hide_speed) ? ", sn.speed_up, sn.speed_down" : '';
|
$select .= (!$hide_speed) ? ", sn.speed_up, sn.speed_down" : '';
|
||||||
@ -820,6 +820,7 @@ if ($allowed_forums)
|
|||||||
'ROW_NUM' => $row_num,
|
'ROW_NUM' => $row_num,
|
||||||
'DL_CLASS' => $dl_class,
|
'DL_CLASS' => $dl_class,
|
||||||
'IS_NEW' => (!IS_GUEST && $tor['reg_time'] > $lastvisit),
|
'IS_NEW' => (!IS_GUEST && $tor['reg_time'] > $lastvisit),
|
||||||
|
'POLL' => !IS_GUEST && $tor['topic_vote'],
|
||||||
'USER_AUTHOR' => (!IS_GUEST && $poster_id == $user_id),
|
'USER_AUTHOR' => (!IS_GUEST && $poster_id == $user_id),
|
||||||
|
|
||||||
'ATTACH_ID' => $att_id,
|
'ATTACH_ID' => $att_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user