Backup - restore a backup in the list (functions/backup_restore.php). What's in * it first, then the admin's password and RESTORE typed to confirm; admin/post/backup.php, * restore_backup, queues it for cron. */ require_once '../../includes/modal_header.php'; [$restore_row, $restore_path] = backupRestoreStored($mysqli, intval($_GET['backup_id'] ?? 0)); $restore_meta = null; $restore_problem = ''; $restore_needs_key = false; if ($restore_row) { [$restore_meta, $restore_problem] = backupRestoreCheck($mysqli, $restore_path, backupRestoreKey('')); // Made with another install's key - it opens once that key is typed $restore_needs_key = !$restore_meta; } $restore_can = $restore_row && ($restore_problem === '' || $restore_needs_key) && !backupRestoreInProgress() && backupEncryptionKey() !== ''; $restore_with_uploads = !$restore_meta || in_array('uploads.zip', $restore_meta['entries'], true); ob_start(); ?>