Translated using Weblate (French)
[phpmyadmin.git] / db_sql.php
blobfb403d484d4f993d7dd81e7b133f3d7d39c4dddc
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Database 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 /**
17 require_once 'libraries/common.inc.php';
19 PageSettings::showGroup('Sql');
21 /**
22 * Runs common work
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.
37 $goto = 'db_sql.php';
38 $back = 'db_sql.php';
40 /**
41 * Query box, bookmark, insert data from textfile
43 $response->addHTML(
44 $sqlQueryForm->getHtml(
45 true,
46 false,
47 isset($_REQUEST['delimiter'])
48 ? htmlspecialchars($_REQUEST['delimiter'])
49 : ';'