forked from webmin/webmin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
list_locals.cgi
executable file
·31 lines (22 loc) · 1.01 KB
/
list_locals.cgi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/local/bin/perl
# list_locals.cgi
# Display domains for which we accept mail for local delivery
require './qmail-lib.pl';
&ui_print_header(undef, $text{'locals_title'}, "");
$dlist = &list_control_file("locals");
$me = &get_control_file("me");
print "<form method=post action=save_locals.cgi enctype=multipart/form-data>\n";
print "<table cellpadding=5 width=100%><tr><td valign=top nowrap>\n";
print "<b>$text{'locals_domains'}</b><br>\n";
printf "<input type=radio name=locals_def value=1 %s> %s \n",
$dlist ? "" : "checked", &text('locals_only', "<tt>$me</tt>");
printf "<input type=radio name=locals_def value=0 %s> %s<br>\n",
$dlist ? "checked" : "", $text{'locals_sel'};
print "<textarea name=locals rows=15 cols=65>",
&html_escape(join("\n", @$dlist)),"</textarea><br>\n";
print "<input type=submit value=\"$text{'save'}\">\n";
print "</td><td valign=top>\n";
print $text{'locals_desc'},"\n";
print "</td></tr></table>\n";
print "</form>\n";
&ui_print_footer("", $text{'index_return'});