$n) $subs[$idx] = []; foreach (Profiler::getRealms() as $row) { $idx = array_search($row['region'], Util::$regions); if ($idx !== false) { $set |= (1 << $idx); $subs[$idx][] = [Profiler::urlize($row['name'], true), $row['name']]; } } if (!$set) CLI::write(' - realmMenu: Auth-DB not set up .. realm menu will be empty', CLI::LOG_WARN); foreach (Util::$regions as $idx => $n) if ($set & (1 << $idx)) $menu[] = [$n, Lang::profiler('regions', $n), null, &$subs[$idx]]; return Util::toJSON($menu); } ?>