Merge remote-tracking branch 'origin/master'
[phpmyadmin.git] / db_sql.php
blobaeb553a512983d79994fe388929cd437a9bf7f96
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Database SQL executor
6 * @package PhpMyAdmin
7 */
8 use PMA\libraries\config\PageSettings;
10 /**
13 require_once 'libraries/common.inc.php';
14 require_once 'libraries/config/user_preferences.forms.php';
15 require_once 'libraries/config/page_settings.forms.php';
17 PageSettings::showGroup('Sql_queries');
19 /**
20 * Runs common work
22 $response = PMA\libraries\Response::getInstance();
23 $header = $response->getHeader();
24 $scripts = $header->getScripts();
25 $scripts->addFile('functions.js');
26 $scripts->addFile('makegrid.js');
27 $scripts->addFile('jquery/jquery.uitablefilter.js');
28 $scripts->addFile('sql.js');
30 require 'libraries/db_common.inc.php';
31 require_once 'libraries/sql_query_form.lib.php';
33 // After a syntax error, we return to this script
34 // with the typed query in the textarea.
35 $goto = 'db_sql.php';
36 $back = 'db_sql.php';
38 /**
39 * Query box, bookmark, insert data from textfile
41 $response->addHTML(
42 PMA_getHtmlForSqlQueryForm(
43 true, false,
44 isset($_REQUEST['delimiter'])
45 ? htmlspecialchars($_REQUEST['delimiter'])
46 : ';'