Translated using Weblate (Hindi)
[phpmyadmin.git] / libraries / tbl_common.inc.php
blob650b23da27d2f3df4cf44b6160500373d4a11500
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 use PhpMyAdmin\Url;
10 if (! defined('PHPMYADMIN')) {
11 exit;
14 // Check parameters
15 PhpMyAdmin\Util::checkParameters(array('db', 'table'));
17 $db_is_system_schema = $GLOBALS['dbi']->isSystemSchema($db);
19 /**
20 * Set parameters for links
21 * @deprecated
23 $url_query = Url::getCommon(array('db' => $db, 'table' => $table));
25 /**
26 * Set parameters for links
28 $url_params = array();
29 $url_params['db'] = $db;
30 $url_params['table'] = $table;
32 /**
33 * Defines the urls to return to in case of error in a sql statement
35 $err_url_0 = PhpMyAdmin\Util::getScriptNameForOption(
36 $GLOBALS['cfg']['DefaultTabDatabase'], 'database'
38 . Url::getCommon(array('db' => $db));
40 $err_url = PhpMyAdmin\Util::getScriptNameForOption(
41 $GLOBALS['cfg']['DefaultTabTable'], 'table'
43 . Url::getCommon($url_params);
46 /**
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';