Bring network platform sites' networks and VLANs into their clients' networks, matched by subnet and kept up detail by detail, with a platform card on the network page, with database 4.1.6

This commit is contained in:
johnnyq
2026-11-23 00:57:43 -05:00
parent 3171cb367d
commit 47deaba513
12 changed files with 572 additions and 21 deletions

View File

@@ -218,6 +218,9 @@ function networkDelete($row) {
$network_id = intval($row['network_id']);
mysqli_query($mysqli, "UPDATE asset_interfaces SET interface_network_id = 0 WHERE interface_network_id = $network_id");
mysqli_query($mysqli, "DELETE FROM networks WHERE network_id = $network_id");
if (function_exists('rmmNetworksDeleted')) {
rmmNetworksDeleted([$network_id]);
}
logAudit("Network", "Delete", "$session_name deleted network " . escapeSql($row['network_name']), intval($row['network_client_id']));
}