/home/mjc1/public_html/db_admin/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
70
71
72
73
74
75
76
77
78
79
80
<?php
/* $Id: server_links.inc.php,v 2.7 2004/08/12 15:13:19 nijel Exp $ */
// vim: expandtab sw=4 ts=4 sts=4:

// Check parameters

require_once('./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
 */
if ($cfg['LightTabs']) {
    echo 
'&nbsp;';
} else {
    echo 
'<table border="0" cellspacing="0" cellpadding="0" width="100%">' "\n"
       
'    <tr>' "\n"
       
'        <td class="nav" align="left" nowrap="nowrap" valign="bottom">'
       
'            <table border="0" cellpadding="0" cellspacing="0"><tr>'
       
'                <td nowrap="nowrap"><img src="' .$GLOBALS['pmaThemeImage'] . 'spacer.png'  .'" width="2" height="1" border="0" alt="" /></td>'
       
'                <td class="navSpacer"><img src="' .$GLOBALS['pmaThemeImage'] . 'spacer.png'  '" width="1" height="1" border="0" alt="" /></td>';
}
echo 
PMA_printTab(($GLOBALS['cfg']['MainPageIconic'] ? '<img src="' $GLOBALS['pmaThemeImage'] . 's_db.png" width="16" height="16" border="0" hspace="2" align="middle" alt="'.$strDatabases.'" />' '') . $strDatabases'server_databases.php'$url_query);
if (
$cfg['ShowMysqlInfo']) {
    echo 
PMA_printTab(($GLOBALS['cfg']['MainPageIconic'] ? '<img src="' $GLOBALS['pmaThemeImage'] . 's_status.png" width="16" height="16" border="0" hspace="2" align="middle" alt="'.$strStatus.'" />' '') . $strStatus'server_status.php'$url_query);
}
if (
$cfg['ShowMysqlVars']) {
    echo 
PMA_printTab(($GLOBALS['cfg']['MainPageIconic'] ? '<img src="' $GLOBALS['pmaThemeImage'] . 's_vars.png" width="16" height="16" border="0" hspace="2" align="middle" alt="'.$strServerTabVariables.'" />' '') . $strServerTabVariables'server_variables.php'$url_query);
}
if (
PMA_MYSQL_INT_VERSION >= 40100) {
    echo 
PMA_printTab(($GLOBALS['cfg']['MainPageIconic'] ? '<img src="' $GLOBALS['pmaThemeImage'] . 's_asci.png" width="16" height="16" border="0" hspace="2" align="middle" alt="'.$strCharsets.'" />' '') . $strCharsets'server_collations.php'$url_query);
}
if (
$is_superuser) {
    echo 
PMA_printTab(($GLOBALS['cfg']['MainPageIconic'] ? '<img src="' $GLOBALS['pmaThemeImage'] . 's_rights.png" width="16" height="16" border="0" hspace="2" align="middle" alt="'.$strPrivileges.'" />' '') . $strPrivileges'server_privileges.php'$url_query);
}
echo 
PMA_printTab(($GLOBALS['cfg']['MainPageIconic'] ? '<img src="' $GLOBALS['pmaThemeImage'] . 's_process.png" width="16" height="16" border="0" hspace="2" align="middle" alt="'.$strServerTabProcesslist.'" />' '') . $strServerTabProcesslist'server_processlist.php'$url_query);
echo 
PMA_printTab(($GLOBALS['cfg']['MainPageIconic'] ? '<img src="' $GLOBALS['pmaThemeImage'] . 'b_export.png" width="16" height="16" border="0" hspace="2" align="middle" alt="'.$strExport.'" />' '') . $strExport'server_export.php'$url_query);
if (!
$cfg['LightTabs']) {
    echo 
'                <td nowrap="nowrap"><img src="' .$GLOBALS['pmaThemeImage'] . 'spacer.png'  '" width="2" height="1" border="0" alt="" /></td>'
       
'            </tr></table>' "\n"
       
'        </td>' "\n"
       
'    </tr>' "\n"
       
'</table>';
} else {
    echo 
'<br />';
}

?>
<br />