Add Texy! export defaults.
[phpmyadmin/crack.git] / libraries / server_common.inc.php
blobb1ed96c0ac83daffaf13d13726e4acbcc12e7bf7
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$
13 /**
14 * Gets some core libraries
16 require_once './libraries/common.inc.php';
18 /**
19 * Handles some variables that may have been sent by the calling script
20 * Note: this can be called also from the db panel to get the privileges of
21 * a db, in which case we want to keep displaying the tabs of
22 * the Database panel
24 if (empty($viewing_mode)) {
25 $db = $table = '';
28 /**
29 * Set parameters for links
31 $url_query = PMA_generate_common_url($db);
33 /**
34 * Defines the urls to return to in case of error in a sql statement
36 $err_url = 'main.php' . $url_query;
38 /**
39 * Displays the headers
41 require_once './libraries/header.inc.php';
43 /**
44 * @global boolean Checks for superuser privileges
46 $is_superuser = PMA_isSuperuser();
48 // now, select the mysql db
49 if ($is_superuser) {
50 PMA_DBI_select_db('mysql', $userlink);
53 /**
54 * @global array binary log files
56 $binary_logs = PMA_DBI_fetch_result('SHOW MASTER LOGS', 'Log_name', null, null,
57 PMA_DBI_QUERY_STORE);