mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 19:04:52 +00:00
- Move more things to new permissions system - Deduplicate assets post logic into model - Swap out some "SELECT *" queries when only a couple of rows are actually needed
12 lines
320 B
PHP
12 lines
320 B
PHP
<?php
|
|
$name = sanitizeInput($_POST['name']);
|
|
$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']);
|