Translated using Weblate (Polish)
[phpmyadmin.git] / libraries / server_common.inc.php
blob19f3845321b74461108cd3921204b37c757c906b
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Shared code for server pages
6 * @package PhpMyAdmin
7 */
8 if (! defined('PHPMYADMIN')) {
9 exit;
12 /**
13 * Handles some variables that may have been sent by the calling script
14 * Note: this can be called also from the db panel to get the privileges of
15 * a db, in which case we want to keep displaying the tabs of
16 * the Database panel
18 if (empty($viewing_mode)) {
19 $db = $table = '';
22 /**
23 * Set parameters for links
25 $url_query = PMA_URL_getCommon($db);
27 /**
28 * Defines the urls to return to in case of error in a sql statement
30 $err_url = 'index.php' . $url_query;
32 /**
33 * @global boolean Checks for superuser privileges
35 $is_superuser = $GLOBALS['dbi']->isSuperuser();
37 // now, select the mysql db
38 if ($is_superuser && ! PMA_DRIZZLE) {
39 $GLOBALS['dbi']->selectDb('mysql', $userlink);
42 PMA_Util::checkParameters(
43 array('is_superuser', 'url_query'), false
46 /**
47 * shared functions for server page
49 require_once './libraries/server_common.lib.php';