Add Network Platforms with UniFi device sync from a self-hosted controller, a UniFi console API key or Site Manager, matching assets by MAC address, with database 4.1.5

This commit is contained in:
johnnyq
2026-11-23 00:56:56 -05:00
parent 35cc39af87
commit 3171cb367d
19 changed files with 1100 additions and 140 deletions

View File

@@ -139,13 +139,23 @@
</li>
<?php // Its setup, and the texts sent and received once it's set up (adminNavGroups()) ?>
<?= adminNavGroupItemHtml('text') ?>
<?php // A provider's clients page is its family's - a network platform's sites are under Network Platforms
$nav_rmm_page = basename($_SERVER['PHP_SELF']);
$nav_rmm_family = $nav_rmm_page === 'rmm_clients.php' && function_exists('rmmFamily') ? rmmFamily(rmmProviderRow($_GET['provider_id'] ?? 0) ?? '') : ''; ?>
<li class="nav-item">
<a href="/admin/rmm_providers.php"
class="nav-link <?= (in_array(basename($_SERVER['PHP_SELF']), ['rmm_providers.php', 'rmm_clients.php']) ? 'active' : '') ?>">
class="nav-link <?= ($nav_rmm_page === 'rmm_providers.php' || ($nav_rmm_page === 'rmm_clients.php' && $nav_rmm_family !== 'network') ? 'active' : '') ?>">
<i class="nav-icon fas fa-laptop-medical"></i>
<p>RMM Providers</p>
</a>
</li>
<li class="nav-item">
<a href="/admin/network_platforms.php"
class="nav-link <?= ($nav_rmm_page === 'network_platforms.php' || ($nav_rmm_page === 'rmm_clients.php' && $nav_rmm_family === 'network') ? 'active' : '') ?>">
<i class="nav-icon fas fa-network-wired"></i>
<p>Network Platforms</p>
</a>
</li>
<li class="nav-item">
<a href="/admin/phone_systems.php"
class="nav-link <?= (in_array(basename($_SERVER['PHP_SELF']), ['phone_systems.php', 'phone_domains.php']) ? 'active' : '') ?>">