\n"; &ui_print_footer("/", $text{'index'}); exit; } $r = &is_postgresql_running(); if ($r == 0) { # Not running .. need to start it &main_header(); print "
$text{'index_notrun'}
\n"; } elsif ($r == -1) { # Running, but user hasn't logged in yet &main_header(); print "
$text{'index_nopass'}
\n"; print "
",&text('index_ldpath', "$ENV{$gconfig{'ld_env'}}", "$config{'psql'}"),"\n"; print "
$out
\n"; &ui_print_footer("/", $text{'index'}); exit; } if ($postgresql_version < 6.5) { print &text('index_eversion', $postgresql_version, 6.5), "
\n"; &ui_print_footer("/", $text{'index'}); exit; } # List the databases print &ui_subheading($text{'index_dbs'}); @icons = map { "images/db.gif" } @titles; @links = map { "edit_dbase.cgi?db=$_" } @titles; if (!@titles) { print "$text{'index_nodbs'}
\n"; } elsif ($displayconfig{'style'}) { @tables = map { if (&accepting_connections($_)) { my @t = &list_tables($_); scalar(@t); } else { "-"; } } @titles; @titles = map { &html_escape($_) } @titles; &split_table([ $text{'index_db'}, $text{'index_tables'} ], undef, \@links, \@titles, \@tables) if (@titles); } else { @titles = map { &html_escape($_) } @titles; &icons_table(\@links, \@titles, \@icons); } } &ui_print_footer("/", "index"); sub main_header { &ui_print_header(undef, $text{'index_title'}, "", "intro", 1, 1, 0, undef, undef, undef, $postgresql_version ? &text('index_version', $postgresql_version) : undef); }