Documentation TYPO3 par Ameos |
00001 <?php 00002 /* $Id: server_common.inc.php,v 2.2 2003/11/26 22:52:24 rabus Exp $ */ 00003 // vim: expandtab sw=4 ts=4 sts=4: 00004 00008 require_once('./libraries/grab_globals.lib.php'); 00009 require_once('./libraries/common.lib.php'); 00010 00014 unset($db, $table); 00015 00019 $url_query = PMA_generate_common_url(); 00020 00024 $err_url = 'main.php' . $url_query; 00025 00029 require_once('./header.inc.php'); 00030 00034 // We were checking privileges with 'USE mysql' but users with the global 00035 // priv CREATE TEMPORARY TABLES or LOCK TABLES can do a 'USE mysql' 00036 // (even if they cannot see the tables) 00037 00038 $is_superuser = @PMA_mysql_query('SELECT COUNT(*) FROM mysql.user', $userlink); 00039 00040 // now, select the mysql db 00041 if ($is_superuser) { 00042 @PMA_mysql_query('USE mysql', $userlink); 00043 } 00044 ?>