Minor improvements (#228)

* Minor improvements

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2023-08-24 00:09:29 +07:00 committed by GitHub
parent f6c62ce49c
commit da1665e6c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 12 additions and 12 deletions

View File

@ -9,7 +9,7 @@
- Show renamed topic actions in log actions [\#227](https://github.com/torrentpier/torrentpier-lts/pull/227) ([belomaxorka](https://github.com/belomaxorka))
- Show set/unset downloaded actions in log actions [\#226](https://github.com/torrentpier/torrentpier-lts/pull/226) ([belomaxorka](https://github.com/belomaxorka))
- Show pin & unpin actions in log actions [\#225](https://github.com/torrentpier/torrentpier-lts/pull/225) ([belomaxorka](https://github.com/belomaxorka))
- Minor improvements [\#215](https://github.com/torrentpier/torrentpier-lts/pull/215), [\#216](https://github.com/torrentpier/torrentpier-lts/pull/216), [\#217](https://github.com/torrentpier/torrentpier-lts/pull/217), [\#218](https://github.com/torrentpier/torrentpier-lts/pull/218), [\#221](https://github.com/torrentpier/torrentpier-lts/pull/221), [\#222](https://github.com/torrentpier/torrentpier-lts/pull/222), [\#224](https://github.com/torrentpier/torrentpier-lts/pull/224) ([belomaxorka](https://github.com/belomaxorka))
- Minor improvements [\#215](https://github.com/torrentpier/torrentpier-lts/pull/215), [\#216](https://github.com/torrentpier/torrentpier-lts/pull/216), [\#217](https://github.com/torrentpier/torrentpier-lts/pull/217), [\#218](https://github.com/torrentpier/torrentpier-lts/pull/218), [\#221](https://github.com/torrentpier/torrentpier-lts/pull/221), [\#222](https://github.com/torrentpier/torrentpier-lts/pull/222), [\#224](https://github.com/torrentpier/torrentpier-lts/pull/224), [\#228](https://github.com/torrentpier/torrentpier-lts/pull/228) ([belomaxorka](https://github.com/belomaxorka))
## [v2.1.5-2023.07](https://github.com/torrentpier/torrentpier-lts/tree/v2.1.5-2023.07) (2023-08-04)
[Full Changelog](https://github.com/torrentpier/torrentpier-lts/compare/v2.1.5-2023.06...v2.1.5-2023.07)

4
dl.php
View File

@ -203,7 +203,7 @@ if ($download_mode == PHYSICAL_LINK)
}
else
{
if (IS_GUEST && !bb_captcha('check'))
if ((IS_GUEST && !$bb_cfg['captcha']['disabled']) && !bb_captcha('check'))
{
global $template;
@ -226,4 +226,4 @@ else
send_file_to_browser($attachment, $upload_dir);
exit;
}
}

View File

@ -183,7 +183,7 @@ if ($tor_reged && $tor_info)
$user_status = isset($bt_userdata['user_status']) ? $bt_userdata['user_status'] : null;
if (($min_ratio_dl || $min_ratio_warn) && $user_status != DL_STATUS_COMPLETE && $bt_user_id != $poster_id && $tor_type != TOR_TYPE_GOLD)
if (($min_ratio_dl || $min_ratio_warn) && $user_status != DL_STATUS_COMPLETE && ($bt_user_id != ($poster_id || GUEST_UID)) && $tor_type != TOR_TYPE_GOLD)
{
if (($user_ratio = get_bt_ratio($bt_userdata)) !== null)
{
@ -601,4 +601,4 @@ $template->assign_vars(array(
'LEECH_EXIST' => ($leechers || defined('LEECHER_EXIST')),
'TOR_HELP_LINKS' => $bb_cfg['tor_help_links'],
'CALL_SEED' => ($bb_cfg['callseed'] && $tor_reged && !isset($bb_cfg['tor_no_tor_act'][$tor_info['tor_status']]) && $seed_count < 3 && $tor_info['call_seed_time'] < (TIMENOW - 86400)),
));
));

View File

@ -60,7 +60,7 @@ function prepare_post(&$mode, &$post_data, &$error_msg, &$username, &$subject, &
}
}
if (IS_GUEST && !bb_captcha('check'))
if ((IS_GUEST && !$bb_cfg['captcha']['disabled']) && !bb_captcha('check'))
{
$error_msg .= (!empty($error_msg)) ? '<br />' . $lang['CAPTCHA_WRONG'] : $lang['CAPTCHA_WRONG'];
}
@ -539,4 +539,4 @@ function topic_review ($topic_id)
$template->assign_vars(array(
'TPL_TOPIC_REVIEW' => (bool) $review_posts,
));
}
}

View File

@ -703,7 +703,7 @@ $template->assign_vars(array(
'U_VIEW_FORUM' => "viewforum.php?" . POST_FORUM_URL . "=$forum_id",
'USERNAME' => @$username,
'CAPTCHA_HTML' => (IS_GUEST) ? bb_captcha('get') : '',
'CAPTCHA_HTML' => (IS_GUEST && !$bb_cfg['captcha']['disabled']) ? bb_captcha('get') : '',
'SUBJECT' => $subject,
'MESSAGE' => $message,
@ -743,4 +743,4 @@ require(PAGE_HEADER);
$template->pparse('body');
require(PAGE_FOOTER);
require(PAGE_FOOTER);

View File

@ -79,7 +79,7 @@
<td><b>{L_USERNAME}</b></td>
<td>
<input type="text" name="username" size="25" maxlength="25" tabindex="1" value="{USERNAME}" />&nbsp;
<input type="submit" name="usersubmit" class="lite" value="{L_FIND_USERNAME}" onclick="window.open('{U_SEARCH_USER}', '_bbsearch', IWP_US);return false;" />
<!-- IF not IS_GUEST --><input type="submit" name="usersubmit" class="lite" value="{L_FIND_USERNAME}" onclick="window.open('{U_SEARCH_USER}', '_bbsearch', IWP_US);return false;" /><!-- ENDIF -->
</td>
</tr>
<!-- ENDIF -->
@ -194,4 +194,4 @@
<div class="spacer_12"></div>
<!--========================================================================-->
<!-- ENDIF / TPL_TOPIC_REVIEW -->
<!-- ENDIF / TPL_TOPIC_REVIEW -->

View File

@ -866,7 +866,7 @@ if ($bb_cfg['show_quick_reply'])
'QUICK_REPLY' => true,
'QR_POST_ACTION' => POSTING_URL,
'QR_TOPIC_ID' => $topic_id,
'CAPTCHA_HTML' => (IS_GUEST) ? bb_captcha('get') : '',
'CAPTCHA_HTML' => (IS_GUEST && !$bb_cfg['captcha']['disabled']) ? bb_captcha('get') : '',
));
if (!IS_GUEST)