Translated using Weblate (Slovenian)
[phpmyadmin.git] / tbl_sql.php
blob764cf72dd6d67c5fe090c3358d900a34373a9e58
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Table SQL executor
6 * @package PhpMyAdmin
7 */
8 use PMA\libraries\config\PageSettings;
10 /**
13 require_once 'libraries/common.inc.php';
14 require_once 'libraries/config/user_preferences.forms.php';
15 require_once 'libraries/config/page_settings.forms.php';
17 PageSettings::showGroup('Sql_queries');
19 /**
20 * Runs common work
22 $response = PMA\libraries\Response::getInstance();
23 $header = $response->getHeader();
24 $scripts = $header->getScripts();
25 $scripts->addFile('makegrid.js');
26 $scripts->addFile('jquery/jquery.uitablefilter.js');
27 $scripts->addFile('sql.js');
29 require 'libraries/tbl_common.inc.php';
30 $url_query .= '&amp;goto=tbl_sql.php&amp;back=tbl_sql.php';
32 require_once 'libraries/sql_query_form.lib.php';
34 $err_url = 'tbl_sql.php' . $err_url;
35 // After a syntax error, we return to this script
36 // with the typed query in the textarea.
37 $goto = 'tbl_sql.php';
38 $back = 'tbl_sql.php';
40 /**
41 * Get table information
43 require_once 'libraries/tbl_info.inc.php';
45 /**
46 * Query box, bookmark, insert data from textfile
48 $response->addHTML(
49 PMA_getHtmlForSqlQueryForm(
50 true, false,
51 isset($_REQUEST['delimiter'])
52 ? htmlspecialchars($_REQUEST['delimiter'])
53 : ';'