Bug: Live query chart always zero
[phpmyadmin/tyronm.git] / libraries / server_common.inc.php
blob9d1e0111730a5c3cac522ba11afad267d7ba87cc
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * @package phpMyAdmin
5 */
6 if (! defined('PHPMYADMIN')) {
7 exit;
10 /**
11 * Gets some core libraries
13 require_once './libraries/common.inc.php';
15 /**
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
19 * the Database panel
21 if (empty($viewing_mode)) {
22 $db = $table = '';
25 /**
26 * Set parameters for links
28 $url_query = PMA_generate_common_url($db);
30 /**
31 * Defines the urls to return to in case of error in a sql statement
33 $err_url = 'main.php' . $url_query;
35 /**
36 * Displays the headers
38 require_once './libraries/header.inc.php';
40 /**
41 * @global boolean Checks for superuser privileges
43 $is_superuser = PMA_isSuperuser();
45 // now, select the mysql db
46 if ($is_superuser) {
47 PMA_DBI_select_db('mysql', $userlink);
50 /**
51 * @global array binary log files
53 $binary_logs = PMA_DBI_fetch_result('SHOW MASTER LOGS', 'Log_name', null, null,
54 PMA_DBI_QUERY_STORE);