mirror of
https://github.com/itflow-org/itflow
synced 2026-11-27 22:59:00 +00:00
Logs: the log settings are a Settings tab under Admin > Logs beside Audit Logs, Sign-ins and App Logs instead of a page in the Settings menu and overview, still found by Find a setting and the top bar search as Logs > Settings; settings pages can be put under an admin menu entry with an under key; references to Admin > Settings > Logs updated; 26.12.2 changelog entries
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
* it worked - why not, when it didn't. Totals for what is shown sit above.
|
||||
* Searched, and filtered by date, provider, model, feature and who; views for
|
||||
* the failed ones, the ones secrets were taken out of, and tests. Kept as long
|
||||
* as the audit log is (Admin > Settings > Logs).
|
||||
* as the audit log is (Admin > Logs > Settings).
|
||||
*/
|
||||
|
||||
// Default Column Sortby Filter
|
||||
|
||||
@@ -247,7 +247,10 @@
|
||||
|
||||
<!-- SETTINGS Section - the pages are listed in functions/settings.php, as the overview shows them -->
|
||||
<?php
|
||||
$settings_nav_pages = settingsPages();
|
||||
// Not the ones that are a tab of another entry - Log Settings is under Logs
|
||||
$settings_nav_pages = array_filter(settingsPages(), function ($settings_nav_page) {
|
||||
return empty($settings_nav_page['under']);
|
||||
});
|
||||
$settings_nav_current = basename($_SERVER['PHP_SELF']);
|
||||
$settings_nav_open = $settings_nav_current === 'settings.php' || in_array($settings_nav_current, array_column($settings_nav_pages, 'url'), true);
|
||||
?>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* ITFlow - POST handler for Admin > Settings > Logs: how long each log is
|
||||
* ITFlow - POST handler for Admin > Logs > Settings: how long each log is
|
||||
* kept, and sending entries on to a syslog server or SIEM. Save and send a
|
||||
* test saves first, then sends one test message with what was saved
|
||||
* (logForwardTest(), functions/log_forward.php). What changed is in the audit
|
||||
|
||||
@@ -13,8 +13,6 @@ $company = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT company_name, compan
|
||||
FROM companies WHERE company_id = 1")) ?: [];
|
||||
$localization = settingsLocalizationArrays();
|
||||
$themes = settingsThemes();
|
||||
$retention = appLogRetention();
|
||||
$forward = logForwardSettings();
|
||||
$on_off = function ($on) {
|
||||
return $on ? 'on' : 'off';
|
||||
};
|
||||
@@ -58,7 +56,6 @@ $summaries = [
|
||||
'client_portal' => 'Two-step sign-in ' . ($config_client_portal_require_mfa ? 'required' : 'optional'),
|
||||
'identity' => 'Microsoft Entra ' . ($config_azure_client_id ? 'set up' : 'not set up'),
|
||||
'module' => $modules_on ? escapeHtml(implode(', ', $modules_on)) : 'None in use',
|
||||
'logs' => 'Audit log ' . ($retention['audit'] ? 'kept ' . $days($retention['audit']) : 'kept forever') . ' · ' . ($forward['enabled'] ? 'sent to ' . escapeHtml($forward['host']) : 'not sent on'),
|
||||
'telemetry' => $config_telemetry ? 'Nightly report on' : 'Off',
|
||||
];
|
||||
|
||||
@@ -139,7 +136,8 @@ $groups = settingsGroups();
|
||||
<h2 class="h6 text-uppercase text-body-secondary fw-semibold mb-2"><?= escapeHtml($group_title) ?></h2>
|
||||
<div class="itflow-settings-tiles">
|
||||
<?php foreach ($pages as $page_key => $page) {
|
||||
if ($page['group'] !== $group_key) {
|
||||
// A tab of another menu entry (Log Settings, under Logs) is found by Find a setting, not here
|
||||
if ($page['group'] !== $group_key || !empty($page['under'])) {
|
||||
continue;
|
||||
}
|
||||
$available = settingsPageAvailable($page); ?>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* Admin > Settings > Logs - how long the audit log (with API key use) and
|
||||
* Admin > Logs > Settings - how long the audit log (with API key use) and
|
||||
* the app logs are kept, each its own number of days or forever, and sending
|
||||
* their entries on to a syslog server or SIEM as they are written
|
||||
* (functions/log_forward.php). Saved by edit_log_settings, or
|
||||
|
||||
Reference in New Issue
Block a user