From 201689de279950ef2b080cf70a1de48fd7a1b4ff Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Tue, 24 Oct 2023 00:32:26 +0700 Subject: [PATCH] Update functions.php --- library/includes/functions.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/library/includes/functions.php b/library/includes/functions.php index 519cfa30..8cadfddc 100644 --- a/library/includes/functions.php +++ b/library/includes/functions.php @@ -2579,6 +2579,11 @@ function create_magnet ($infohash, $auth_key, $name) { global $bb_cfg, $images, $lang, $userdata; + if (!$bb_cfg['magnet_links_enabled']) + { + return false; + } + if (IS_GUEST && $bb_cfg['bt_tor_browse_only_reg']) { $passkey = '';