#!/usr/local/bin/perl # exec_form.cgi # Display a form for executing SQL in some database require './postgresql-lib.pl'; &ReadParse(); &can_edit_db($in{'db'}) || &error($text{'dbase_ecannot'}); &ui_print_header(undef, $text{'exec_title'}, "", "exec_form"); # Form for executing an SQL command print "
",&text('exec_header', "$in{'db'}"),"
\n"; print "
\n"; # Form for executing commands from a file print "",&text('exec_header2', "$in{'db'}"),"
\n"; print "
\n"; # Form for loading a CSV or tab-separated file print "",&text('exec_header3', "$in{'db'}"),"
",
$text{'exec_header4'},"
\n"; print "
\n"; &ui_print_footer("edit_dbase.cgi?db=$in{'db'}", $text{'dbase_return'}, "", $text{'index_return'});