3 // vim: expandtab sw=4 ts=4 sts=4:
7 * Gets some core libraries
9 if (!defined('PMA_GRAB_GLOBALS_INCLUDED')) {
10 include('./libraries/grab_globals.lib.php3');
12 if (!defined('PMA_COMMON_LIB_INCLUDED')) {
13 include('./libraries/common.lib.php3');
15 if (!defined('PMA_BOOKMARK_LIB_INCLUDED')) {
16 include('./libraries/bookmark.lib.php3');
21 * Defines the urls to return to in case of error in a sql statement
23 $err_url_0 = $cfg['DefaultTabDatabase'] . '?' . PMA_generate_common_url($db);
24 $err_url = $cfg['DefaultTabTable'] . '?' . PMA_generate_common_url($db, $table);
28 * Ensures the database and the table exist (else move to the "parent" script)
30 require('./libraries/db_table_exists.lib.php3');
36 if (!isset($message)) {
37 $js_to_run = 'functions.js';
38 include('./header.inc.php3');
40 PMA_showMessage($message);
45 * Set parameters for links
47 $url_query = PMA_generate_common_url($db, $table);