What was that?
Something definitely went wrong when I remade the copy and the rename functions.
They printed a wrong error message if the destination already existed and if it
was a file.
Dev-Editor also didn't deny copying a directory.
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.
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.
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>
# Execute Dev-Editor's commands
#
# Author: Patrick Canterino <patshaping@gmx.net>
-# Last modified: 2004-08-29
+# Last modified: 2004-09-05
my $virtual = encode_entities($data->{'virtual'});
my $new_physical = $data->{'new_physical'};
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);
- return error($config->{'errors'}->{'dircopy'});
+ return error($config->{'errors'}->{'dir_replace'},$dir);
}
elsif(not $data->{'cgi'}->param('confirmed'))
{
}
elsif(not $data->{'cgi'}->param('confirmed'))
{
- return error($config->{'errors'}->{'dircopy'});
+ return error($config->{'errors'}->{'dir_replace'},$dir);
}
elsif(not $data->{'cgi'}->param('confirmed'))
{
}
elsif(not $data->{'cgi'}->param('confirmed'))
{