' . "\n";
/**
* Displays the mysql server related links
*/
if ($server > 0) {
require_once './libraries/check_user_privileges.lib.php';
// why this? a non-priv user should be able to change his
// password if the configuration permits
//$cfg['ShowChgPassword'] = $is_superuser = PMA_isSuperuser();
$is_superuser = PMA_isSuperuser();
if ($cfg['Server']['auth_type'] == 'config') {
$cfg['ShowChgPassword'] = false;
}
}
?>
0) {
// robbat2: Use the verbose name of the server instead of the hostname
// if a value is set
$server_info = '';
if (!empty($cfg['Server']['verbose'])) {
$server_info .= htmlspecialchars($cfg['Server']['verbose']);
if ($GLOBALS['cfg']['ShowServerInfo']) {
$server_info .= ' (';
}
}
if ($GLOBALS['cfg']['ShowServerInfo'] || empty($cfg['Server']['verbose'])) {
$server_info .= PMA_DBI_get_host_info();
}
if (!empty($cfg['Server']['verbose']) && $GLOBALS['cfg']['ShowServerInfo']) {
$server_info .= ')';
}
// loic1: skip this because it's not a so good idea to display sockets
// used to everybody
// if (!empty($cfg['Server']['socket']) && PMA_PHP_INT_VERSION >= 30010) {
// $server_info .= ':' . $cfg['Server']['socket'];
// }
$mysql_cur_user_and_host = PMA_DBI_fetch_value('SELECT USER();');
// should we add the port info here?
$short_server_info = (!empty($GLOBALS['cfg']['Server']['verbose'])
? $GLOBALS['cfg']['Server']['verbose']
: $GLOBALS['cfg']['Server']['host']);
echo '
' . $short_server_info .'
' . "\n";
unset($short_server_info);
} else {
// Case when no server selected
//echo '
MySQL
' . "\n";
}
if ($server > 0) {
echo '
' . "\n";
if ($GLOBALS['cfg']['ShowServerInfo']) {
PMA_printListItem($strServerVersion . ': ' . PMA_MYSQL_STR_VERSION, 'li_server_info');
PMA_printListItem($strProtocolVersion . ': ' . PMA_DBI_get_proto_info(),
'li_mysql_proto');
PMA_printListItem($strServer . ': ' . $server_info, 'li_server_info');
PMA_printListItem($strUser . ': ' . htmlspecialchars($mysql_cur_user_and_host),
'li_user_info');
} else {
PMA_printListItem($strServerVersion . ': ' . PMA_MYSQL_STR_VERSION, 'li_server_info');
PMA_printListItem($strServer . ': ' . $server_info, 'li_server_info');
}
if ($cfg['AllowAnywhereRecoding'] && $allow_recoding && PMA_MYSQL_INT_VERSION < 40100) {
echo '- ';
?>
= 40100) {
echo ' - ';
echo ' ' . $strMySQLCharset . ': '
. ' '
. ' ' . $mysql_charsets_descriptions[$mysql_charset_map[strtolower($charset)]] . "\n"
. ' (' . $mysql_charset_map[strtolower($charset)] . ')' . "\n"
. ' ' . "\n"
. '
' . "\n"
. ' - ';
echo ' ' . "\n"
. '
' . "\n";
}
if ($cfg['ShowCreateDb']) {
echo '- ';
require './libraries/display_create_database.lib.php';
echo '
' . "\n";
}
PMA_printListItem($strMySQLShowStatus, 'li_mysql_status',
'./server_status.php?' . $common_url_query);
PMA_printListItem($strMySQLShowVars, 'li_mysql_variables',
'./server_variables.php?' . $common_url_query, 'show-variables');
PMA_printListItem($strProcesses, 'li_mysql_processes',
'./server_processlist.php?' . $common_url_query, 'show-processlist');
if (PMA_MYSQL_INT_VERSION >= 40100) {
PMA_printListItem($strCharsetsAndCollations, 'li_mysql_collations',
'./server_collations.php?' . $common_url_query);
}
PMA_printListItem($strStorageEngines, 'li_mysql_engines',
'./server_engines.php?' . $common_url_query);
if ($is_reload_priv) {
PMA_printListItem($strReloadPrivileges, 'li_flush_privileges',
'./server_privileges.php?flush_privileges=1&' . $common_url_query, 'flush');
}
if ($is_superuser) {
PMA_printListItem($strPrivileges, 'li_mysql_privilegs',
'./server_privileges.php?' . $common_url_query);
}
$binlogs = PMA_DBI_try_query('SHOW MASTER LOGS', null, PMA_DBI_QUERY_STORE);
if ($binlogs) {
if (PMA_DBI_num_rows($binlogs) > 0) {
PMA_printListItem($strBinaryLog, 'li_mysql_binlogs',
'./server_binlog.php?' . $common_url_query);
}
PMA_DBI_free_result($binlogs);
}
unset($binlogs);
PMA_printListItem($strDatabases, 'li_mysql_databases',
'./server_databases.php?' . $common_url_query);
PMA_printListItem($strExport, 'li_export',
'./server_export.php?' . $common_url_query);
PMA_printListItem($strImport, 'li_import',
'./server_import.php?' . $common_url_query);
/**
* Change password
*
* @todo ? needs another message
*/
if ($cfg['ShowChgPassword']) {
PMA_printListItem($strChangePassword, 'li_change_password',
'./user_password.php?' . $common_url_query);
} // end if
// Logout for advanced authentication
if ($cfg['Server']['auth_type'] != 'config') {
$http_logout = ($cfg['Server']['auth_type'] == 'http')
? ''
. ($cfg['ReplaceHelpImg'] ? '' : '(*)') . ''
: '';
PMA_printListItem('' . $strLogout . ' ' . $http_logout,
'li_log_out',
'./index.php?' . $common_url_query . '&old_usr=' . urlencode($PHP_AUTH_USER), null, '_parent');
} // end if
echo '
';
} // end of if ($server > 0)
?>
phpMyAdmin - ' . PMA_VERSION . ''
. "\n";
echo '
' . "\n";
/**
* Displays the MySQL servers choice form
*/
if (!$cfg['LeftDisplayServers'] && (count($cfg['Servers']) > 1 || $server == 0 && count($cfg['Servers']) == 1)) {
echo '- ';
require_once './libraries/select_server.lib.php';
PMA_select_server(true, true);
echo '
';
}
if ($server > 0) {
PMA_printListItem($strMysqlClientVersion . ': ' . PMA_DBI_get_client_info(),
'li_mysql_client_version');
PMA_printListItem($strUsedPhpExtensions . ': ' . $GLOBALS['cfg']['Server']['extension'],
'li_used_php_extension');
}
// Displays language selection combo
if (empty($cfg['Lang'])) {
echo '- ';
require_once './libraries/display_select_lang.lib.php';
PMA_select_language();
echo '
';
}
if (isset($cfg['AllowAnywhereRecoding']) && $cfg['AllowAnywhereRecoding']
&& $server != 0 && $allow_recoding && PMA_MYSQL_INT_VERSION < 40100) {
echo '- ';
?>
// ThemeManager if available
if ($GLOBALS['cfg']['ThemeManager']) {
echo '- ';
echo $_SESSION['PMA_Theme_Manager']->getHtmlSelectBox();
echo '
';
}
echo '- ';
echo PMA_Config::getFontsizeForm();
echo '
';
PMA_printListItem($strPmaDocumentation, 'li_pma_docs', 'Documentation.html', null, '_blank');
PMA_printListItem($strPmaWiki, 'li_pma_docs', 'http://wiki.cihar.com', null, '_blank');
if ($cfg['ShowPhpInfo']) {
PMA_printListItem($strShowPHPInfo, 'li_phpinfo', './phpinfo.php?' . $common_url_query);
}
// does not work if no target specified, don't know why
PMA_printListItem($strHomepageOfficial, 'li_pma_homepage', 'http://www.phpMyAdmin.net/', null, '_blank');
?>
-
[ChangeLog]
[Subversion]
[Lists]
here, otherwise it will not extend the outer div to the
* full height of the inner divs
*/
?>
' . $error . '' . "\n";
}
}
/**
* Removed the "empty $cfg['PmaAbsoluteUri']" warning on 2005-08-23
* See https://sourceforge.net/tracker/index.php?func=detail&aid=1257134&group_id=23067&atid=377411
*/
/**
* Warning if using the default MySQL privileged account
* modified: 2004-05-05 mkkeck
*/
if ($server != 0
&& $cfg['Server']['user'] == 'root'
&& $cfg['Server']['password'] == '') {
echo '' . $strInsecureMySQL . '
' . "\n";
}
/**
* Warning for PHP 4.2.3
* modified: 2004-05-05 mkkeck
*/
if (PMA_PHP_INT_VERSION == 40203 && @extension_loaded('mbstring')) {
echo '' . $strPHP40203 . '
' . "\n";
}
/**
* Nijel: As we try to hadle charsets by ourself, mbstring overloads just
* break it, see bug 1063821.
*/
if (@extension_loaded('mbstring') && @ini_get('mbstring.func_overload') > 1) {
echo '' . $strMbOverloadWarning . '
' . "\n";
}
/**
* Nijel: mbstring is used for handling multibyte inside parser, so it is good
* to tell user something might be broken without it, see bug #1063149.
*/
if ($GLOBALS['using_mb_charset'] && !@extension_loaded('mbstring')) {
echo '' . $strMbExtensionMissing . '
' . "\n";
}
/**
* Warning for old PHP version
* modified: 2004-05-05 mkkeck
*/
if (PMA_PHP_INT_VERSION < 40100) {
echo '' . sprintf($strUpgrade, 'PHP', '4.1.0') . '
' . "\n";
}
/**
* Warning for old MySQL version
* modified: 2004-05-05 mkkeck
*/
// not yet defined before the server choice
if (defined('PMA_MYSQL_INT_VERSION') && PMA_MYSQL_INT_VERSION < 32332) {
echo '' . sprintf($strUpgrade, 'MySQL', '3.23.32') . '
' . "\n";
}
if (defined('PMA_WARN_FOR_MCRYPT')) {
echo '' . PMA_sanitize(sprintf($strCantLoad, 'mcrypt')) . '
' . "\n";
}
/**
* prints list item for main page
*
* @param string $name displayed text
* @param string $id id, used for css styles
* @param string $url make item as link with $url as target
* @param string $mysql_help_page display a link to MySQL's manual
* @param string $target special target for $url
*/
function PMA_printListItem($name, $id = null, $url = null, $mysql_help_page = null, $target = null)
{
echo '';
if (null !== $url) {
echo '';
}
echo $name;
if (null !== $url) {
echo '' . "\n";
}
if (null !== $mysql_help_page) {
echo PMA_showMySQLDocu('', $mysql_help_page);
}
echo '';
}
/**
* Displays the footer
*/
require_once './libraries/footer.inc.php';
?>