[Configurable] Show magnet-links for guests (#1712)

* [Configurable] Show magnet links for guests

* Update mysql.sql

* Update legacy-changes.txt

* Updated

* Update main.php

* Update functions.php

* Updated

* Update viewforum.tpl

* Update viewtopic_attach.tpl

* Update viewforum.tpl

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2024-12-14 15:03:28 +07:00 committed by GitHub
commit 60899a0184
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 18 additions and 5 deletions

View file

@ -583,6 +583,7 @@ VALUES ('allow_autologin', '1'),
('xs_use_cache', '1'),
('cron_check_interval', '180'),
('magnet_links_enabled', '1'),
('magnet_links_for_guests', '0'),
('gender', '1'),
('callseed', '0'),
('tor_stats', '1'),

View file

@ -148,3 +148,6 @@ UPDATE `bb_cron` SET `run_interval` = '00:10:00' WHERE `cron_script` = 'tr_seed_
// 2.4.5-rc.1
INSERT INTO `bb_extensions` (`group_id`, `extension`, `comment`) VALUES ('1', 'avif', ''), ('3', 'm3u', '');
ALTER TABLE `bb_topics` ADD COLUMN `topic_allow_robots` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0';
// 2.4.5
INSERT INTO bb_config VALUES ('magnet_links_for_guests', '0');