#!/usr/local/bin/perl # Display users in the .htpasswd file require './htpasswd-file-lib.pl'; if ($access{'single'}) { &redirect("edit.cgi"); exit; } &ui_print_header(undef, $text{'index_title'}, "", undef, 1, 1); # Check if file is set in config if (!$config{'file'}) { print &text('index_econfig', "../config.cgi?$module_name"),"
\n"; &ui_print_footer("/", $text{'index'}); exit; } if ($config{'md5'}) { # Check if MD5 perl module is installed, and offer to install &foreign_require("useradmin", "user-lib.pl"); if (!defined(&useradmin::check_md5)) { print &text('index_eversion', "../config.cgi?$module_name"),"
\n"; &ui_print_footer("/", $text{'index'}); exit; } elsif ($err = &useradmin::check_md5()) { print &text('index_emd5', "../config.cgi?$module_name", "$err", "../cpan/download.cgi?source=3&cpan=Digest::MD5&mode=2&return=/$module_name/&returndesc=".&urlize($text{'index_return'})),"
\n";
&ui_print_footer("/", $text{'index'});
exit;
}
}
# Display list of users
print &ui_subheading(&text('index_file', "$config{'file'}"));
$users = &list_users();
if (@$users) {
print "$text{'index_add'}
\n"
if ($access{'create'});
print "
$text{'index_header'} | |||
|
\n"; } print "$text{'index_add'}
\n" if ($access{'create'}); if ($access{'sync'}) { # Show sync options print "