$fname, 'filter_type' => $ftype ]); if ($new_id) { header("Location: editfilter.php?id=$new_id"); exit; } } header("Location: " . $_SERVER["REQUEST_URI"]); exit; } // Удаление фильтров if (getPOST("remove") !== null) { $fid = getPOST("fid", null, []); if (!empty($fid) && is_array($fid)) { foreach ($fid as $val) { $val = trim($val); if ($val === '') continue; // Удаляем из связей delete_records($db_link, "group_filters", "filter_id = ?", [(int)$val]); // Удаляем сам фильтр delete_record($db_link, "filter_list", "id = ?", [(int)$val]); } } header("Location: " . $_SERVER["REQUEST_URI"]); exit; } unset($_POST); require_once($_SERVER['DOCUMENT_ROOT'] . "/inc/header.php"); print_filters_submenu($page_url); ?>
\n"; print "\n"; print "\n"; print "\n"; if (empty($row['description'])) { $row['description'] = ''; } if (empty($row['proto'])) { $row['proto'] = ''; } if (empty($row['dst'])) { $row['dst'] = ''; } if (empty($row['dstport'])) { $row['dstport'] = ''; } if (empty($row['srcport'])) { $row['srcport'] = ''; } if ($row['filter_type'] == 0) { print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; } else { print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; } print ""; } ?>
id
" . $row['id'] . "" . $row['name'] . "IP фильтр" . $row['proto'] . "" . $row['dst'] . "" . $row['dstport'] . "" . $row['srcport'] . "" . $row['description'] . "Name фильтр" . $row['dst'] . "" . $row['description'] . "