Initial import.
[openemr.git] / interface / main / myadmin / server_links.inc.php
blob2439f8279b6b8d41cc5e348b812eb9b3080c7962
1 <?php
2 /* $Id$ */
3 // vim: expandtab sw=4 ts=4 sts=4:
5 // Check parameters
7 require_once('./libraries/common.lib.php');
8 PMA_checkParameters(array('is_superuser', 'url_query'));
10 /**
11 * Counts amount of navigation tabs
13 $server_links_count_tabs = 0;
16 /**
17 * Put something in $sub_part
19 if (!isset($sub_part)) {
20 $sub_part = '';
24 /**
25 * Prepares links
27 if ($is_superuser) {
28 $cfg['ShowMysqlInfo'] = TRUE;
29 $cfg['ShowMysqlVars'] = TRUE;
33 /**
34 * Displays a message
36 if (!empty($message)) {
37 PMA_showMessage($message);
41 /**
42 * Displays tab links
45 <table border="0" cellspacing="0" cellpadding="3" width="100%" class="tabs">
46 <tr>
47 <td width="8">&nbsp;</td>
48 <?php
49 echo PMA_printTab($strDatabases, 'server_databases.php', $url_query);
50 if ($cfg['ShowMysqlInfo']) {
51 echo PMA_printTab($strStatus, 'server_status.php', $url_query);
53 if ($cfg['ShowMysqlVars']) {
54 echo PMA_printTab($strServerTabVariables, 'server_variables.php', $url_query);
56 if (PMA_MYSQL_INT_VERSION >= 40100) {
57 echo PMA_printTab($strCharsets, 'server_collations.php', $url_query);
59 if ($is_superuser) {
60 echo PMA_printTab($strPrivileges, 'server_privileges.php', $url_query);
62 echo PMA_printTab($strServerTabProcesslist, 'server_processlist.php', $url_query);
63 echo PMA_printTab($strExport, 'server_export.php', $url_query);
65 </tr>
66 </table>
67 <br />