Translated using Weblate (Portuguese)
[phpmyadmin.git] / db_sql.php
blob67bbbb59d6c34f2b35e34f68353d591e28511773
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';
14 /**
15 * Runs common work
17 $response = PMA_Response::getInstance();
18 $header = $response->getHeader();
19 $scripts = $header->getScripts();
20 $scripts->addFile('functions.js');
21 $scripts->addFile('makegrid.js');
22 $scripts->addFile('sql.js');
24 require 'libraries/db_common.inc.php';
25 require_once 'libraries/sql_query_form.lib.php';
27 // After a syntax error, we return to this script
28 // with the typed query in the textarea.
29 $goto = 'db_sql.php';
30 $back = 'db_sql.php';
32 /**
33 * Query box, bookmark, insert data from textfile
35 $response->addHTML(
36 PMA_getHtmlForSqlQueryForm(
37 true, false,
38 isset($_REQUEST['delimiter'])
39 ? htmlspecialchars($_REQUEST['delimiter'])
40 : ';'