Handle hostnames with upper-case letters
[webmin.git] / proftpd / save_ftpaccess.cgi
1 #!/usr/local/bin/perl
2 # save_ftpaccess.cgi
3 # Save some kind of per-directory options file
4
5 require './proftpd-lib.pl';
6 &ReadParse();
7 $conf = &get_ftpaccess_config($in{'file'});
8 @edit = &editable_directives($in{'type'}, 'ftpaccess');
9
10 &lock_file($in{'file'});
11 &error_setup(&text('efailed', $text{"type_$in{'type'}"}));
12 &parse_inputs(\@edit, $conf, $conf);
13 &unlock_file($in{'file'});
14 &webmin_log("ftpaccess", $in{'type'}, $in{'file'}, \%in);
15
16 &redirect("ftpaccess_index.cgi?file=$in{'file'}");