#!/usr/local/bin/perl # edit_nauth.cgi # Display a list of proxy users require './squid-lib.pl'; if ($config{'crypt_conf'} == 1) { eval "use MD5"; if ($@) { &error(&text('eauth_nomd5', $module_name)); } } $access{'proxyauth'} || &error($text{'eauth_ecannot'}); &ui_print_header(undef, $text{'eauth_header'}, "", undef, 0, 0, 0, &restart_button()); $conf = &get_config(); $authfile = &get_auth_file($conf); print &text('eauth_nmsgaccess', "$authfile"),"
\n";
@users = &list_auth_users($authfile);
if (@users) {
print "$text{'eauth_addpuser'}
\n";
print "
| $text{'eauth_pusers'} | ||
|
\n"; } print "$text{'eauth_addpuser'}
\n"; &ui_print_footer("", $text{'eauth_return'});