Translated using Weblate (Hebrew)
[phpmyadmin.git] / db_sql.php
blob9dfd3e739760629b1cec63a3e3625cc29d0d19a2
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($_REQUEST['delimiter'])
43 ? htmlspecialchars($_REQUEST['delimiter'])
44 : ';'