Translation update done using Pootle.
[phpmyadmin/ammaryasirr.git] / db_sql.php
blob38074e97698ec5d4911ad81bd8866d1aa1746976
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
5 * @package phpMyAdmin
6 */
8 /**
11 require_once './libraries/common.inc.php';
13 /**
14 * Runs common work
16 $GLOBALS['js_include'][] = 'functions.js';
17 $GLOBALS['js_include'][] = 'makegrid.js';
18 $GLOBALS['js_include'][] = 'sql.js';
19 $GLOBALS['js_include'][] = 'codemirror/lib/codemirror.js';
20 $GLOBALS['js_include'][] = 'codemirror/mode/mysql/mysql.js';
22 require './libraries/db_common.inc.php';
23 require_once './libraries/sql_query_form.lib.php';
25 // After a syntax error, we return to this script
26 // with the typed query in the textarea.
27 $goto = 'db_sql.php';
28 $back = 'db_sql.php';
30 /**
31 * Gets informations about the database and, if it is empty, move to the
32 * "db_structure.php" script where table can be created
34 require './libraries/db_info.inc.php';
35 if ($num_tables == 0 && empty($db_query_force)) {
36 $sub_part = '';
37 $is_info = true;
38 require './db_structure.php';
39 exit();
42 /**
43 * Query box, bookmark, insert data from textfile
45 PMA_sqlQueryForm(true, false, isset($_REQUEST['delimiter']) ? htmlspecialchars($_REQUEST['delimiter']) : ';');
47 /**
48 * Displays the footer
50 require './libraries/footer.inc.php';