no longer used
[phpmyadmin/crack.git] / libraries / server_links.inc.php
blobb44e7e178195bee5f0cb7a11d5cf4c8795473f7b
1 <?php
2 /* $Id$ */
3 // vim: expandtab sw=4 ts=4 sts=4:
5 // Check parameters
7 require_once('./libraries/common.lib.php');
8 require_once('./libraries/server_common.inc.php');
10 PMA_checkParameters(array('is_superuser', 'url_query'), TRUE, FALSE);
12 /**
13 * Counts amount of navigation tabs
15 $server_links_count_tabs = 0;
18 /**
19 * Put something in $sub_part
21 if (!isset($sub_part)) {
22 $sub_part = '';
26 /**
27 * Displays tab links
29 $tabs = array();
31 $tabs['databases']['icon'] = 's_db.png';
32 $tabs['databases']['link'] = 'server_databases.php';
33 $tabs['databases']['text'] = $strDatabases;
35 $tabs['sql']['icon'] = 'b_sql.png';
36 $tabs['sql']['link'] = 'server_sql.php';
37 $tabs['sql']['text'] = $strSQL;
39 $tabs['status']['icon'] = 's_status.png';
40 $tabs['status']['link'] = 'server_status.php';
41 $tabs['status']['text'] = $strStatus;
43 $tabs['vars']['icon'] = 's_vars.png';
44 $tabs['vars']['link'] = 'server_variables.php';
45 $tabs['vars']['text'] = $strServerTabVariables;
47 if (PMA_MYSQL_INT_VERSION >= 40100) {
48 $tabs['charset']['icon'] = 's_asci.png';
49 $tabs['charset']['link'] = 'server_collations.php';
50 $tabs['charset']['text'] = $strCharsets;
53 $tabs['engine']['icon'] = 'b_engine.png';
54 $tabs['engine']['link'] = 'server_engines.php';
55 $tabs['engine']['text'] = $strEngines;
57 if ($is_superuser) {
58 $tabs['rights']['icon'] = 's_rights.png';
59 $tabs['rights']['link'] = 'server_privileges.php';
60 $tabs['rights']['text'] = $strPrivileges;
62 if ($has_binlogs) {
63 $tabs['binlog']['icon'] = 's_tbl.png';
64 $tabs['binlog']['link'] = 'server_binlog.php';
65 $tabs['binlog']['text'] = $strBinaryLog;
67 $tabs['process']['icon'] = 's_process.png';
68 $tabs['process']['link'] = 'server_processlist.php';
69 $tabs['process']['text'] = $strProcesses;
71 $tabs['export']['icon'] = 'b_export.png';
72 $tabs['export']['link'] = 'server_export.php';
73 $tabs['export']['text'] = $strExport;
75 $tabs['import']['icon'] = 'b_import.png';
76 $tabs['import']['link'] = 'server_import.php';
77 $tabs['import']['text'] = $strImport;
79 echo PMA_getTabs( $tabs );
80 unset( $tabs );
83 /**
84 * Displays a message
86 if (!empty($message)) {
87 PMA_showMessage($message);
88 unset($message);
92 <br />