2 /* vim: set expandtab sw=4 ts=4 sts=4: */
11 require_once 'libraries/common.inc.php';
16 $response = PMA_Response
::getInstance();
17 $header = $response->getHeader();
18 $scripts = $header->getScripts();
19 $scripts->addFile('functions.js');
20 $scripts->addFile('makegrid.js');
21 $scripts->addFile('sql.js');
23 require 'libraries/db_common.inc.php';
24 require_once 'libraries/sql_query_form.lib.php';
26 // After a syntax error, we return to this script
27 // with the typed query in the textarea.
32 * Sets globals from $_GET
39 foreach ($get_params as $one_get_param) {
40 if (isset($_GET[$one_get_param])) {
41 $GLOBALS[$one_get_param] = $_GET[$one_get_param];
46 * Gets informations about the database and, if it is empty, move to the
47 * "db_structure.php" script where table can be created
49 require 'libraries/db_info.inc.php';
50 if ($num_tables == 0 && empty($db_query_force)) {
53 include 'db_structure.php';
58 * Query box, bookmark, insert data from textfile
62 isset($_REQUEST['delimiter']) ?
htmlspecialchars($_REQUEST['delimiter']) : ';'