requireAdmin(); I18n::init(); $db = Database::getInstance(); $appTitle = $db->getSetting('app_title', 'UniFi Voucher System'); $channel = \Updater\UpdaterFactory::channel(); $channelLabels = \Updater\UpdaterFactory::channelLabels(); $installedSha = \Updater\Version::current(); $release = \Updater\Version::RELEASE; $migrations = []; $migrationError = ''; try { $migrations = \Updater\UpdaterFactory::create($db)->migrationStatus(); } catch (Throwable $e) { $migrationError = $e->getMessage(); } $openMigrations = count(array_filter($migrations, static fn ($m) => !$m['applied'])); $changelog = \Updater\Changelog::sections(); $privacyUrl = trim((string)$db->getSetting('privacy_url', '')); $csrf = $auth->getCsrfToken(); $currentPage = 'update'; $adminBase = ''; ?>
= __('update_subtitle') ?>
' . htmlspecialchars(substr($installedSha, 0, 7)) . '' : '' ?>= htmlspecialchars($installedSha) ?>
= __('update_state_unknown') ?>
0 % –
= __('update_privacy_intro') ?>
= __('update_privacy_purpose') ?>
= __('update_privacy_not') ?>
= __('update_privacy_retention') ?>
= str_replace(['{total}', '{open}'], [(string)count($migrations), (string)$openMigrations], __('update_migrations_hint')) ?>
| = __('update_migration_file') ?> | = __('update_migration_state') ?> |
|---|---|
= htmlspecialchars($migration['filename']) ?> |
= __('update_migration_applied') ?> = __('update_migration_open') ?> |
= __('update_history_empty') ?>