Translated using Weblate (Indonesian)
[phpmyadmin.git] / tbl_sql.php
blob40e34f524c510dc1ec207998ecb0db244d0f49f1
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Table SQL executor
6 * @package PhpMyAdmin
7 */
8 use PhpMyAdmin\Config\PageSettings;
9 use PhpMyAdmin\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('vendor/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 * Query box, bookmark, insert data from textfile
44 $response->addHTML(
45 PMA_getHtmlForSqlQueryForm(
46 true, false,
47 isset($_REQUEST['delimiter'])
48 ? htmlspecialchars($_REQUEST['delimiter'])
49 : ';'