3 // vim: expandtab sw=4 ts=4 sts=4:
6 * Gets some core libraries
8 require_once('./libraries/common.lib.php');
11 * Handles some variables that may have been sent by the calling script
12 * Note: this can be called also from the db panel to get the privileges of
13 * a db, in which case we want to keep displaying the tabs of
16 if (empty($viewing_mode)) {
21 * Set parameters for links
23 $url_query = PMA_generate_common_url((isset($db) ?
$db : ''));
26 * Defines the urls to return to in case of error in a sql statement
28 $err_url = 'main.php' . $url_query;
31 * Displays the headers
33 require_once('./libraries/header.inc.php');
36 * Checks for superuser privileges
39 $is_superuser = PMA_isSuperuser();
41 // now, select the mysql db
43 PMA_DBI_select_db('mysql', $userlink);
47 $binlogs = PMA_DBI_try_query('SHOW MASTER LOGS', null, PMA_DBI_QUERY_STORE
);
49 if (PMA_DBI_num_rows($binlogs) > 0) {
50 $binary_logs = array();
51 while ($row = PMA_DBI_fetch_array($binlogs)) {
52 $binary_logs[] = $row[0];
56 PMA_DBI_free_result($binlogs);