$zone_templ_id = $_GET['zone_templ_id']; } $confirm = "-1"; if (isset($_GET['confirm']) && v_num($_GET['confirm'])) { $confirm = $_GET['confirm']; } if ($record_id == "-1" || $zone_templ_id == "-1") { error(ERR_INV_INPUT); } else { $owner = get_zone_templ_is_owner($zone_templ_id, $_SESSION['userid']); if ($confirm == '1' && $owner) { if (delete_zone_templ_record($record_id)) { success(SUC_RECORD_DEL); } } else { $templ_details = get_zone_templ_details($zone_templ_id); $record_info = get_zone_templ_record_from_id($record_id); echo " <h2>" . _('Delete record in zone') . " \"" . $templ_details['name'] . "\"</h2>\n"; if (!do_hook('verify_permission', 'zone_master_add') || !$owner) { error(ERR_PERM_DEL_RECORD); } else { echo " <table>\n"; echo " <tr>\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"; echo " <tr>\n"; echo " <td>" . $record_info['name'] . "</td>\n";
foreach ($zone_templates as $zone_template) { $add = ''; if ($zone_template['id'] == $zone_template_id) { $add = " SELECTED"; } echo " <option . {$add} . value=\"" . $zone_template['id'] . "\">" . $zone_template['name'] . "</option>\n"; } echo " </select>\n"; echo " </td>\n"; echo " <td>\n"; echo " <input type=\"submit\" class=\"sbutton\" name=\"template_change\" value=\"" . _('Change') . "\">\n"; echo " </td>\n"; echo " </tr>\n"; echo " </form>\n"; } else { $zone_template_details = get_zone_templ_details($zone_template_id); echo " <tr><td>" . (isset($zone_template_details) ? strtolower($zone_template_details['name']) : "none") . "</td><td> </td></tr>\n"; } if ($domain_type == "SLAVE") { $slave_master = get_domain_slave_master($zone_id); echo " <tr>\n"; echo " <th colspan=\"2\">" . _('IP address of master NS') . "</th>\n"; echo " </tr>\n"; if ($meta_edit) { echo " <form action=\"" . htmlentities($_SERVER['PHP_SELF'], ENT_QUOTES) . "?id=" . $zone_id . "\" method=\"post\">\n"; echo " <input type=\"hidden\" name=\"domain\" value=\"" . $zone_id . "\">\n"; echo " <tr>\n"; echo " <td>\n"; echo " <input type=\"text\" name=\"new_master\" value=\"" . $slave_master . "\" class=\"input\">\n"; echo " </td>\n"; echo " <td>\n";