mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 10:37:30 -07:00
Added TorrentPier instance hash
generation (#1726)
* Added `TorrentPier instance hash` generation * Update CHANGELOG.md
This commit is contained in:
parent
8aa1bd77d7
commit
11f5b50760
5 changed files with 11 additions and 3 deletions
|
@ -6,6 +6,7 @@
|
|||
**Merged pull requests:**
|
||||
|
||||
- Release 2.4.5 🍧️ ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Added `TorrentPier instance hash` generation [\#1726](https://github.com/torrentpier/torrentpier/pull/1726) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Added `m4a` extension support in M3U playback [\#1724](https://github.com/torrentpier/torrentpier/pull/1724) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Show torrent's announcers list in `filelist.php` page [\#1708](https://github.com/torrentpier/torrentpier/pull/1708) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- [PHP 8.4] Fixed some deprecations [\#1718](https://github.com/torrentpier/torrentpier/pull/1718) ([belomaxorka](https://github.com/belomaxorka))
|
||||
|
|
|
@ -388,5 +388,5 @@ if (!empty($DB_HOST) && !empty($DB_DATABASE) && !empty($DB_USERNAME)) {
|
|||
$conn->close();
|
||||
out("- Importing SQL dump completed!\n", 'success');
|
||||
out("- Voila! Good luck & have fun!", 'success');
|
||||
rename(__FILE__, __FILE__ . '_' . hash('md5', time()));
|
||||
rename(__FILE__, __FILE__ . '_' . hash('xxh128', time()));
|
||||
}
|
||||
|
|
|
@ -600,7 +600,8 @@ VALUES ('allow_autologin', '1'),
|
|||
('premod', '0'),
|
||||
('tor_comment', '1'),
|
||||
('terms', ''),
|
||||
('show_board_start_index', '1');
|
||||
('show_board_start_index', '1'),
|
||||
('tp_instance_hash', '');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for `bb_cron`
|
||||
|
|
|
@ -150,4 +150,5 @@ INSERT INTO `bb_extensions` (`group_id`, `extension`, `comment`) VALUES ('1', 'a
|
|||
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');
|
||||
INSERT INTO `bb_config` VALUES ('magnet_links_for_guests', '0');
|
||||
INSERT INTO `bb_config` VALUES ('tp_instance_hash', '');
|
||||
|
|
|
@ -59,6 +59,11 @@ if (IN_DEMO_MODE) {
|
|||
DB()->query("UPDATE " . BB_FORUMS . " SET allow_reg_tracker = 1 WHERE allow_reg_tracker = 0");
|
||||
}
|
||||
|
||||
// Create unique TorrentPier instance hash
|
||||
if (empty($bb_cfg['tp_instance_hash']) || ($bb_cfg['tp_instance_hash'] !== hash('xxh128', FULL_URL))) {
|
||||
bb_update_config(['tp_instance_hash' => hash('xxh128', FULL_URL)]);
|
||||
}
|
||||
|
||||
// Check for updates
|
||||
$datastore->update('check_updates');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue