mirror of
https://github.com/webmin/webmin.git
synced 2026-05-06 23:30:29 +01:00
28 lines
446 B
Perl
Executable File
28 lines
446 B
Perl
Executable File
#!/usr/local/bin/perl
|
|
|
|
require './filemin-lib.pl';
|
|
&ReadParse();
|
|
|
|
get_paths();
|
|
|
|
my @errors;
|
|
|
|
foreach $name (split(/\0/, $in{'name'})) {
|
|
if (!can_write($cwd.'/'.$name)) {
|
|
push @errors,
|
|
"$name - $text{'error_write'}";
|
|
next;
|
|
}
|
|
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));
|
|
}
|