use Output;
use Template;
-use Data::Dumper;
-
my $script = encode_entities($ENV{'SCRIPT_NAME'});
my $users = eval('getpwuid(0)') && eval('getgrgid(0)');
return error($config->{'errors'}->{'no_dir_access'},$upper_path) unless(-r $physical && -x $physical);
my $direntries = dir_read($physical);
- return error($config->{'dir_read_fail'},$upper_path,{DIR => encode_entities($virtual)}) unless($direntries);
+ return error($config->{'errors'}->{'dir_read_fail'},$upper_path,{DIR => encode_entities($virtual)}) unless($direntries);
my $files = $direntries->{'files'};
my $dirs = $direntries->{'dirs'};
- my $dir_writeable = -w $physical;
-
my $dirlist = '';
my $filter1 = $data->{'cgi'}->param('filter') || '*'; # The real wildcard
$tpl->fillin('FILTER_URL',escape($filter2));
$tpl->parse_if_block('empty',$dirlist eq '');
- $tpl->parse_if_block('dir_writeable',$dir_writeable);
+ $tpl->parse_if_block('dir_writeable',-w $physical);
$tpl->parse_if_block('filter',$filter2);
$tpl->parse_if_block('gmt',$config->{'use_gmt'});
}
}
else
{
- # The file was saved successfully!
-
if($md5data ne $md5file)
{
seek(FILE,0,0);
}
$output = devedit_reload({command => 'show', file => $dir});
-
- #return error($config->{'errors'}->{'edit_failed'},$dir,{FILE => $virtual});
}
close(FILE);