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
14 * Gets some core libraries
16 require_once './libraries/common.inc.php';
19 * Handles some variables that may have been sent by the calling script
20 * Note: this can be called also from the db panel to get the privileges of
21 * a db, in which case we want to keep displaying the tabs of
24 if (empty($viewing_mode)) {
29 * Set parameters for links
31 $url_query = PMA_generate_common_url($db);
34 * Defines the urls to return to in case of error in a sql statement
36 $err_url = 'main.php' . $url_query;
39 * Displays the headers
41 require_once './libraries/header.inc.php';
44 * @global boolean Checks for superuser privileges
46 $is_superuser = PMA_isSuperuser();
48 // now, select the mysql db
50 PMA_DBI_select_db('mysql', $userlink);
54 * @global array binary log files
56 $binary_logs = PMA_DBI_fetch_result('SHOW MASTER LOGS', 'Log_name', null, null,