2 /* vim: set expandtab sw=4 ts=4 sts=4: */
6 if (! defined('PHPMYADMIN')) {
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($db);
26 * Defines the urls to return to in case of error in a sql statement
28 $err_url = 'index.php' . $url_query;
31 * @global boolean Checks for superuser privileges
33 $is_superuser = PMA_isSuperuser();
35 // now, select the mysql db
36 if ($is_superuser && ! PMA_DRIZZLE
) {
37 PMA_DBI_select_db('mysql', $userlink);
41 * @global array binary log files
43 $binary_logs = PMA_DRIZZLE
45 : PMA_DBI_fetch_result(
53 PMA_Util
::checkParameters(
54 array('is_superuser', 'url_query'), false