2 /* vim: set expandtab sw=4 ts=4 sts=4: */
11 require_once './libraries/common.inc.php';
12 require_once './libraries/server_common.inc.php';
14 PMA_checkParameters(array('is_superuser', 'url_query'), TRUE, FALSE);
17 * Counts amount of navigation tabs
19 $server_links_count_tabs = 0;
23 * Put something in $sub_part
25 if (!isset($sub_part)) {
35 $tabs['databases']['icon'] = 's_db.png';
36 $tabs['databases']['link'] = 'server_databases.php';
37 $tabs['databases']['text'] = $strDatabases;
39 $tabs['sql']['icon'] = 'b_sql.png';
40 $tabs['sql']['link'] = 'server_sql.php';
41 $tabs['sql']['text'] = $strSQL;
43 $tabs['status']['icon'] = 's_status.png';
44 $tabs['status']['link'] = 'server_status.php';
45 $tabs['status']['text'] = $strStatus;
47 $tabs['vars']['icon'] = 's_vars.png';
48 $tabs['vars']['link'] = 'server_variables.php';
49 $tabs['vars']['text'] = $strServerTabVariables;
51 $tabs['charset']['icon'] = 's_asci.png';
52 $tabs['charset']['link'] = 'server_collations.php';
53 $tabs['charset']['text'] = $strCharsets;
55 $tabs['engine']['icon'] = 'b_engine.png';
56 $tabs['engine']['link'] = 'server_engines.php';
57 $tabs['engine']['text'] = $strEngines;
60 $tabs['rights']['icon'] = 's_rights.png';
61 $tabs['rights']['link'] = 'server_privileges.php';
62 $tabs['rights']['text'] = $strPrivileges;
65 if (! empty($binary_logs)) {
66 $tabs['binlog']['icon'] = 's_tbl.png';
67 $tabs['binlog']['link'] = 'server_binlog.php';
68 $tabs['binlog']['text'] = $strBinaryLog;
70 $tabs['process']['icon'] = 's_process.png';
71 $tabs['process']['link'] = 'server_processlist.php';
72 $tabs['process']['text'] = $strProcesses;
74 $tabs['export']['icon'] = 'b_export.png';
75 $tabs['export']['link'] = 'server_export.php';
76 $tabs['export']['text'] = $strExport;
78 $tabs['import']['icon'] = 'b_import.png';
79 $tabs['import']['link'] = 'server_import.php';
80 $tabs['import']['text'] = $strImport;
82 echo PMA_getTabs($tabs);
89 if (!empty($message)) {
90 PMA_showMessage($message);