1. Check existence of mb_string, mysql and xml extensions before installation.
[openemr.git] / phpmyadmin / libraries / tbl_common.inc.php
blob7903499ebcba4ed911c5353f8fc383d8eecff32a
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 = PMA_Util::getScriptNameForOption(
39 $GLOBALS['cfg']['DefaultTabDatabase'], 'database'
41 . PMA_URL_getCommon(array('db' => $db));
43 $err_url = PMA_Util::getScriptNameForOption(
44 $GLOBALS['cfg']['DefaultTabTable'], 'table'
46 . PMA_URL_getCommon($url_params);
49 /**
50 * Ensures the database and the table exist (else move to the "parent" script)
51 * Skip test if we are exporting as we can't tell whether a table name is an alias (which would fail the test).
53 if (basename($_SERVER['PHP_SELF']) != 'tbl_export.php') {
54 require_once './libraries/db_table_exists.lib.php';