mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
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:
parent
6a10adabf5
commit
141fab021a
10 changed files with 22 additions and 43 deletions
|
@ -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'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue