Skip to content

Commit

Permalink
Show directory description
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Sep 12, 2021
1 parent 4e2df90 commit 8f30232
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions list-protected-directories.pl
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ package virtualmin_htpasswd;
no warnings "once";
my $afile = "$dir->[0]/$htaccess_htpasswd::config{'htaccess'}";
my $conf = &apache::get_htaccess_config($afile);
my $desc = &apache::find_directive("AuthName", $conf, 1);
print $dir->[0],"\n";
print " Users file: $dir->[1]\n";
print " Access file: $afile\n";
Expand All @@ -82,6 +83,7 @@ package virtualmin_htpasswd;
print " Format: ",($dir->[2] == 0 ? "Crypt" :
$dir->[2] == 1 ? "MD5" :
$dir->[2] == 2 ? "SHA1" : "Digest"),"\n";
print " Description: $desc\n";
print " User count: ",scalar(@$users),"\n";
}
}
Expand Down

0 comments on commit 8f30232

Please sign in to comment.