Minor improvements (#1435)

* Minor improvements

* Update config.php

* Updated

* Update Dev.php

* Revert "Update Dev.php"

This reverts commit 0540ceaa0b.

* Revert "Updated"

This reverts commit e95b14b8c0.

* Updated
This commit is contained in:
Roman Kelesidis 2024-04-03 13:12:57 +07:00 committed by GitHub
commit 3b4aa3621b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 13 additions and 7 deletions

View file

@ -1,5 +1,13 @@
# 📖 Change Log # 📖 Change Log
## [v2.4.3](https://github.com/torrentpier/torrentpier/tree/v2.4.3) (2024-XX-XX)
[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.4.2...v2.4.3)
**Merged pull requests:**
- Release 2.4.3 🐎 ([belomaxorka](https://github.com/belomaxorka))
- Minor improvements [\#1435](https://github.com/torrentpier/torrentpier/pull/1435) ([belomaxorka](https://github.com/belomaxorka))
## [v2.4.2](https://github.com/torrentpier/torrentpier/tree/v2.4.2) (2024-03-30) ## [v2.4.2](https://github.com/torrentpier/torrentpier/tree/v2.4.2) (2024-03-30)
[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.4.1...v2.4.2) [Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.4.1...v2.4.2)

View file

@ -16,7 +16,7 @@ if ($bb_cfg['bt_disable_dht'] && IS_GUEST) {
bb_simple_die($lang['BT_PRIVATE_TRACKER'], 403); bb_simple_die($lang['BT_PRIVATE_TRACKER'], 403);
} }
$topic_id = !empty($_GET['topic']) ? (int)$_GET['topic'] : false; $topic_id = isset($_GET[POST_TOPIC_URL]) ? (int)$_GET[POST_TOPIC_URL] : 0;
if (!$topic_id) { if (!$topic_id) {
bb_simple_die($lang['INVALID_TOPIC_ID'], 404); bb_simple_die($lang['INVALID_TOPIC_ID'], 404);
@ -28,7 +28,6 @@ $sql = 'SELECT t.attach_id, t.info_hash, t.info_hash_v2, t.size, ad.physical_fil
ON t.attach_id = ad.attach_id ON t.attach_id = ad.attach_id
WHERE t.topic_id = ' . $topic_id . ' WHERE t.topic_id = ' . $topic_id . '
LIMIT 1'; LIMIT 1';
$row = DB()->fetch_row($sql); $row = DB()->fetch_row($sql);
if (empty($row['physical_filename'])) { if (empty($row['physical_filename'])) {

View file

@ -21,8 +21,8 @@ $bb_cfg = [];
$bb_cfg['js_ver'] = $bb_cfg['css_ver'] = 1; $bb_cfg['js_ver'] = $bb_cfg['css_ver'] = 1;
// Version info // Version info
$bb_cfg['tp_version'] = 'v2.4.2'; $bb_cfg['tp_version'] = 'v2.4.3-dev';
$bb_cfg['tp_release_date'] = '30-03-2024'; $bb_cfg['tp_release_date'] = 'XX-XX-2024';
$bb_cfg['tp_release_codename'] = 'Cattle'; $bb_cfg['tp_release_codename'] = 'Cattle';
// Database // Database
@ -447,7 +447,7 @@ $bb_cfg['adv_email'] = "adv@$domain_name"; // advertisement email
// Error reporting // Error reporting
$bb_cfg['bugsnag'] = [ $bb_cfg['bugsnag'] = [
'enabled' => true, 'enabled' => true,
'api_key' => '492753017170b6c2c76a0e7ae64604ea', 'api_key' => '33b3ed0102946bab71341f9edc125e21',
]; ];
$bb_cfg['telegram_sender'] = [ $bb_cfg['telegram_sender'] = [

View file

@ -299,12 +299,11 @@ define('POSTING_URL', $bb_cfg['posting_url']);
define('PROFILE_URL', 'profile.php?mode=viewprofile&u='); define('PROFILE_URL', 'profile.php?mode=viewprofile&u=');
define('BONUS_URL', 'profile.php?mode=bonus'); define('BONUS_URL', 'profile.php?mode=bonus');
define('TOPIC_URL', 'viewtopic.php?t='); define('TOPIC_URL', 'viewtopic.php?t=');
define('FILELIST_URL', 'filelist.php?topic='); define('FILELIST_URL', 'filelist.php?t=');
define('USER_AGENT', strtolower($_SERVER['HTTP_USER_AGENT'])); define('USER_AGENT', strtolower($_SERVER['HTTP_USER_AGENT']));
define('HTML_SELECT_MAX_LENGTH', 60); define('HTML_SELECT_MAX_LENGTH', 60);
define('HTML_WBR_LENGTH', 12);
define('HTML_CHECKED', ' checked '); define('HTML_CHECKED', ' checked ');
define('HTML_DISABLED', ' disabled '); define('HTML_DISABLED', ' disabled ');