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);
19 // Don't print all these links if in an Ajax request
20 if (!$GLOBALS['is_ajax_request']) {
22 * Counts amount of navigation tabs
24 $server_links_count_tabs = 0;
28 * Put something in $sub_part
30 if (! isset($sub_part)) {
37 * Put the links we assume are used less, towards the end
41 $tabs['databases']['icon'] = 's_db.png';
42 $tabs['databases']['link'] = 'server_databases.php';
43 $tabs['databases']['text'] = __('Databases');
45 $tabs['sql']['icon'] = 'b_sql.png';
46 $tabs['sql']['link'] = 'server_sql.php';
47 $tabs['sql']['text'] = __('SQL');
49 $tabs['status']['icon'] = 's_status.png';
50 $tabs['status']['link'] = 'server_status.php';
51 $tabs['status']['text'] = __('Status');
53 /*$tabs['process']['icon'] = 's_process.png';
54 $tabs['process']['link'] = 'server_processlist.php';
55 $tabs['process']['text'] = __('Processes');*/
58 $tabs['rights']['icon'] = 's_rights.png';
59 $tabs['rights']['link'] = 'server_privileges.php';
60 $tabs['rights']['text'] = __('Privileges');
63 $tabs['export']['icon'] = 'b_export.png';
64 $tabs['export']['link'] = 'server_export.php';
65 $tabs['export']['text'] = __('Export');
67 $tabs['import']['icon'] = 'b_import.png';
68 $tabs['import']['link'] = 'server_import.php';
69 $tabs['import']['text'] = __('Import');
71 $tabs['settings']['icon'] = 'b_tblops.png';
72 $tabs['settings']['link'] = 'prefs_manage.php';
73 $tabs['settings']['text'] = __('Settings');
74 $tabs['settings']['active'] = in_array(basename($GLOBALS['PMA_PHP_SELF']),
75 array('prefs_forms.php', 'prefs_manage.php'));
77 $tabs['synchronize']['icon'] = 's_sync.png';
78 $tabs['synchronize']['link'] = 'server_synchronize.php';
79 $tabs['synchronize']['text'] = __('Synchronize');
81 if (! empty($binary_logs)) {
82 $tabs['binlog']['icon'] = 's_tbl.png';
83 $tabs['binlog']['link'] = 'server_binlog.php';
84 $tabs['binlog']['text'] = __('Binary log');
88 $tabs['replication']['icon'] = 's_replication.png';
89 $tabs['replication']['link'] = 'server_replication.php';
90 $tabs['replication']['text'] = __('Replication');
93 $tabs['vars']['icon'] = 's_vars.png';
94 $tabs['vars']['link'] = 'server_variables.php';
95 $tabs['vars']['text'] = __('Variables');
97 $tabs['charset']['icon'] = 's_asci.png';
98 $tabs['charset']['link'] = 'server_collations.php';
99 $tabs['charset']['text'] = __('Charsets');
101 $tabs['engine']['icon'] = 'b_engine.png';
102 $tabs['engine']['link'] = 'server_engines.php';
103 $tabs['engine']['text'] = __('Engines');
105 echo PMA_generate_html_tabs($tabs, array());
113 if (!empty($message)) {
114 PMA_showMessage($message);
117 }// end if($GLOBALS['is_ajax_request'] == true)