mirror of
https://github.com/webmin/webmin.git
synced 2025-07-21 23:40:34 +00:00
21 lines
358 B
Perl
Executable File
21 lines
358 B
Perl
Executable File
#!/usr/local/bin/perl
|
|
|
|
require './filemin-lib.pl';
|
|
&ReadParse();
|
|
|
|
get_paths();
|
|
|
|
my @errors;
|
|
|
|
foreach $name (split(/\0/, $in{'name'})) {
|
|
if(!&unlink_file($cwd.'/'.$name)) {
|
|
push @errors, "$name - $text{'error_delete'}: $!";
|
|
}
|
|
}
|
|
|
|
if (scalar(@errors) > 0) {
|
|
print_errors(@errors);
|
|
} else {
|
|
&redirect("index.cgi?path=".&urlize($path));
|
|
}
|