forked from phpmyadmin/phpmyadmin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserver_links.inc.php
69 lines (58 loc) · 1.39 KB
/
server_links.inc.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
/* $Id$ */
// vim: expandtab sw=4 ts=4 sts=4:
// Check parameters
if (!defined('PMA_COMMON_LIB_INCLUDED')) {
include('./libraries/common.lib.php');
}
PMA_checkParameters(array('is_superuser', 'url_query'));
/**
* Counts amount of navigation tabs
*/
$server_links_count_tabs = 0;
/**
* Put something in $sub_part
*/
if (!isset($sub_part)) {
$sub_part = '';
}
/**
* Prepares links
*/
if ($is_superuser) {
$cfg['ShowMysqlInfo'] = TRUE;
$cfg['ShowMysqlVars'] = TRUE;
}
/**
* Displays a message
*/
if (!empty($message)) {
PMA_showMessage($message);
}
/**
* Displays tab links
*/
?>
<table border="0" cellspacing="0" cellpadding="3" width="100%" class="tabs">
<tr>
<td width="8"> </td>
<?php
echo PMA_printTab($strDatabases, 'server_databases.php', $url_query);
if ($cfg['ShowMysqlInfo']) {
echo PMA_printTab($strStatus, 'server_status.php', $url_query);
}
if ($cfg['ShowMysqlVars']) {
echo PMA_printTab($strServerTabVariables, 'server_variables.php', $url_query);
}
if (PMA_MYSQL_INT_VERSION >= 40100) {
echo PMA_printTab($strCharsets, 'server_collations.php', $url_query);
}
if ($is_superuser) {
echo PMA_printTab($strPrivileges, 'server_privileges.php', $url_query);
}
echo PMA_printTab($strServerTabProcesslist, 'server_processlist.php', $url_query);
echo PMA_printTab($strExport, 'server_export.php', $url_query);
?>
</tr>
</table>
<br />