typos
[phpmyadmin/madhuracj.git] / libraries / server_common.inc.php
blob89e468bf61ac92381aed60e21568cbacfd714ee7
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
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
9 * @uses $userlink
10 * @version $Id$
11 * @package phpMyAdmin
13 if (! defined('PHPMYADMIN')) {
14 exit;
17 /**
18 * Gets some core libraries
20 require_once './libraries/common.inc.php';
22 /**
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
26 * the Database panel
28 if (empty($viewing_mode)) {
29 $db = $table = '';
32 /**
33 * Set parameters for links
35 $url_query = PMA_generate_common_url($db);
37 /**
38 * Defines the urls to return to in case of error in a sql statement
40 $err_url = 'main.php' . $url_query;
42 /**
43 * Displays the headers
45 require_once './libraries/header.inc.php';
47 /**
48 * @global boolean Checks for superuser privileges
50 $is_superuser = PMA_isSuperuser();
52 // now, select the mysql db
53 if ($is_superuser) {
54 PMA_DBI_select_db('mysql', $userlink);
57 /**
58 * @global array binary log files
60 $binary_logs = PMA_DBI_fetch_result('SHOW MASTER LOGS', 'Log_name', null, null,
61 PMA_DBI_QUERY_STORE);