bug #2042032 Cannot detect PmaAbsoluteUri correctly on Windows
[phpmyadmin/madhuracj.git] / libraries / tbl_common.php
blob0ef16c22bd6740049fa09a8218aff88e181b6277
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
5 * @version $Id$
6 * @package phpMyAdmin
7 */
8 if (! defined('PHPMYADMIN')) {
9 exit;
12 /**
13 * Gets some core libraries
15 require_once './libraries/common.inc.php';
16 require_once './libraries/bookmark.lib.php';
18 // Check parameters
19 PMA_checkParameters(array('db', 'table'));
21 if ($db === 'information_schema') {
22 $db_is_information_schema = true;
23 } else {
24 $db_is_information_schema = false;
27 /**
28 * Set parameters for links
29 * @deprecated
31 $url_query = PMA_generate_common_url($db, $table);
33 $url_params['db'] = $db;
34 $url_params['table'] = $table;
36 /**
37 * Defines the urls to return to in case of error in a sql statement
39 $err_url_0 = $cfg['DefaultTabDatabase'] . PMA_generate_common_url(array('db' => $db,));
40 $err_url = $cfg['DefaultTabTable'] . PMA_generate_common_url($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';