2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Shared code for server pages
8 if (! defined('PHPMYADMIN')) {
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
18 if (empty($viewing_mode)) {
23 * Set parameters for links
25 $url_query = PMA_URL_getCommon($db);
28 * Defines the urls to return to in case of error in a sql statement
30 $err_url = 'index.php' . $url_query;
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
47 * shared functions for server page
49 require_once './libraries/server_common.lib.php';