Файл: EasyHost v2.0/system/htdocs/manager/files/file/delete.pl
Строк: 13
<?php
my $reload = undef;
while (my $file = $files->fetch)
{
if ($file->type eq 'directory')
{
rmdir $file->real->path || $system->error('Couldn't delete directory '.$file->name.': '.$!);
$reload = '&dir_reload=on';
}
else
{
unlink $file->real->path || $system->error('Couldn't delete file '.$file->name.': '.$!);
}
$login->user->notice('file_delete','deleted a file ('.$file->path.')');
}
$login->user->update_usage;
$system->redirect('/manager/files/directory'.$reload);
?>