2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Common includes for the table level views
10 if (! defined('PHPMYADMIN')) {
15 PMA\libraries\Util
::checkParameters(array('db', 'table'));
17 $db_is_system_schema = $GLOBALS['dbi']->isSystemSchema($db);
20 * Set parameters for links
23 $url_query = URL
::getCommon(array('db' => $db, 'table' => $table));
26 * Set parameters for links
28 $url_params = array();
29 $url_params['db'] = $db;
30 $url_params['table'] = $table;
33 * Defines the urls to return to in case of error in a sql statement
35 $err_url_0 = PMA\libraries\Util
::getScriptNameForOption(
36 $GLOBALS['cfg']['DefaultTabDatabase'], 'database'
38 . URL
::getCommon(array('db' => $db));
40 $err_url = PMA\libraries\Util
::getScriptNameForOption(
41 $GLOBALS['cfg']['DefaultTabTable'], 'table'
43 . URL
::getCommon($url_params);
47 * Ensures the database and the table exist (else move to the "parent" script)
48 * Skip test if we are exporting as we can't tell whether a table name is an alias (which would fail the test).
50 if (basename($_SERVER['PHP_SELF']) != 'tbl_export.php') {
51 require_once './libraries/db_table_exists.inc.php';