[BS5] add theme selector

This commit is contained in:
FreddleSpl0it
2022-06-14 16:31:21 +02:00
parent 7384aab2f4
commit 37b4ff811d
5 changed files with 42 additions and 1 deletions

View File

@@ -83,6 +83,8 @@ foreach ($RSPAMD_MAPS['regex'] as $rspamd_regex_desc => $rspamd_regex_map) {
];
}
$themes = array_diff(scandir('/web/css/themes'), array('..', '.'));
$themes = array_filter((str_replace("-bootstrap.css", "", $themes)));
$template = 'admin.twig';
$template_data = [
@@ -90,6 +92,7 @@ $template_data = [
'tfa_id' => @$_SESSION['tfa_id'],
'fido2_cid' => @$_SESSION['fido2_cid'],
'fido2_data' => $fido2_data,
'themes' => $themes,
'gal' => @$_SESSION['gal'],
'license_guid' => license('guid'),
'api' => [