#!/usr/local/bin/perl
# edit_newdom.cgi
# Display the current new domain email

require './virtual-server-lib.pl';
&can_edit_templates() || &error($text{'newuser_ecannot'});
&ui_print_header(undef, $text{'newuser_title'}, "");

print "<form action=save_newuser.cgi method=post enctype=multipart/form-data>\n";
$file = $config{'user_template'};
$file = "$module_config_directory/user-template"
	if ($file eq "none" || $file eq 'default');

print &text($config{'user_template'} eq "none" ?
	    'newuser_descdis' : 'newuser_desc', "<tt>$file</tt>"),"<p>\n";
$text{'sub_USER'} = $text{'sub_POP3'};
$text{'sub_HOME'} = $text{'sub_POP3HOME'};
&print_subs_table("MAILBOX", "USER", "PLAINPASS", "DOM", "FTP", "HOME",
		  "QUOTA");
print &email_template_input($file,
	    $config{'newuser_subject'} || $text{'mail_usubject'},
	    $config{'newuser_cc'},
	    $config{'newuser_to_mailbox'},
	    $config{'newuser_to_owner'},
	    $config{'newuser_to_reseller'});
print "<br>\n";
print "<input type=submit value='$text{'save'}'>\n";
print "<input type=reset value='$text{'newweb_undo'}'>\n";
print "</form>\n";

&ui_print_footer("", $text{'index_return'});

