# Execute Dev-Editor's commands
#
# Author: Patrick Canterino <patrick@patshaping.de>
-# Last modified: 2005-07-06
+# Last modified: 2009-03-30
#
use strict;
print FILE $content;
}
- $output = devedit_reload({command => 'show', file => $dir});
+ $output = ($cgi->param('continue'))
+ ? devedit_reload({command => 'beginedit', file => $virtual})
+ : devedit_reload({command => 'show', file => $dir});
}
close(FILE);
if(my $uploaded_file = $cgi->param('uploaded_file'))
{
+ if($cgi->param('remote_file'))
+ {
+ $uploaded_file = $cgi->param('remote_file');
+
+ $uploaded_file =~ s!/!!g;
+ $uploaded_file =~ s!\\!!g;
+ }
+
# Process file upload
my $filename = file_name($uploaded_file);
my $new_physical = $data->{'new_physical'};
return error($config->{'errors'}->{'link_copy'},$dir) if(-l $physical);
+ return error($config->{'errors'}->{'no_copy'},$dir) unless(-r $physical);
if($new_physical)
{
$tpl->parse_if_block('users',1);
- # ID's of user and group
+ # IDs of user and group
$tpl->fillin('UID',$uid);
$tpl->fillin('GID',$gid);