if (!empty($nessus_action) and !empty($net_name)) { if ($nessus_action == "toggle") { $nessus_action = ($scan_list = Net_scan::get_list($conn, "WHERE net_name = '{$net_name}' AND plugin_id = 3001")) ? "disable" : "enable"; } if ($nessus_action == "enable") { Net::enable_plugin($conn, $net_name, 3001); } elseif ($nessus_action = "disable") { Net::disable_plugin($conn, $net_name, 3001); } } if (!empty($nagios_action) and !empty($net_name)) { if ($nagios_action == "toggle") { $nagios_action = ($scan_list = Net_scan::get_list($conn, "WHERE net_name = '{$net_name}' AND plugin_id = 2007")) ? "disable" : "enable"; } if ($nagios_action == "enable") { Net::enable_plugin($conn, $net_name, 2007); } elseif ($nagios_action = "disable") { Net::disable_plugin($conn, $net_name, 2007); } } if (empty($order)) { $order = "name"; } $start = ($page - 1) * $rp; $limit = "LIMIT {$start}, {$rp}"; $where = ""; if (!empty($search) && !empty($field)) { $where = "name LIKE '%{$search}%'"; } $xml = ""; $net_list = Net::get_list($conn, $where, "ORDER BY {$order} {$limit}");