#!/usr/local/bin/perl # newdb_form.cgi # Display a form for creating a new database require './postgresql-lib.pl'; $access{'create'} || &error($text{'newdb_ecannot'}); &ui_print_header(undef, $text{'newdb_title'}, "", "newdb_form"); print "
\n"; print "\n"; print "\n"; print "
$text{'newdb_header'}
\n"; # Database name print "\n"; print "\n"; if (&get_postgresql_version() >= 7) { # Owner option print "\n"; print "\n"; } if (&get_postgresql_version() >= 8) { # Encoding option print "\n"; print "\n"; } # Path to database file print "\n"; print "\n"; print "\n"; print "
$text{'newdb_db'}
$text{'newdb_user'} $text{'default'}\n"; print "\n"; print "
$text{'newdb_encoding'}",&ui_opt_textbox("encoding", undef, 20, $text{'default'}), "
$text{'newdb_path'}",&ui_opt_textbox("path", undef, 30, $text{'default'}), "
\n"; &ui_print_footer("", $text{'index_return'});