Minor improvements (#1502)

* Minor improvements

* Update build_files_integrity.php

* Updated

* Update usercp_viewprofile.tpl

* Updated

* Update config.php

* Updated

* Update register.php

* Updated

* Update main.php

* Update functions.php

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2024-06-10 13:30:47 +07:00 committed by GitHub
commit 141fab021a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 22 additions and 43 deletions

View file

@ -17,6 +17,9 @@ if (!$bb_cfg['integrity_check']) {
return;
}
$filesList = [];
$wrongFilesList = [];
$checksumFile = new SplFileObject(CHECKSUMS_FILE, 'r');
$checksumFile->setFlags(SplFileObject::SKIP_EMPTY | SplFileObject::DROP_NEW_LINE);
@ -36,7 +39,6 @@ $ignoreFiles = [
'styles/images/logo/logo.png'
];
$filesList = [];
$lines = [];
foreach ($checksumFile as $line) {
$parts = explode(' ', $line);
@ -54,7 +56,6 @@ foreach ($checksumFile as $line) {
];
}
$wrongFilesList = [];
foreach ($filesList as $file) {
if (!file_exists(BB_ROOT . '/' . $file['path']) || (strtolower(md5_file(BB_ROOT . '/' . $file['path'])) !== strtolower($file['hash']))) {
$wrongFilesList[] = $file['path'];