Put each page's settings on that page

A watchdog threshold was reachable only from the bottom of a list of a hundred
and twenty on another tab.
This commit is contained in:
Gmer4Lfe
2026-08-12 19:55:51 -04:00
parent 8ca52c64b9
commit e64d26af6c
13 changed files with 284 additions and 151 deletions
+7 -1
View File
@@ -107,8 +107,14 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
// with boundaries around it rather than as a pattern a caller could widen to everything.
// "*" is every section this host has. Deliberately not the same as an empty needle, which
// would match everything by accident rather than on purpose.
// Several words, pipe-separated, each still matched whole and still quoted as a literal.
// One word was not enough: the Arr sections are named Arr Sync, Lidarr, Sonarr and
// Radarr, and no single stem catches those without also catching "Array Start", which is
// the Unraid disk array and nothing to do with them.
$all = ($match === '*');
$re = $all ? '' : '/\b' . preg_quote($match, '/') . '\b/i';
$re = $all ? '' : '/\b(' . implode('|', array_map(
fn($w) => preg_quote(trim($w), '/'),
array_filter(explode('|', $match), fn($w) => trim($w) !== ''))) . ')\b/i';
$out = [];
foreach (vv_get_conf_files() as $f) {
foreach (vv_conf_all_groups($f) as $g) {