Merge pull request #573 from ayushchd/codestyle_fixes
[phpmyadmin.git] / db_sql.php
blobc4418b4e7fe7bcd1080fe7767d453ffc36f60a7c
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 PMA_sqlQueryForm(
36 true, false,
37 isset($_REQUEST['delimiter']) ? htmlspecialchars($_REQUEST['delimiter']) : ';'