mirror of
https://github.com/webmin/webmin.git
synced 2026-02-10 01:02:19 +00:00
21 lines
404 B
Perl
21 lines
404 B
Perl
#!/usr/bin/perl
|
|
|
|
require './filemin-lib.pl';
|
|
&ReadParse();
|
|
|
|
get_paths();
|
|
|
|
if(!$in{'name'}) {
|
|
&redirect("index.cgi?path=$path");
|
|
}
|
|
|
|
if (-e "$cwd/$in{'name'}") {
|
|
print_errors("$in{'name'} $text{'error_exists'}");
|
|
} else {
|
|
if( mkdir ("$cwd/$in{'name'}", oct(755)) ) {
|
|
&redirect("index.cgi?path=$path");
|
|
} else {
|
|
print_errors("$text{'error_create'} $in{'name'}: $!");
|
|
}
|
|
}
|