Session::logcheck('configuration-menu', 'PolicyPorts'); $db = new ossim_db(TRUE); $conn = $db->connect(); $update = intval(GET('update')); $id = GET('id'); $descr = ''; $actives_ports = array(); if ($id != '') { ossim_valid($id, OSS_DIGIT, 'illegal:' . _('Port Group ID')); if (ossim_error()) { die(ossim_error()); } if ($port_group_list = Port_group::get_list($conn, "WHERE id = {$id}")) { $port_group = $port_group_list[0]; } $actives_ports = Port_group_reference::in_port_group_reference_for_id($conn, $id); $pgname = $port_group->get_name(); $descr = $port_group->get_descr(); $ctx = $port_group->get_ctx(); } $action = GET('id') != '' ? 'modifyportgroup.php' : 'newportgroup.php'; if (!Session::show_entities()) { $ctx = Session::get_default_ctx(); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title> <?php echo _("OSSIM Framework");