liam-linux-account-manager/views/help.php
2021-11-16 15:11:32 +01:00

18 lines
618 B
PHP

<?php
$content = new PageSection('help');
if(file_exists('config/keys-sync.pub')) {
$content->set('keys-sync-pubkey', file_get_contents('config/keys-sync.pub'));
} else {
$content->set('keys-sync-pubkey', 'Error: keyfile missing');
}
$content->set('admin_mail', $config['email']['admin_address']);
$content->set('baseurl', $config['web']['baseurl']);
$content->set('security_config', isset($config['security']) ? $config['security'] : array());
$page = new PageSection('base');
$page->set('title', 'Help');
$page->set('content', $content);
$page->set('alerts', $active_user->pop_alerts());
echo $page->generate();