mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
parent
957a9615d4
commit
58bfce942d
@ -6,7 +6,7 @@
|
|||||||
**Merged pull requests:**
|
**Merged pull requests:**
|
||||||
|
|
||||||
- Release v2.1.5-2023.09 🎉
|
- Release v2.1.5-2023.09 🎉
|
||||||
- Minor improvements [\#235](https://github.com/torrentpier/torrentpier-lts/pull/235), [\#236](https://github.com/torrentpier/torrentpier-lts/pull/236), [\#237](https://github.com/torrentpier/torrentpier-lts/pull/237), [\#238](https://github.com/torrentpier/torrentpier-lts/pull/238), [\#239](https://github.com/torrentpier/torrentpier-lts/pull/239), [\#240](https://github.com/torrentpier/torrentpier-lts/pull/240), [\#241](https://github.com/torrentpier/torrentpier-lts/pull/241), [\#242](https://github.com/torrentpier/torrentpier-lts/pull/242), [\#243](https://github.com/torrentpier/torrentpier-lts/pull/243) ([belomaxorka](https://github.com/belomaxorka))
|
- Minor improvements [\#235](https://github.com/torrentpier/torrentpier-lts/pull/235), [\#236](https://github.com/torrentpier/torrentpier-lts/pull/236), [\#237](https://github.com/torrentpier/torrentpier-lts/pull/237), [\#238](https://github.com/torrentpier/torrentpier-lts/pull/238), [\#239](https://github.com/torrentpier/torrentpier-lts/pull/239), [\#240](https://github.com/torrentpier/torrentpier-lts/pull/240), [\#241](https://github.com/torrentpier/torrentpier-lts/pull/241), [\#242](https://github.com/torrentpier/torrentpier-lts/pull/242), [\#243](https://github.com/torrentpier/torrentpier-lts/pull/243), [\#244](https://github.com/torrentpier/torrentpier-lts/pull/244) ([belomaxorka](https://github.com/belomaxorka))
|
||||||
|
|
||||||
## [v2.1.5-2023.08](https://github.com/torrentpier/torrentpier-lts/tree/v2.1.5-2023.08) (2023-09-04)
|
## [v2.1.5-2023.08](https://github.com/torrentpier/torrentpier-lts/tree/v2.1.5-2023.08) (2023-09-04)
|
||||||
[Full Changelog](https://github.com/torrentpier/torrentpier-lts/compare/v2.1.5-2023.07...v2.1.5-2023.08)
|
[Full Changelog](https://github.com/torrentpier/torrentpier-lts/compare/v2.1.5-2023.07...v2.1.5-2023.08)
|
||||||
|
@ -2817,22 +2817,21 @@ function bb_captcha ($mode, $callback = '')
|
|||||||
{
|
{
|
||||||
global $bb_cfg, $lang;
|
global $bb_cfg, $lang;
|
||||||
|
|
||||||
require_once(CLASS_DIR .'recaptcha.php');
|
|
||||||
|
|
||||||
$secret = $bb_cfg['captcha']['secret_key'];
|
$secret = $bb_cfg['captcha']['secret_key'];
|
||||||
$public = $bb_cfg['captcha']['public_key'];
|
$public = $bb_cfg['captcha']['public_key'];
|
||||||
$theme = isset($bb_cfg['captcha']['theme']) ? $bb_cfg['captcha']['theme'] : 'light';
|
$theme = isset($bb_cfg['captcha']['theme']) ? $bb_cfg['captcha']['theme'] : 'light';
|
||||||
|
|
||||||
|
if (!$bb_cfg['captcha']['disabled'] && (!$public || !$secret))
|
||||||
|
{
|
||||||
|
bb_die($lang['CAPTCHA_SETTINGS']);
|
||||||
|
}
|
||||||
|
|
||||||
|
require_once(CLASS_DIR .'recaptcha.php');
|
||||||
$reCaptcha = new ReCaptcha($secret);
|
$reCaptcha = new ReCaptcha($secret);
|
||||||
|
|
||||||
switch ($mode)
|
switch ($mode)
|
||||||
{
|
{
|
||||||
case 'get':
|
case 'get':
|
||||||
if (!$public || !$secret)
|
|
||||||
{
|
|
||||||
bb_die($lang['CAPTCHA_SETTINGS']);
|
|
||||||
}
|
|
||||||
|
|
||||||
return "
|
return "
|
||||||
<script type=\"text/javascript\">
|
<script type=\"text/javascript\">
|
||||||
var onloadCallback = function() {
|
var onloadCallback = function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user