// figure out which boxes are currently enabled if (!empty($_GET['id'])) { $sql = "SELECT * FROM `auth_groups_perms` WHERE `resource` = \"" . $subnet_name . "\""; if (($sql_res = $db->dbQuery($val->ValidateSQL($sql, $dbconn), $dbconn)) !== -1) { $select_groups = $db->dbArrayResultsAssoc($sql_res); } } $select_groups = $misc->GenGroupsCheckBoxes($groups, 'select_groups', $_GET['skin'], $select_groups, $group); } else { $select_groups = $err->GenerateErrorLink("help/help.html", "#undef", $defined['error'], "No groups defined", NULL, NULL); } } else { $select_groups = $err->GenerateErrorLink("help/help.html", "#undef", $defined['error'], $errors['db_select_err'], NULL, NULL); } // show the user the list of interfaces and their broadcast address if (($ilist = $misc->GenTableFromAssocArray($interface_list)) === -1) { $adapters = $err->GenerateErrorLink("help/help.html", "#config_subnet", $defined['error'], "There are no interfaces configured", NULL, NULL); } else { $adapters = $misc->GenTableFromAssocArray($interface_list); } // figure out our radio buttons if ($enable_scope === "true") { $enable_scope_true = "checked"; } if ($enable_scope === "false" || empty($enable_scope)) { $enable_scope_false = "checked"; } if ($enable_forwarding === "true") { $enable_forwarding_true = "checked"; } if ($enable_forwarding === "false" || empty($enable_forwarding)) {