3 // vim: expandtab sw=4 ts=4 sts=4:
6 * Gets some core libraries
8 require_once('./libraries/grab_globals.lib.php');
9 require_once('./libraries/common.lib.php');
12 * Handles some variables that may have been sent by the calling script
17 * Set parameters for links
19 $url_query = PMA_generate_common_url();
22 * Defines the urls to return to in case of error in a sql statement
24 $err_url = 'main.php' . $url_query;
27 * Displays the headers
29 require_once('./header.inc.php');
32 * Checks for superuser privileges
34 // We were checking privileges with 'USE mysql' but users with the global
35 // priv CREATE TEMPORARY TABLES or LOCK TABLES can do a 'USE mysql'
36 // (even if they cannot see the tables)
38 $is_superuser = @PMA_mysql_query
('SELECT COUNT(*) FROM mysql.user', $userlink);
40 // now, select the mysql db
42 @PMA_mysql_query
('USE mysql', $userlink);