UPDATE 4.4.0.0
[phpmyadmin.git] / libraries / tbl_common.inc.php
bloba2e7b260b2cb0ca6b5b6a4a26e87276f4bcba536
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Common includes for the table level views
6 * @package PhpMyAdmin
7 */
8 if (! defined('PHPMYADMIN')) {
9 exit;
12 /**
13 * Gets some core libraries
15 require_once './libraries/bookmark.lib.php';
17 // Check parameters
18 PMA_Util::checkParameters(array('db', 'table'));
20 $db_is_system_schema = $GLOBALS['dbi']->isSystemSchema($db);
22 /**
23 * Set parameters for links
24 * @deprecated
26 $url_query = PMA_URL_getCommon(array('db' => $db, 'table' => $table));
28 /**
29 * Set parameters for links
31 $url_params = array();
32 $url_params['db'] = $db;
33 $url_params['table'] = $table;
35 /**
36 * Defines the urls to return to in case of error in a sql statement
38 $err_url_0 = $cfg['DefaultTabDatabase']
39 . PMA_URL_getCommon(array('db' => $db));
40 $err_url = $cfg['DefaultTabTable'] . PMA_URL_getCommon($url_params);
43 /**
44 * Ensures the database and the table exist (else move to the "parent" script)
46 require_once './libraries/db_table_exists.lib.php';