MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /usr/libexec/webmin/postgresql/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/libexec/webmin/postgresql/list_locals.cgi
#!/usr/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 "<table border width=100%>\n";
print "<tr $tb> <td><b>$text{'host_db'}</b></td> ",
      "<td><b>$text{'host_auth'}</b></td> </tr>\n";
foreach $l (@locals) {
	print "<tr $cb>\n";
	print "<td>",$l->{'db'} eq 'all' ? $text{'host_all'} :
		     $l->{'db'} eq 'sameuser' ? $text{'host_same'} :
					        $l->{'db'},"</td>\n";
	print "<td>",$text{"host_$l->{'auth'}"},"</td>\n";
	print "</tr>\n";
	}
print "</table>\n";
print "<a href='edit_local.cgi?new=1'>$text{'local_add'}</a><p>\n";

&ui_print_footer("", $text{'index'});


Anon7 - 2021