dnssec_rectify_zone($zone_id); } if (isset($_POST['unsign_zone'])) { $zone_name = get_zone_name_from_id($zone_id); dnssec_unsecure_zone($zone_name); update_soa_serial($zone_id); } $domain_type = get_domain_type($zone_id); $record_count = count_zone_records($zone_id); $zone_templates = get_list_zone_templ($_SESSION['userid']); $zone_template_id = get_zone_template($zone_id); echo " <h2>" . _('Edit zone') . " \"" . get_zone_name_from_id($zone_id) . "\"</h2>\n"; echo " <div class=\"showmax\">\n"; show_pages($record_count, $iface_rowamount, $zone_id); echo " </div>\n"; $records = get_records_from_domain_id($zone_id, ROWSTART, $iface_rowamount, RECORD_SORT_BY); if ($records == "-1") { echo " <p>" . _("This zone does not have any records. Weird.") . "</p>\n"; } else { echo " <form method=\"post\" action=\"\">\n"; echo " <table>\n"; echo " <tr>\n"; echo " <th> </th>\n"; echo " <th><a href=\"edit.php?id=" . $zone_id . "&record_sort_by=id\">" . _('Id') . "</a></th>\n"; echo " <th><a href=\"edit.php?id=" . $zone_id . "&record_sort_by=name\">" . _('Name') . "</a></th>\n"; echo " <th><a href=\"edit.php?id=" . $zone_id . "&record_sort_by=type\">" . _('Type') . "</a></th>\n"; echo " <th><a href=\"edit.php?id=" . $zone_id . "&record_sort_by=content\">" . _('Content') . "</a></th>\n"; echo " <th><a href=\"edit.php?id=" . $zone_id . "&record_sort_by=prio\">" . _('Priority') . "</a></th>\n"; echo " <th><a href=\"edit.php?id=" . $zone_id . "&record_sort_by=ttl\">" . _('TTL') . "</a></th>\n"; echo " </tr>\n"; foreach ($records as $r) {
if (isset($_POST["delete_owner"]) && is_numeric($_POST["delete_owner"])) { delete_owner_from_zone($zone_id, $_POST["delete_owner"]); } if ($perm_view == "none" || $perm_view == "own" && $user_is_zone_owner == "0") { error(ERR_PERM_VIEW_ZONE); } else { if (zone_id_exists($zone_id) == "0") { error(ERR_ZONE_NOT_EXIST); } else { $domain_type = get_domain_type($zone_id); $record_count = count_zone_records($zone_id); echo " <h2>" . _('Edit zone') . " \"" . get_zone_name_from_id($zone_id) . "\"</h2>\n"; echo " <div class=\"showmax\">\n"; show_pages($record_count, $iface_rowamount, $zone_id); echo " </div>\n"; $records = get_records_from_domain_id($zone_id, ROWSTART, $iface_rowamount); if ($records == "-1") { echo " <p>" . _("This zone does not have any records. Weird.") . "</p>\n"; } else { echo " <form method=\"post\">\n"; echo " <table>\n"; echo " <tr>\n"; echo " <th> </th>\n"; echo " <th>" . _('Name') . "</th>\n"; echo " <th>" . _('Type') . "</th>\n"; echo " <th>" . _('Content') . "</th>\n"; echo " <th>" . _('Priority') . "</th>\n"; echo " <th>" . _('TTL') . "</th>\n"; echo " </tr>\n"; foreach ($records as $r) { echo " <input type=\"hidden\" name=\"record[" . $r['id'] . "][rid]\" value=\"" . $r['id'] . "\">\n";