file_exists = A file or directory called '{FILE}' already exists.
exist_edited = The target file '{FILE}' already exists and is edited by someone else.
in_use = The file '{FILE}' is currently edited by someone else.
+dir_replace = You are not allowed to replace a directory.
noview = You have not enough permissions to view this file.
nocopy = You have not enough permissions to copy this file.
dircopy = This editor is not able to copy directories.
# Execute Dev-Editor's commands
#
# Author: Patrick Canterino <patshaping@gmx.net>
-# Last modified: 2004-08-29
+# Last modified: 2004-09-05
#
use strict;
my $virtual = encode_entities($data->{'virtual'});
my $new_physical = $data->{'new_physical'};
- return error($config->{'errors'}->{'nocopy'}) unless(-r $physical);
+ return error($config->{'errors'}->{'dircopy'}) if(-d $physical);
+ return error($config->{'errors'}->{'nocopy'}) unless(-r $physical);
if($new_physical)
{
if(-d $new_physical)
{
- return error($config->{'errors'}->{'dircopy'});
+ return error($config->{'errors'}->{'dir_replace'},$dir);
}
elsif(not $data->{'cgi'}->param('confirmed'))
{
if(-d $new_physical)
{
- return error($config->{'errors'}->{'dircopy'});
+ return error($config->{'errors'}->{'dir_replace'},$dir);
}
elsif(not $data->{'cgi'}->param('confirmed'))
{