Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 66 lines (55 sloc) 1.331 kB
7ff8fed Initial revision
Olivier Müller authored
1 <?php
817e790 synced/fixed vim line
Sebastian Mendel authored
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
374abd5 fixed/added page level docblock
Sebastian Mendel authored
3 /**
4 *
e56949f @nijel Use package name PhpMyAdmin
nijel authored
5 * @package PhpMyAdmin
374abd5 fixed/added page level docblock
Sebastian Mendel authored
6 */
7ff8fed Initial revision
Olivier Müller authored
7
374abd5 fixed/added page level docblock
Sebastian Mendel authored
8 /**
9 *
10 */
b2fd866 Leading ./ paths for includes can be omitted, part 2
Jo Michael authored
11 require_once 'libraries/common.inc.php';
53fd798 added buttons to run multiple "DROP/DELETE/ALTER" statements
Loïc Chapeaux authored
12
c73b0a9 pursuit the "stay on the sub-pages as long as needed" work
Loïc Chapeaux authored
13 /**
14 * Runs common work
15 */
a054562 @roccivic PMA_Footer and PMA_Header no longer need to be singletons
roccivic authored
16 $response = PMA_Response::getInstance();
17 $header = $response->getHeader();
18 $scripts = $header->getScripts();
4a74037 @roccivic Dropped header.inc.php in favor of the PMA_Header class
roccivic authored
19 $scripts->addFile('functions.js');
20 $scripts->addFile('makegrid.js');
21 $scripts->addFile('sql.js');
8744f8c + rfe #3517354 [interface] Allow disabling CodeMirror with $cfg['Code…
Jo Michael authored
22
b2fd866 Leading ./ paths for includes can be omitted, part 2
Jo Michael authored
23 require 'libraries/db_common.inc.php';
24 require_once 'libraries/sql_query_form.lib.php';
6b00b75 Splitted the large "database details" page in parts
Loïc Chapeaux authored
25
aeea642 @lem9 bug #1835904 [GUI] Back link after a SQL error forgets the query
lem9 authored
26 // After a syntax error, we return to this script
27 // with the typed query in the textarea.
28 $goto = 'db_sql.php';
29 $back = 'db_sql.php';
30
6b00b75 Splitted the large "database details" page in parts
Loïc Chapeaux authored
31 /**
3b21a15 @lem9 Globalize this $_GET parameter
lem9 authored
32 * Sets globals from $_GET
33 */
34
35 $get_params = array(
36 'db_query_force'
37 );
38
39 foreach ($get_params as $one_get_param) {
40 if (isset($_GET[$one_get_param])) {
41 $GLOBALS[$one_get_param] = $_GET[$one_get_param];
42 }
43 }
44
45 /**
6b00b75 Splitted the large "database details" page in parts
Loïc Chapeaux authored
46 * Gets informations about the database and, if it is empty, move to the
cac4247 @nijel Rename db_* files to drop useless _details part.
nijel authored
47 * "db_structure.php" script where table can be created
6b00b75 Splitted the large "database details" page in parts
Loïc Chapeaux authored
48 */
b2fd866 Leading ./ paths for includes can be omitted, part 2
Jo Michael authored
49 require 'libraries/db_info.inc.php';
cfeb306 coding standard: no spaces inside braces
Sebastian Mendel authored
50 if ($num_tables == 0 && empty($db_query_force)) {
b874154 moved all code for queryboxes into libraries/sql_query_form.lib.php, …
Sebastian Mendel authored
51 $sub_part = '';
3cf4830 @nijel Replace TRUE/FALSE with true/false.
nijel authored
52 $is_info = true;
b2fd866 Leading ./ paths for includes can be omitted, part 2
Jo Michael authored
53 include 'db_structure.php';
6b00b75 Splitted the large "database details" page in parts
Loïc Chapeaux authored
54 exit();
8645b52 Rewritten to be XHTML1.0 compliant and to fit PEAR coding standards
Loïc Chapeaux authored
55 }
42f4891 tried to fix bug #494564 - No Sql Query!
Loïc Chapeaux authored
56
b874154 moved all code for queryboxes into libraries/sql_query_form.lib.php, …
Sebastian Mendel authored
57 /**
58 * Query box, bookmark, insert data from textfile
59 */
8e62b92 @madhuracj Coding style improvements
madhuracj authored
60 PMA_sqlQueryForm(
61 true, false,
62 isset($_REQUEST['delimiter']) ? htmlspecialchars($_REQUEST['delimiter']) : ';'
63 );
b106eb6 Japanese kanji encoding conversion feature thanks to Yukihiro Kawada
Loïc Chapeaux authored
64
37d50c1 @derrabus Huge set of optimizations, please test!
derrabus authored
65 ?>
Something went wrong with that request. Please try again.