Handle hostnames with upper-case letters
[webmin.git] / webmin / edit_lock.cgi
1 #!/usr/local/bin/perl
2 # Display the locking form
3
4 require './webmin-lib.pl';
5 &ui_print_header(undef, $text{'lock_title'}, "");
6
7 print $text{'lock_desc'},"<p>\n";
8
9 print &ui_form_start("change_lock.cgi", "post");
10 print &ui_table_start($text{'lock_header'}, undef, 2);
11
12 @grid = ( );
13 push(@grid, &ui_radio("lockmode", int($gconfig{'lockmode'}),
14                 [ [ 0, $text{'lock_all'}."<br>" ],
15                   [ 1, $text{'lock_none'}."<br>" ],
16                   [ 2, $text{'lock_only'}."<br>" ],
17                   [ 3, $text{'lock_except'} ] ]));
18 push(@grid, &ui_textarea("lockdirs",
19                 join("\n", split(/\t+/, $gconfig{'lockdirs'})), 10, 60));
20 print &ui_table_row(undef, &ui_grid_table(\@grid, 2), 2);
21
22 print &ui_table_end();
23 print &ui_form_end([ [ "save", $text{'save'} ] ]);
24
25 &ui_print_footer("", $text{'index_return'});
26