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_title') ?> – <?= htmlspecialchars($appTitle) ?>

' . htmlspecialchars(substr($installedSha, 0, 7)) . '' : '' ?>