WIP: Added restoring corrupt TorrentPier files 🪛 (#1493)

* Added restoring corrupt files 🪛

* Update index.tpl

* Updated

* Updated

* Update build_files_integrity.php

* Update build_files_integrity.php

* Update build_files_integrity.php

* Updated

* Updater

* Update Updater.php

* Updated

* Update Updater.php

* Update build_check_updates.php

* Updated

* Updated

* Updated

* Update build_files_integrity.php

* Update build_files_integrity.php

* Updated

* Update checksums.md5

* Update build_files_integrity.php

* Updated

* Updated

* Update Updater.php

* Update CHANGELOG.md

* Updated

* Update index.tpl

* Update functions.php

* Update Updater.php
This commit is contained in:
Roman Kelesidis 2024-06-08 16:42:35 +07:00 committed by GitHub
commit 2cbf9ed743
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 259 additions and 102 deletions

View file

@ -82,6 +82,10 @@ switch ($mode) {
\TorrentPier\Helpers\CronHelper::enableBoard();
$this->response['unlock_cron_html'] = '<span class="seed bold">' . $lang['ADMIN_UNLOCKED'] . '</span>';
break;
case 'restore_corrupt_files':
file_write('', RESTORE_CORRUPT_CONFIRM_FILE, replace_content: true);
$this->response['restore_corrupt_files_html'] = '<span class="seed bold">' . $lang['INTEGRITY_RESTORE_CONFIRM_OK'] . '</span>';
break;
default:
$this->ajax_die('Invalid mode: ' . $mode);
}