Asset Interfaces: Renamed Port to Description, added Interface Type

This commit is contained in:
johnnyq
2025-02-12 17:13:39 -05:00
parent 8d8b0f4a48
commit fe762ef926
11 changed files with 152 additions and 89 deletions

View File

@@ -2,13 +2,14 @@
defined('FROM_POST_HANDLER') || die("Direct file access is not allowed");
$name = sanitizeInput($_POST['name']);
$description = sanitizeInput($_POST['description']);
$type = sanitizeInput($_POST['type']);
$mac = sanitizeInput($_POST['mac']);
$ip = sanitizeInput($_POST['ip']);
if ($_POST['dhcp'] == 1){
$ip = 'DHCP';
}
$ipv6 = sanitizeInput($_POST['ipv6']);
$port = sanitizeInput($_POST['port']);
$network = intval($_POST['network']);
$notes = sanitizeInput($_POST['notes']);
$connected_to = intval($_POST['connected_to']);