#!/usr/local/bin/perl
# edit_domain.cgi
# Edit an existing domain

require './sendmail-lib.pl';
require './domain-lib.pl';
&ReadParse();
$access{'domains'} || &error($text{'dform_ecannot'});
$conf = &get_sendmailcf();
@doms = &list_domains(&domains_file($conf));

&header($text{'dform_edit'}, "");
print "<hr>\n";
&domain_form($doms[$in{'num'}]);
print "<hr>\n";
&footer("list_domains.cgi", $text{'domains_return'},
	"", $text{'index_return'});

