Apparently the mysqldump was not acceptable for import.
[openemr.git] / interface / main / myadmin / server_common.inc.php
blob6a8cdcd0004ef1af765b13970b6b7ed8a7c96895
1 <?php
2 /* $Id$ */
3 // vim: expandtab sw=4 ts=4 sts=4:
5 /**
6 * Gets some core libraries
7 */
8 require_once('./libraries/grab_globals.lib.php');
9 require_once('./libraries/common.lib.php');
11 /**
12 * Handles some variables that may have been sent by the calling script
14 unset($db, $table);
16 /**
17 * Set parameters for links
19 $url_query = PMA_generate_common_url();
21 /**
22 * Defines the urls to return to in case of error in a sql statement
24 $err_url = 'main.php' . $url_query;
26 /**
27 * Displays the headers
29 require_once('./header.inc.php');
31 /**
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
41 if ($is_superuser) {
42 @PMA_mysql_query('USE mysql', $userlink);