Translated using Weblate (Arabic)
[phpmyadmin.git] / db_sql.php
blobaa4d0b37c324d960e93113d874b4ebe9d8f09c93
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Database SQL executor
6 * @package PhpMyAdmin
7 */
8 use PhpMyAdmin\Config\PageSettings;
9 use PhpMyAdmin\Response;
10 use PhpMyAdmin\SqlQueryForm;
12 /**
15 require_once 'libraries/common.inc.php';
17 PageSettings::showGroup('Sql');
19 /**
20 * Runs common work
22 $response = Response::getInstance();
23 $header = $response->getHeader();
24 $scripts = $header->getScripts();
25 $scripts->addFile('makegrid.js');
26 $scripts->addFile('vendor/jquery/jquery.uitablefilter.js');
27 $scripts->addFile('sql.js');
29 require 'libraries/db_common.inc.php';
31 // After a syntax error, we return to this script
32 // with the typed query in the textarea.
33 $goto = 'db_sql.php';
34 $back = 'db_sql.php';
36 /**
37 * Query box, bookmark, insert data from textfile
39 $response->addHTML(
40 SqlQueryForm::getHtml(
41 true, false,
42 isset($_POST['delimiter'])
43 ? htmlspecialchars($_POST['delimiter'])
44 : ';'