2 /* vim: set expandtab sw=4 ts=4 sts=4: */
8 declare(strict_types
=1);
10 use PhpMyAdmin\Config\PageSettings
;
11 use PhpMyAdmin\Response
;
12 use PhpMyAdmin\SqlQueryForm
;
17 require_once 'libraries/common.inc.php';
19 PageSettings
::showGroup('Sql');
24 $response = Response
::getInstance();
25 $header = $response->getHeader();
26 $scripts = $header->getScripts();
27 $scripts->addFile('makegrid.js');
28 $scripts->addFile('vendor/jquery/jquery.uitablefilter.js');
29 $scripts->addFile('sql.js');
31 require 'libraries/tbl_common.inc.php';
32 $url_query .= '&goto=tbl_sql.php&back=tbl_sql.php';
34 $err_url = 'tbl_sql.php' . $err_url;
35 // After a syntax error, we return to this script
36 // with the typed query in the textarea.
37 $goto = 'tbl_sql.php';
38 $back = 'tbl_sql.php';
40 $sqlQueryForm = new SqlQueryForm();
43 * Query box, bookmark, insert data from textfile
46 $sqlQueryForm->getHtml(
49 isset($_REQUEST['delimiter'])
50 ?
htmlspecialchars($_REQUEST['delimiter'])