2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * @uses PMA_generate_common_url()
5 * @uses PMA_isSuperuser()
6 * @uses PMA_DBI_select_db()
7 * @uses PMA_DBI_fetch_result()
8 * @uses PMA_DBI_QUERY_STORE
13 if (! defined('PHPMYADMIN')) {
18 * Gets some core libraries
20 require_once './libraries/common.inc.php';
23 * Handles some variables that may have been sent by the calling script
24 * Note: this can be called also from the db panel to get the privileges of
25 * a db, in which case we want to keep displaying the tabs of
28 if (empty($viewing_mode)) {
33 * Set parameters for links
35 $url_query = PMA_generate_common_url($db);
38 * Defines the urls to return to in case of error in a sql statement
40 $err_url = 'main.php' . $url_query;
43 * Displays the headers
45 require_once './libraries/header.inc.php';
48 * @global boolean Checks for superuser privileges
50 $is_superuser = PMA_isSuperuser();
52 // now, select the mysql db
54 PMA_DBI_select_db('mysql', $userlink);
58 * @global array binary log files
60 $binary_logs = PMA_DBI_fetch_result('SHOW MASTER LOGS', 'Log_name', null, null,