Translated using Weblate (Estonian)
[phpmyadmin.git] / db_sql.php
blobfc140a8ef07a8305d758010890cd3eb96a028260
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Database SQL executor
6 * @package PhpMyAdmin
7 */
9 /**
12 require_once 'libraries/common.inc.php';
13 require_once 'libraries/config/page_settings.class.php';
15 PMA_PageSettings::showGroup('Sql_queries');
17 /**
18 * Runs common work
20 $response = PMA_Response::getInstance();
21 $header = $response->getHeader();
22 $scripts = $header->getScripts();
23 $scripts->addFile('functions.js');
24 $scripts->addFile('makegrid.js');
25 $scripts->addFile('jquery/jquery.uitablefilter.js');
26 $scripts->addFile('sql.js');
28 require 'libraries/db_common.inc.php';
29 require_once 'libraries/sql_query_form.lib.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 PMA_getHtmlForSqlQueryForm(
41 true, false,
42 isset($_REQUEST['delimiter'])
43 ? htmlspecialchars($_REQUEST['delimiter'])
44 : ';'