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');
20 PMA_checkParameters(array('db','table'));
23 * Defines the urls to return to in case of error in a sql statement
25 $err_url_0 = $cfg['DefaultTabDatabase'] . '?' . PMA_generate_common_url($db);
26 $err_url = $cfg['DefaultTabTable'] . '?' . PMA_generate_common_url($db, $table);
30 * Ensures the database and the table exist (else move to the "parent" script)
32 require('./libraries/db_table_exists.lib.php3');
38 if (!isset($message)) {
39 $js_to_run = 'functions.js';
40 include('./header.inc.php3');
42 PMA_showMessage($message);
48 * Set parameters for links
50 $url_query = PMA_generate_common_url($db, $table);