Upgraded phpmyadmin to 4.0.4 (All Languages) - No modifications yet
[openemr.git] / phpmyadmin / libraries / tbl_common.inc.php
blob9974d34b58e7af7f4e424287e9a7aed89ea9daca
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_information_schema = PMA_is_system_schema($db);
22 /**
23 * Set parameters for links
24 * @deprecated
26 $url_query = PMA_generate_common_url($db, $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_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';
48 if (PMA_Tracker::isActive()
49 && PMA_Tracker::isTracked($GLOBALS["db"], $GLOBALS["table"])
50 && ! isset($_REQUEST['submit_deactivate_now'])
51 ) {
52 $temp_msg = '<a href="tbl_tracking.php?' . $url_query . '">';
53 $temp_msg .= sprintf(
54 __('Tracking of %s is activated.'),
55 htmlspecialchars($GLOBALS["db"] . '.' . $GLOBALS["table"])
57 $temp_msg .= '</a>';
59 $msg = PMA_Message::notice($temp_msg);
60 $msg->display();