Translation update done using Pootle.
[phpmyadmin.git] / libraries / server_common.inc.php
blob54390110632a4ca52afa2dae03af2363fe43070d
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 && !PMA_DRIZZLE) {
47 PMA_DBI_select_db('mysql', $userlink);
50 /**
51 * @global array binary log files
53 $binary_logs = PMA_DRIZZLE
54 ? null
55 : PMA_DBI_fetch_result('SHOW MASTER LOGS', 'Log_name', null, null, PMA_DBI_QUERY_STORE);