#!/usr/local/bin/perl # list_locals.cgi # Display local access records require './postgresql-lib.pl'; $access{'users'} || &error($text{'local_ecannot'}); &ui_print_header(undef, $text{'local_title'}, ""); @locals = grep { $_->{'type'} eq 'local' } &get_hba_config(); print "
| $text{'host_db'} | ", "$text{'host_auth'} |
| ",$l->{'db'} eq 'all' ? $text{'host_all'} : $l->{'db'} eq 'sameuser' ? $text{'host_same'} : $l->{'db'}," | \n"; print "",$text{"host_$l->{'auth'}"}," | \n"; print "
\n"; &ui_print_footer("", $text{'index'});