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
;
14 if (! defined('ROOT_PATH')) {
15 define('ROOT_PATH', __DIR__
. DIRECTORY_SEPARATOR
);
21 require_once ROOT_PATH
. 'libraries/common.inc.php';
23 PageSettings
::showGroup('Sql');
26 * Does the common work
28 $response = Response
::getInstance();
29 $header = $response->getHeader();
30 $scripts = $header->getScripts();
31 $scripts->addFile('makegrid.js');
32 $scripts->addFile('vendor/jquery/jquery.uitablefilter.js');
33 $scripts->addFile('sql.js');
35 require_once ROOT_PATH
. 'libraries/server_common.inc.php';
37 $sqlQueryForm = new SqlQueryForm();
40 * Query box, bookmark, insert data from textfile
42 $response->addHTML($sqlQueryForm->getHtml());