2 /* vim: set expandtab sw=4 ts=4 sts=4: */
7 if (! defined('PHPMYADMIN')) {
14 require_once './libraries/common.inc.php';
15 require_once './libraries/server_common.inc.php';
17 PMA_checkParameters(array('is_superuser', 'url_query'), TRUE, FALSE);
20 * Counts amount of navigation tabs
22 $server_links_count_tabs = 0;
26 * Put something in $sub_part
28 if (!isset($sub_part)) {
38 $tabs['databases']['icon'] = 's_db.png';
39 $tabs['databases']['link'] = 'server_databases.php';
40 $tabs['databases']['text'] = __('Databases');
42 $tabs['sql']['icon'] = 'b_sql.png';
43 $tabs['sql']['link'] = 'server_sql.php';
44 $tabs['sql']['text'] = __('SQL');
46 $tabs['status']['icon'] = 's_status.png';
47 $tabs['status']['link'] = 'server_status.php';
48 $tabs['status']['text'] = __('Status');
50 if (! empty($binary_logs)) {
51 $tabs['binlog']['icon'] = 's_tbl.png';
52 $tabs['binlog']['link'] = 'server_binlog.php';
53 $tabs['binlog']['text'] = __('Binary log');
55 $tabs['process']['icon'] = 's_process.png';
56 $tabs['process']['link'] = 'server_processlist.php';
57 $tabs['process']['text'] = __('Processes');
60 $tabs['rights']['icon'] = 's_rights.png';
61 $tabs['rights']['link'] = 'server_privileges.php';
62 $tabs['rights']['text'] = __('Privileges');
65 $tabs['export']['icon'] = 'b_export.png';
66 $tabs['export']['link'] = 'server_export.php';
67 $tabs['export']['text'] = __('Export');
69 $tabs['import']['icon'] = 'b_import.png';
70 $tabs['import']['link'] = 'server_import.php';
71 $tabs['import']['text'] = __('Import');
73 $tabs['vars']['icon'] = 's_vars.png';
74 $tabs['vars']['link'] = 'server_variables.php';
75 $tabs['vars']['text'] = __('Variables');
77 $tabs['charset']['icon'] = 's_asci.png';
78 $tabs['charset']['link'] = 'server_collations.php';
79 $tabs['charset']['text'] = __('Charsets');
81 $tabs['engine']['icon'] = 'b_engine.png';
82 $tabs['engine']['link'] = 'server_engines.php';
83 $tabs['engine']['text'] = __('Engines');
86 $tabs['replication']['icon'] = 's_replication.png';
87 $tabs['replication']['link'] = 'server_replication.php';
88 $tabs['replication']['text'] = __('Replication');
91 $tabs['synchronize']['icon'] = 's_sync.png';
92 $tabs['synchronize']['link'] = 'server_synchronize.php';
93 $tabs['synchronize']['text'] = __('Synchronize');
95 $tabs['settings']['icon'] = 'b_tblops.png';
96 $tabs['settings']['link'] = 'prefs_manage.php';
97 $tabs['settings']['text'] = __('Settings');
98 $tabs['settings']['active'] = in_array(basename($GLOBALS['PMA_PHP_SELF']),
99 array('prefs_forms.php', 'prefs_manage.php'));
101 echo PMA_generate_html_tabs($tabs, array());
108 if (!empty($message)) {
109 PMA_showMessage($message);