Changelog entry for patch #3313326
[phpmyadmin/madhuracj.git] / db_sql.php
blob2020dea7d5de4eae1eb242e213d36d00c04279ce
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
5 * @package phpMyAdmin
6 */
8 /**
11 require_once './libraries/common.inc.php';
13 /**
14 * Runs common work
16 $GLOBALS['js_include'][] = 'functions.js';
17 $GLOBALS['js_include'][] = 'sql.js';
19 require './libraries/db_common.inc.php';
20 require_once './libraries/sql_query_form.lib.php';
22 // After a syntax error, we return to this script
23 // with the typed query in the textarea.
24 $goto = 'db_sql.php';
25 $back = 'db_sql.php';
27 /**
28 * Gets informations about the database and, if it is empty, move to the
29 * "db_structure.php" script where table can be created
31 require './libraries/db_info.inc.php';
32 if ($num_tables == 0 && empty($db_query_force)) {
33 $sub_part = '';
34 $is_info = TRUE;
35 require './db_structure.php';
36 exit();
39 /**
40 * Query box, bookmark, insert data from textfile
42 PMA_sqlQueryForm(true, false, isset($_REQUEST['delimiter']) ? htmlspecialchars($_REQUEST['delimiter']) : ';');
44 /**
45 * Displays the footer
47 require './libraries/footer.inc.php';