Merge branch 'origin/master' into Weblate.
[phpmyadmin.git] / server_sql.php
blob4b66ad3e1c27d6ed48388f7e4834e14451683581
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Server SQL executor
6 * @package PhpMyAdmin
7 */
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);
18 /**
21 require_once ROOT_PATH . 'libraries/common.inc.php';
23 PageSettings::showGroup('Sql');
25 /**
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();
39 /**
40 * Query box, bookmark, insert data from textfile
42 $response->addHTML($sqlQueryForm->getHtml());