Translated using Weblate (Albanian)
[phpmyadmin.git] / tbl_sql.php
blob304f7c80f643e21e63c41d314892232e8385dad0
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;
9 use PMA\libraries\Response;
11 /**
14 require_once 'libraries/common.inc.php';
15 require_once 'libraries/config/user_preferences.forms.php';
16 require_once 'libraries/config/page_settings.forms.php';
18 PageSettings::showGroup('Sql_queries');
20 /**
21 * Runs common work
23 $response = Response::getInstance();
24 $header = $response->getHeader();
25 $scripts = $header->getScripts();
26 $scripts->addFile('makegrid.js');
27 $scripts->addFile('jquery/jquery.uitablefilter.js');
28 $scripts->addFile('sql.js');
30 require 'libraries/tbl_common.inc.php';
31 $url_query .= '&amp;goto=tbl_sql.php&amp;back=tbl_sql.php';
33 require_once 'libraries/sql_query_form.lib.php';
35 $err_url = 'tbl_sql.php' . $err_url;
36 // After a syntax error, we return to this script
37 // with the typed query in the textarea.
38 $goto = 'tbl_sql.php';
39 $back = 'tbl_sql.php';
41 /**
42 * Get table information
44 require_once 'libraries/tbl_info.inc.php';
46 /**
47 * Query box, bookmark, insert data from textfile
49 $response->addHTML(
50 PMA_getHtmlForSqlQueryForm(
51 true, false,
52 isset($_REQUEST['delimiter'])
53 ? htmlspecialchars($_REQUEST['delimiter'])
54 : ';'