2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Database SQL executor
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/db_common.inc.php';
33 $sqlQueryForm = new SqlQueryForm();
35 // After a syntax error, we return to this script
36 // with the typed query in the textarea.
41 * Query box, bookmark, insert data from textfile
44 $sqlQueryForm->getHtml(
46 isset($_REQUEST['delimiter'])
47 ?
htmlspecialchars($_REQUEST['delimiter'])