#
# Execute Dev-Editor's commands
#
-# Author: Patrick Canterino <patshaping@gmx.net>
-# Last modified: 2004-11-26
+# Author: Patrick Canterino <patrick@patshaping.de>
+# Last modified: 2004-11-29
#
use strict;
return error($config->{'errors'}->{'in_use'},$dir,{FILE => $virtual}) if($uselist->in_use($virtual));
}
- return error($config->{'errors'}->{'text_to_binary'},$dir) unless(-T $physical);
return error($config->{'errors'}->{'editdir'},$dir) if(-d $physical);
return error($config->{'errors'}->{'no_edit'},$dir) if(-e $physical && !(-r $physical && -w $physical));
+ return error($config->{'errors'}->{'text_to_binary'},$dir) unless(-T $physical);
if(file_save($physical,\$content))
{
my $cgi = $data->{'cgi'};
return error($config->{'errors'}->{'no_directory'},upper_path($virtual),{FILE => $virtual}) unless(-d $physical);
- return error($config->{'errors'}->{'dir_no_create'},$virtual,{DIR => $virtual});
+ return error($config->{'errors'}->{'dir_no_create'},$virtual,{DIR => $virtual}) unless(-w $physical);
if(my $uploaded_file = $cgi->param('uploaded_file'))
{