Minor improvements (#1532)

* Minor improvements

* Update clean_dlstat.php

* Updated

* Update usercp_viewprofile.tpl

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2024-07-10 23:48:31 +07:00 committed by GitHub
commit d2a1a7f5f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 4 additions and 18 deletions

View file

@ -15,7 +15,7 @@
- Some security improvements 🔑 [\#1503](https://github.com/torrentpier/torrentpier/pull/1503), [\#1505](https://github.com/torrentpier/torrentpier/pull/1505) ([belomaxorka](https://github.com/belomaxorka))
- Some improvements for integrity checker [\#1501](https://github.com/torrentpier/torrentpier/pull/1501) ([belomaxorka](https://github.com/belomaxorka))
- Hide vote button in topic for guests [\#1507](https://github.com/torrentpier/torrentpier/pull/1507) ([belomaxorka](https://github.com/belomaxorka))
- Minor improvements [\#1502](https://github.com/torrentpier/torrentpier/pull/1502), [\#1506](https://github.com/torrentpier/torrentpier/pull/1506), [\#1509](https://github.com/torrentpier/torrentpier/pull/1509), [\#1511](https://github.com/torrentpier/torrentpier/pull/1511), [\#1515](https://github.com/torrentpier/torrentpier/pull/1515), [\#1516](https://github.com/torrentpier/torrentpier/pull/1516), [\#1517](https://github.com/torrentpier/torrentpier/pull/1517), [\#1519](https://github.com/torrentpier/torrentpier/pull/1519), [\#1523](https://github.com/torrentpier/torrentpier/pull/1523), [\#1525](https://github.com/torrentpier/torrentpier/pull/1525), [\#1530](https://github.com/torrentpier/torrentpier/pull/1530) ([belomaxorka](https://github.com/belomaxorka))
- Minor improvements [\#1502](https://github.com/torrentpier/torrentpier/pull/1502), [\#1506](https://github.com/torrentpier/torrentpier/pull/1506), [\#1509](https://github.com/torrentpier/torrentpier/pull/1509), [\#1511](https://github.com/torrentpier/torrentpier/pull/1511), [\#1515](https://github.com/torrentpier/torrentpier/pull/1515), [\#1516](https://github.com/torrentpier/torrentpier/pull/1516), [\#1517](https://github.com/torrentpier/torrentpier/pull/1517), [\#1519](https://github.com/torrentpier/torrentpier/pull/1519), [\#1523](https://github.com/torrentpier/torrentpier/pull/1523), [\#1525](https://github.com/torrentpier/torrentpier/pull/1525), [\#1530](https://github.com/torrentpier/torrentpier/pull/1530), [\#1532](https://github.com/torrentpier/torrentpier/pull/1532) ([belomaxorka](https://github.com/belomaxorka))
- New Crowdin updates [\#1504](https://github.com/torrentpier/torrentpier/pull/1504), [\#1513](https://github.com/torrentpier/torrentpier/pull/1513) ([Exileum](https://github.com/Exileum))
## [v2.4.3](https://github.com/torrentpier/torrentpier/tree/v2.4.3) (2024-06-09)

View file

@ -27,7 +27,7 @@ $peers_div_style_overflow = "padding: 6px; height: $peers_overflow_div_height; o
$s_last_seed_date_format = 'Y-m-d';
$upload_image = '<img src="' . $images['icon_dn'] . '" alt="' . $lang['DL_TORRENT'] . '" border="0" />';
$peers_cnt = $seed_count = 0;
$peers_cnt = $seed_count = $leech_count = 0;
$seeders = $leechers = '';
$tor_info = [];
@ -196,7 +196,6 @@ if ($tor_reged && $tor_info) {
'ATTACH_ID' => $attach_id,
'TOR_SILVER_GOLD' => $tor_type,
'TOR_TYPE' => is_gold($tor_type),
'TOR_AUTHOR' => $bt_user_id == $poster_id && $bt_user_id != GUEST_UID,
// torrent status mod
'TOR_FROZEN' => !IS_AM ? (isset($bb_cfg['tor_frozen'][$tor_info['tor_status']]) && !(isset($bb_cfg['tor_frozen_author_download'][$tor_info['tor_status']]) && $userdata['user_id'] == $tor_info['poster_id'])) ? true : '' : '',

View file

@ -35,19 +35,6 @@ if ($delete_dlstat_sql = implode(') OR (', $delete_dlstat_sql)) {
DB()->query("DELETE QUICK FROM " . BB_BT_DLSTATUS . " WHERE ($delete_dlstat_sql)");
}
// Save the last 50 votes for topics
DB()->query('
DELETE t1
FROM ' . BB_THX . ' t1
JOIN (
SELECT topic_id, MAX(time) as max_time
FROM ' . BB_THX . '
GROUP BY topic_id
HAVING COUNT(*) > 50
) t2
ON t1.topic_id = t2.topic_id AND t1.time = t2.max_time;
');
// Delete orphans
DB()->query("
DELETE QUICK dl

View file

@ -176,7 +176,7 @@ ajax.callback.index_data = function(data) {
<a href="{U_MANAGE}">{L_PROFILE}</a> &middot;
<a href="{U_PERMISSIONS}">{L_PERMISSIONS}</a>
</p>
<!-- ELSE -->
<!-- ELSEIF PROFILE_USER -->
<p class="floatR">
<a href="{U_OPTIONS}">{L_PROFILE}</a>
</p>

View file

@ -459,7 +459,7 @@ $('#tor-filelist-btn').click(function () {
}
</script>
<div id="thx-block">
<!-- IF not postrow.attach.tor_reged.TOR_AUTHOR and not IS_GUEST -->
<!-- IF not IS_GUEST -->
<div id="thx-btn-div">
<input id="thx-btn" type="button" class="bold" style="width: 200px;" value="{L_THANK_TOPIC}">
</div>