mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 10:37:30 -07:00
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:
parent
e36a5ee07a
commit
2cbf9ed743
12 changed files with 259 additions and 102 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue