update
[phpmyadmin/crack.git] / server_links.inc.php3
blobf23f36f14b2094a2b898b1b26decd58b28dce012
1 <?php
2 /* $Id$ */
3 // vim: expandtab sw=4 ts=4 sts=4:
5 // Check parameters
7 if (!defined('PMA_COMMON_LIB_INCLUDED')) {
8 include('./libraries/common.lib.php3');
10 PMA_checkParameters(array('is_superuser', 'url_query'));
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 * Prepares links
29 if ($is_superuser) {
30 $cfg['ShowMysqlInfo'] = TRUE;
31 $cfg['ShowMysqlVars'] = TRUE;
35 /**
36 * Displays a message
38 if (!empty($message)) {
39 PMA_showMessage($message);
43 /**
44 * Displays tab links
47 <table border="0" cellspacing="0" cellpadding="3" width="100%" class="tabs">
48 <tr>
49 <td width="8">&nbsp;</td>
50 <?php
51 echo PMA_printTab($strDatabases, 'server_databases.php3', $url_query);
52 if ($cfg['ShowMysqlInfo']) {
53 echo PMA_printTab($strStatus, 'server_status.php3', $url_query);
55 if ($cfg['ShowMysqlVars']) {
56 echo PMA_printTab($strServerTabVariables, 'server_variables.php3', $url_query);
58 if (PMA_MYSQL_INT_VERSION >= 40100) {
59 echo PMA_printTab($strCharsets, 'server_collations.php3', $url_query);
61 if ($is_superuser) {
62 echo PMA_printTab($strPrivileges, 'server_privileges.php3', $url_query);
64 echo PMA_printTab($strServerTabProcesslist, 'server_processlist.php3', $url_query);
65 echo PMA_printTab($strExport, 'server_export.php3', $url_query);
67 </tr>
68 </table>
69 <br />