summary | 
shortlog | 
log | 
commit | commitdiff | 
tree
raw | 
patch | 
inline | side by side (from parent 1: 
d224f56)
 
When new option "hide_dot_files" is set to 1, every file or directory beginning
with a "." is not shown in the directory listing. But you can still access the
file / directory by typing its name into the "Go to directory/file" box.
This option is also available in the user-dependent configuration.
 #
 # Please don't use quotation marks around the keys and values!
 
 #
 # Please don't use quotation marks around the keys and values!
 
-fileroot      = D:/WWW/dokumente/devedit-test
-httproot      = /devedit-test/
+fileroot       = D:/WWW/dokumente/devedit-test
+httproot       = /devedit-test/
-timeformat    = %d.%m.%Y %H:%M
-use_gmt       = 0
+timeformat     = %d.%m.%Y %H:%M
+use_gmt        = 0
-error_file    = errors.conf
-template_file = templates.conf
+hide_dot_files = 0
+
+error_file     = errors.conf
+template_file  = templates.conf
 
 # End of configuration file
\ No newline at end of file
 
 # End of configuration file
\ No newline at end of file
 
 
   foreach my $dir(@$dirs)
   {
 
   foreach my $dir(@$dirs)
   {
+   next if($config->{'hide_dot_files'} && substr($dir,0,1) eq '.');
    next unless(dos_wildcard_match($filter1,$dir));
 
    my $phys_path = $physical.'/'.$dir;
    next unless(dos_wildcard_match($filter1,$dir));
 
    my $phys_path = $physical.'/'.$dir;
 
   foreach my $file(@$files)
   {
 
   foreach my $file(@$files)
   {
+   next if($config->{'hide_dot_files'} && substr($file,0,1) eq '.');
    next unless(dos_wildcard_match($filter1,$file));
 
    my $phys_path = $physical.'/'.$file;
    next unless(dos_wildcard_match($filter1,$file));
 
    my $phys_path = $physical.'/'.$file;
 
 
    my $new_conf = $userconf->{$ENV{'REMOTE_USER'}};
 
 
    my $new_conf = $userconf->{$ENV{'REMOTE_USER'}};
 
-   $config->{'fileroot'}  = $new_conf->{'fileroot'}  if($new_conf->{'fileroot'});
-   $config->{'httproot'}  = $new_conf->{'httproot'}  if($new_conf->{'httproot'});
+   $config->{'fileroot'}       = $new_conf->{'fileroot'}  if($new_conf->{'fileroot'});
+   $config->{'httproot'}       = $new_conf->{'httproot'}  if($new_conf->{'httproot'});
-   $config->{'forbidden'} = $new_conf->{'forbidden'} if(defined $new_conf->{'forbidden'});
+   $config->{'forbidden'}      = $new_conf->{'forbidden'} if(defined $new_conf->{'forbidden'});
-   $config->{'user_config'} = 1;
+   $config->{'hide_dot_files'} = $new_conf->{'hide_dot_files'} if(defined $new_conf->{'hide_dot_files'});
+
+   $config->{'user_config'}    = 1;