Added MySQLi library; Removed calls to old mysql_wrappers library.
This commit is contained in:
@@ -35,10 +35,15 @@ require_once('./header.inc.php');
|
||||
// priv CREATE TEMPORARY TABLES or LOCK TABLES can do a 'USE mysql'
|
||||
// (even if they cannot see the tables)
|
||||
|
||||
$is_superuser = @PMA_mysql_query('SELECT COUNT(*) FROM mysql.user', $userlink);
|
||||
$is_superuser = PMA_DBI_try_query('SELECT COUNT(*) FROM mysql.user');
|
||||
|
||||
// now, select the mysql db
|
||||
if ($is_superuser) {
|
||||
@PMA_mysql_query('USE mysql', $userlink);
|
||||
PMA_DBI_free_result($is_superuser);
|
||||
PMA_DBI_select_db('mysql', $userlink);
|
||||
$is_superuser = TRUE;
|
||||
} else {
|
||||
$is_superuser = FALSE;
|
||||
}
|
||||
|
||||
?>
|
||||
|
Reference in New Issue
Block a user