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
|
@ -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