mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
revert: Added TorrentPier instance hash
generation
This commit is contained in:
parent
1b288a96e4
commit
eabf851ee6
6 changed files with 3 additions and 14 deletions
|
@ -59,10 +59,5 @@ if (IN_DEMO_MODE) {
|
|||
DB()->query("UPDATE " . BB_FORUMS . " SET allow_reg_tracker = 1 WHERE allow_reg_tracker = 0 AND forum_id = 1 LIMIT 1");
|
||||
}
|
||||
|
||||
// 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');
|
||||
|
|
|
@ -397,11 +397,6 @@ $user = new TorrentPier\Legacy\Common\User();
|
|||
|
||||
$userdata =& $user->data;
|
||||
|
||||
/**
|
||||
* Some shared defines
|
||||
*/
|
||||
define('TP_INSTANCE_HASH', $bb_cfg['tp_instance_hash']);
|
||||
|
||||
/**
|
||||
* Cron
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue