=')) { $packagePlan = [ 'ok' => true, 'already_latest' => true, 'message' => t('admin.settings.updates.already_latest_version', ['tag' => $latestTag]), ]; } else { $packagePlan = build_package_upgrade_plan((string) ($latest['zipball_url'] ?? '')); if (!($packagePlan['ok'] ?? false)) { $packagePlanError = (string) ($packagePlan['error'] ?? t('admin.settings.updates.error_build_plan')); } } } } $applyResult = null; if (($_SERVER['REQUEST_METHOD'] ?? 'GET') === 'POST' && !isset($_POST['admin_action_id'])) { verify_csrf(); if (isset($_POST['apply_update'])) { $latestForApply = fetch_latest_pureblog_release(); if (!($latestForApply['ok'] ?? false)) { $applyResult = [ 'ok' => false, 'error' => (string) ($latestForApply['error'] ?? t('admin.settings.updates.error_release_metadata')), ]; } else { $applyResult = apply_release_update( (string) ($latestForApply['zipball_url'] ?? ''), (string) ($latestForApply['tag'] ?? '') ); if (($applyResult['ok'] ?? false) && !empty($latestForApply['tag'])) { $currentVersionDisplay = normalize_version_label((string) $latestForApply['tag']); // Redirect after a successful update so the result page loads // with the newly written files rather than the in-memory copies // from before the update ran. $_SESSION['admin_action_flash'] = ['ok' => true, 'message' => t('admin.settings.updates.notice_update_applied')]; header('Location: ' . base_path() . '/admin/settings-updates.php?updated=1'); exit; } } } elseif (isset($_POST['restore_backup'])) { $backupName = trim((string) ($_POST['backup_name'] ?? '')); $applyResult = restore_named_backup($backupName); if ($applyResult['ok'] ?? false) { $_SESSION['admin_action_flash'] = ['ok' => true, 'message' => t('admin.settings.updates.notice_backup_restored')]; header('Location: ' . base_path() . '/admin/settings-updates.php?restored=1'); exit; } elseif ($backupName === '') { $applyResult = ['ok' => false, 'error' => t('admin.settings.updates.error_choose_restore')]; } } elseif (isset($_POST['delete_backup'])) { $backupName = trim((string) ($_POST['backup_name'] ?? '')); $applyResult = delete_named_backup($backupName); if (!($applyResult['ok'] ?? false) && $backupName === '') { $applyResult = ['ok' => false, 'error' => t('admin.settings.updates.error_choose_delete')]; } } } $availableBackups = list_available_backups(); $latestBackup = $availableBackups[0] ?? ''; $latestBackupTimestamp = $latestBackup !== '' ? format_backup_timestamp($latestBackup) : ''; if (isset($_GET['package_plan']) && $packagePlan === null && $packagePlanError === '') { $packagePlanError = t('admin.settings.updates.error_inspect'); } $adminTitle = t('admin.settings.updates.page_title'); require __DIR__ . '/../includes/admin-head.php'; ?>

()

github.com/kevquirk/pureblog

🎉 New Version Available (v)

Manual upgrade required — this release contains breaking changes that cannot be applied automatically.

Download from GitHub