Minor improvements (#1676)

* Minor improvements

* Update functions.php

* Update common.php

* Update init_bb.php

* Updated

* Update build_files_integrity.php

* Updated

* Update CHANGELOG.md

* Update legacy-changes.txt

* Update legacy-changes.txt

* Update legacy-changes.txt

* Update .gitignore

* Update legacy-changes.txt
This commit is contained in:
Roman Kelesidis 2024-11-11 01:17:35 +07:00 committed by GitHub
commit 4dcee993cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 55 additions and 94 deletions

View file

@ -24,12 +24,6 @@ $user_ip = \TorrentPier\Helpers\IPHelper::ip2long($client_ip);
define('CLIENT_IP', $client_ip);
define('USER_IP', $user_ip);
// Initialize demo mode
define('IN_DEMO_MODE', env('APP_DEMO_MODE', false));
// Version code
define('VERSION_CODE', (int)trim(str_replace(['.', 'v'], '', $bb_cfg['tp_version'])));
/**
* @param $contents
* @return string
@ -400,14 +394,6 @@ $user = new TorrentPier\Legacy\Common\User();
$userdata =& $user->data;
/**
* Check for updates
*/
$updaterFile = readUpdaterFile();
if ($updaterFile && ($updaterFile['previous_version'] < VERSION_CODE)) {
define('IN_UPDATER', true);
}
/**
* Cron
*/