2 /* vim: set expandtab sw=4 ts=4 sts=4: */
6 if (! defined('PHPMYADMIN')) {
11 * Gets some core libraries
13 require_once './libraries/common.inc.php';
16 * Handles some variables that may have been sent by the calling script
17 * Note: this can be called also from the db panel to get the privileges of
18 * a db, in which case we want to keep displaying the tabs of
21 if (empty($viewing_mode)) {
26 * Set parameters for links
28 $url_query = PMA_generate_common_url($db);
31 * Defines the urls to return to in case of error in a sql statement
33 $err_url = 'main.php' . $url_query;
36 * Displays the headers
38 require_once './libraries/header.inc.php';
41 * @global boolean Checks for superuser privileges
43 $is_superuser = PMA_isSuperuser();
45 // now, select the mysql db
46 if ($is_superuser && !PMA_DRIZZLE
) {
47 PMA_DBI_select_db('mysql', $userlink);
51 * @global array binary log files
53 $binary_logs = PMA_DRIZZLE
55 : PMA_DBI_fetch_result('SHOW MASTER LOGS', 'Log_name', null, null, PMA_DBI_QUERY_STORE
);