Show which categories a managed instance's errors were logged under: its check-in sends the count per category, never the error text, which can hold client addresses and subjects; the manager names them in the health line and lists them under Errors today, where the count and each category sign in as support straight to the instance's App Logs filtered to those errors, a page an older instance ignores so its count stays plain; Managed By's list of what it tells its manager says so

This commit is contained in:
johnnyq
2026-11-25 01:00:50 -05:00
parent 41b14c7718
commit 1b7a84de40
5 changed files with 88 additions and 10 deletions

View File

@@ -75,5 +75,9 @@ $session_user_id = $support_user_id;
logAudit("Login", "Support", escapeSql("Support sign-in from $support_manager" . ($support_label !== '' ? " - $support_label" : '')), 0, $support_user_id);
appNotify("Management", escapeSql(($support_label !== '' ? $support_label : 'Support') . " from $support_manager signed in for support"), "/admin/audit_logs.php", 0, $support_user_id);
// The page the manager sent them to (its error log, say), else the start page
if ($support_who['page'] !== '') {
redirect('/' . $support_who['page']);
}
$support_start_page = (string) (mysqli_fetch_row(mysqli_query($mysqli, "SELECT config_start_page FROM settings WHERE company_id = 1"))[0] ?? '');
redirect("/agent/" . (preg_match('/^[a-z0-9_\/.?=&-]+$/i', $support_start_page) ? $support_start_page : 'clients.php'));