forked from webmin/webmin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsync_form.cgi
executable file
·51 lines (42 loc) · 1.78 KB
/
sync_form.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/local/bin/perl
# sync_form.cgi
# Display a form for creating some or all missing users and groups on
# some or all servers
require './cluster-webmin-lib.pl';
&ui_print_header(undef, $text{'sync_title'}, "");
print "$text{'sync_desc'}<p>\n";
print "<form action=sync.cgi>\n";
print "<table>\n";
print "<tr> <td valign=top><b>$text{'sync_hosts'}</b></td> <td>\n";
&create_on_input(undef, 1, 1, 1);
print "</td> </tr>\n";
print "<tr> <td valign=top><b>$text{'sync_users'}</b></td> <td>\n";
print "<input type=radio name=users_mode value=1> ",
"$text{'sync_uall'} \n";
print "<input type=radio name=users_mode value=0 checked> ",
"$text{'sync_unone'}<br>\n";
print "<input type=radio name=users_mode value=2> ",
"$text{'sync_usel'}\n";
print "<input name=usel size=30><br>\n";
print "<input type=radio name=users_mode value=3> ",
"$text{'sync_unot'}\n";
print "<input name=unot size=30><br>\n";
print "</td> </tr>\n";
print "<tr> <td valign=top><b>$text{'sync_groups'}</b></td> <td>\n";
print "<input type=radio name=groups_mode value=1> ",
"$text{'sync_gall'} \n";
print "<input type=radio name=groups_mode value=0 checked> ",
"$text{'sync_gnone'}<br>\n";
print "<input type=radio name=groups_mode value=2> ",
"$text{'sync_gsel'}\n";
print "<input name=gsel size=30><br>\n";
print "<input type=radio name=groups_mode value=3> ",
"$text{'sync_gnot'}\n";
print "<input name=gnot size=30><br>\n";
print "</td> </tr>\n";
print "<tr> <td><b>$text{'sync_test'}</b></td>\n";
print "<td><input type=radio name=test value=1> $text{'yes'}\n";
print "<input type=radio name=test value=0 checked> $text{'no'}</td> </tr>\n";
print "</table>\n";
print "<input type=submit value='$text{'sync_ok'}'></form>\n";
&ui_print_footer("", $text{'index_return'});