Handle hostnames with upper-case letters
[webmin.git] / quota / copy_user_form.cgi
1 #!/usr/local/bin/perl
2 # copy_user_form.cgi
3 # Display a form for copying some user's quotas to others
4
5 require './quota-lib.pl';
6 &ReadParse();
7 $access{'filesys'} eq "*" ||
8         &error($text{'cuform_ecannot'});
9 &can_edit_user($in{'user'}) ||
10         &error($text{'cuform_euallow'});
11 &ui_print_header(undef, $text{'cuform_title'}, "", "copy_user");
12
13 print "<b>",&text('cuform_copyto', $in{'user'}),"</b><p>\n";
14 print &ui_form_start("copy_user.cgi");
15 print &ui_hidden("user", $in{'user'});
16 print &ui_radio_table("dest", 1,
17         [ [ 0, $text{'cuform_all'} ],
18           [ 1, $text{'cuform_select'}, &ui_textbox("users", undef, 40)." ".
19                                        &user_chooser_button("users",1) ],
20           [ 2, $text{'cuform_members'}, &ui_textbox("groups", undef, 40)." ".
21                                         &group_chooser_button("groups",1) ],
22         ]);
23 print &ui_form_end([ [ undef, $text{'cuform_doit'} ] ]);
24
25 &ui_print_footer("user_filesys.cgi?user=$in{'user'}", $text{'cuform_return'});