Translation update done using Pootle.
[phpmyadmin/dkf.git] / libraries / server_links.inc.php
blob81962699d32707cce98fd0745ab7777ada66b9ed
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
5 * @package phpMyAdmin
6 */
7 if (! defined('PHPMYADMIN')) {
8 exit;
11 /**
12 * Check parameters
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']) {
21 /**
22 * Counts amount of navigation tabs
24 $server_links_count_tabs = 0;
27 /**
28 * Put something in $sub_part
30 if (!isset($sub_part)) {
31 $sub_part = '';
35 /**
36 * Displays tab links
38 $tabs = array();
40 $tabs['databases']['icon'] = 's_db.png';
41 $tabs['databases']['link'] = 'server_databases.php';
42 $tabs['databases']['text'] = __('Databases');
44 $tabs['sql']['icon'] = 'b_sql.png';
45 $tabs['sql']['link'] = 'server_sql.php';
46 $tabs['sql']['text'] = __('SQL');
48 $tabs['status']['icon'] = 's_status.png';
49 $tabs['status']['link'] = 'server_status.php';
50 $tabs['status']['text'] = __('Status');
52 if (! empty($binary_logs)) {
53 $tabs['binlog']['icon'] = 's_tbl.png';
54 $tabs['binlog']['link'] = 'server_binlog.php';
55 $tabs['binlog']['text'] = __('Binary log');
57 $tabs['process']['icon'] = 's_process.png';
58 $tabs['process']['link'] = 'server_processlist.php';
59 $tabs['process']['text'] = __('Processes');
61 if ($is_superuser) {
62 $tabs['rights']['icon'] = 's_rights.png';
63 $tabs['rights']['link'] = 'server_privileges.php';
64 $tabs['rights']['text'] = __('Privileges');
67 $tabs['export']['icon'] = 'b_export.png';
68 $tabs['export']['link'] = 'server_export.php';
69 $tabs['export']['text'] = __('Export');
71 $tabs['import']['icon'] = 'b_import.png';
72 $tabs['import']['link'] = 'server_import.php';
73 $tabs['import']['text'] = __('Import');
75 $tabs['vars']['icon'] = 's_vars.png';
76 $tabs['vars']['link'] = 'server_variables.php';
77 $tabs['vars']['text'] = __('Variables');
79 $tabs['charset']['icon'] = 's_asci.png';
80 $tabs['charset']['link'] = 'server_collations.php';
81 $tabs['charset']['text'] = __('Charsets');
83 $tabs['engine']['icon'] = 'b_engine.png';
84 $tabs['engine']['link'] = 'server_engines.php';
85 $tabs['engine']['text'] = __('Engines');
87 if ($is_superuser) {
88 $tabs['replication']['icon'] = 's_replication.png';
89 $tabs['replication']['link'] = 'server_replication.php';
90 $tabs['replication']['text'] = __('Replication');
93 $tabs['synchronize']['icon'] = 's_sync.png';
94 $tabs['synchronize']['link'] = 'server_synchronize.php';
95 $tabs['synchronize']['text'] = __('Synchronize');
97 $tabs['settings']['icon'] = 'b_tblops.png';
98 $tabs['settings']['link'] = 'prefs_manage.php';
99 $tabs['settings']['text'] = __('Settings');
100 $tabs['settings']['active'] = in_array(basename($GLOBALS['PMA_PHP_SELF']),
101 array('prefs_forms.php', 'prefs_manage.php'));
103 echo PMA_generate_html_tabs($tabs, array());
104 unset($tabs);
109 * Displays a message
111 if (!empty($message)) {
112 PMA_showMessage($message);
113 unset($message);
115 }// end if($GLOBALS['is_ajax_request'] == true)