Handle hostnames with upper-case letters
[webmin.git] / cluster-usermin / sync_form.cgi
1 #!/usr/local/bin/perl
2 # sync_form.cgi
3 # Display a form for creating some or all missing users and groups on
4 # some or all servers
5
6 require './cluster-usermin-lib.pl';
7 &ui_print_header(undef, $text{'sync_title'}, "");
8
9 print "$text{'sync_desc'}<p>\n";
10 print "<form action=sync.cgi>\n";
11 print "<table>\n";
12
13 print "<tr> <td valign=top><b>$text{'sync_hosts'}</b></td> <td>\n";
14 &create_on_input(undef, 1, 1, 1);
15 print "</td> </tr>\n";
16
17 print "<tr> <td valign=top><b>$text{'sync_users'}</b></td> <td>\n";
18 print "<input type=radio name=users_mode value=1> ",
19       "$text{'sync_uall'}&nbsp;&nbsp;\n";
20 print "<input type=radio name=users_mode value=0 checked> ",
21       "$text{'sync_unone'}<br>\n";
22 print "<input type=radio name=users_mode value=2> ",
23       "$text{'sync_usel'}\n";
24 print "<input name=usel size=30><br>\n";
25 print "<input type=radio name=users_mode value=3> ",
26       "$text{'sync_unot'}\n";
27 print "<input name=unot size=30><br>\n";
28 print "</td> </tr>\n";
29
30 print "<tr> <td valign=top><b>$text{'sync_groups'}</b></td> <td>\n";
31 print "<input type=radio name=groups_mode value=1> ",
32       "$text{'sync_gall'}&nbsp;&nbsp;\n";
33 print "<input type=radio name=groups_mode value=0 checked> ",
34       "$text{'sync_gnone'}<br>\n";
35 print "<input type=radio name=groups_mode value=2> ",
36       "$text{'sync_gsel'}\n";
37 print "<input name=gsel size=30><br>\n";
38 print "<input type=radio name=groups_mode value=3> ",
39       "$text{'sync_gnot'}\n";
40 print "<input name=gnot size=30><br>\n";
41 print "</td> </tr>\n";
42
43 print "<tr> <td><b>$text{'sync_test'}</b></td>\n";
44 print "<td><input type=radio name=test value=1> $text{'yes'}\n";
45 print "<input type=radio name=test value=0 checked> $text{'no'}</td> </tr>\n";
46
47 print "</table>\n";
48 print "<input type=submit value='$text{'sync_ok'}'></form>\n";
49
50 &ui_print_footer("", $text{'index_return'});
51