00001 <?php
00002
00003
00004
00005
00006
00007 require_once('./libraries/common.lib.php');
00008 PMA_checkParameters(array('is_superuser', 'url_query'));
00009
00013 $server_links_count_tabs = 0;
00014
00015
00019 if (!isset($sub_part)) {
00020 $sub_part = '';
00021 }
00022
00023
00027 if ($is_superuser) {
00028 $cfg['ShowMysqlInfo'] = TRUE;
00029 $cfg['ShowMysqlVars'] = TRUE;
00030 }
00031
00032
00036 $tabs = array();
00037
00038 $tabs['databases']['icon'] = 's_db.png';
00039 $tabs['databases']['link'] = 'server_databases.php';
00040 $tabs['databases']['text'] = $strDatabases;
00041
00042 if ($cfg['ShowMysqlInfo']) {
00043 $tabs['status']['icon'] = 's_status.png';
00044 $tabs['status']['link'] = 'server_status.php';
00045 $tabs['status']['text'] = $strStatus;
00046 }
00047 if ($cfg['ShowMysqlVars']) {
00048 $tabs['vars']['icon'] = 's_vars.png';
00049 $tabs['vars']['link'] = 'server_variables.php';
00050 $tabs['vars']['text'] = $strServerTabVariables;
00051 }
00052 if (PMA_MYSQL_INT_VERSION >= 40100) {
00053 $tabs['charset']['icon'] = 's_asci.png';
00054 $tabs['charset']['link'] = 'server_collations.php';
00055 $tabs['charset']['text'] = $strCharsets;
00056 }
00057
00058 $tabs['engine']['icon'] = 'b_engine.png';
00059 $tabs['engine']['link'] = 'server_engines.php';
00060 $tabs['engine']['text'] = $strEngines;
00061
00062 if ($is_superuser) {
00063 $tabs['rights']['icon'] = 's_rights.png';
00064 $tabs['rights']['link'] = 'server_privileges.php';
00065 $tabs['rights']['text'] = $strPrivileges;
00066 }
00067 if ($has_binlogs) {
00068 $tabs['binlog']['icon'] = 's_tbl.png';
00069 $tabs['binlog']['link'] = 'server_binlog.php';
00070 $tabs['binlog']['text'] = $strBinaryLog;
00071 }
00072 $tabs['process']['icon'] = 's_process.png';
00073 $tabs['process']['link'] = 'server_processlist.php';
00074 $tabs['process']['text'] = $strServerTabProcesslist;
00075
00076 $tabs['export']['icon'] = 'b_export.png';
00077 $tabs['export']['link'] = 'server_export.php';
00078 $tabs['export']['text'] = $strExport;
00079
00080 echo PMA_getTabs( $tabs );
00081 unset( $tabs );
00082
00083
00087 if (!empty($message)) {
00088 PMA_showMessage($message);
00089 unset($message);
00090 }
00091
00092 ?>
00093 <br />