0) { set_port_for_group($db_link, $f_ou_id, $building_id, 1); } } } header("Location: " . $_SERVER["REQUEST_URI"]); exit; } // Отключение портов if (getPOST("port_off") !== null) { $port_off = getPOST("port_off", null, []); if (is_array($port_off)) { foreach ($port_off as $building_id) { $building_id = (int)$building_id; if ($building_id > 0) { set_port_for_group($db_link, $f_ou_id, $building_id, 0); } } } header("Location: " . $_SERVER["REQUEST_URI"]); exit; } unset($_POST); require_once ($_SERVER['DOCUMENT_ROOT']."/inc/header.php"); ?>