'
.'
';
if ($cfg['MainPageIconic']) {
$str_iconic_list .= '
%1$s'
.' '
.'%4$s | ';
$str_iconic_colspan .= ' colspan="2"';
} else {
$str_iconic_list = '';
$str_iconic_colspan = ' colspan="2"';
}
// Handles some variables that may have been sent by the calling script
if (isset($db)) {
unset($db);
}
if (isset($table)) {
unset($table);
}
$show_query = '1';
require_once('./header.inc.php');
echo "\n";
/**
* Displays the welcome message and the server informations
*/
// note: for proper display of RTL languages, I removed the
// align="left" in the next tag
?>
0) {
// robbat2: Use the verbose name of the server instead of the hostname
// if a value is set
if (!empty($cfg['Server']['verbose'])) {
$server_info = $cfg['Server']['verbose'];
} else {
$server_info = $cfg['Server']['host'];
$server_info .= (empty($cfg['Server']['port']) ? '' : ':' . $cfg['Server']['port']);
}
// 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'];
// }
$res = PMA_DBI_query('SELECT USER();');
list($mysql_cur_user_and_host) = PMA_DBI_fetch_row($res);
$mysql_cur_user = substr($mysql_cur_user_and_host, 0, strrpos($mysql_cur_user_and_host, '@'));
PMA_DBI_free_result($res);
unset($res, $row);
$full_string = str_replace('%pma_s1%', PMA_MYSQL_STR_VERSION, $strMySQLServerProcess);
$full_string = str_replace('%pma_s2%', $server_info, $full_string);
$full_string = str_replace('%pma_s3%', htmlspecialchars($mysql_cur_user_and_host), $full_string);
echo '' . $full_string . ' ' . "\n";
} // end if
// Any message to display?
if (isset($message)) {
PMA_showMessage($message);
unset($message);
}
/**
* Reload mysql (flush privileges)
*/
if (($server > 0) && isset($mode) && ($mode == 'reload')) {
$result = PMA_DBI_query('FLUSH PRIVILEGES');
echo '';
if ($result != 0) {
echo $strMySQLReloaded;
} else {
echo $strReloadFailed;
}
unset($result);
echo ' ' . "\n\n";
}
?>
|
' . "\n";
echo ' ' . "\n";
echo ' ';
}
?>
0) {
require_once('./libraries/check_user_privileges.lib.php');
$common_url_query = PMA_generate_common_url();
if ($is_superuser) {
$cfg['ShowMysqlInfo'] = TRUE;
$cfg['ShowMysqlVars'] = TRUE;
$cfg['ShowChgPassword'] = TRUE;
}
if ($cfg['Server']['auth_type'] == 'config') {
$cfg['ShowChgPassword'] = FALSE;
}
// loic1: Displays the MySQL column only if at least one feature has to be
// displayed
if ($is_superuser || $is_create_db_priv || $is_process_priv || $is_reload_priv
|| $cfg['ShowMysqlInfo'] || $cfg['ShowMysqlVars'] || $cfg['ShowChgPassword']
|| $cfg['Server']['auth_type'] != 'config') {
?>
|
','s_status.png',$strMySQLShowStatus,'') : $str_normal_list);
?>
|
','s_vars.png',$strMySQLShowVars,'') : $str_normal_list);
?>
|
','s_process.png',$strMySQLShowProcess,'') : $str_normal_list);
?>
|
= 40100) {
echo "\n";
?>
','s_asci.png',$strCharsetsAndCollations,'') : $str_normal_list);
?>
|
','b_engine.png',$strStorageEngines,'') : $str_normal_list);
?>
|
','s_reload.png',$strReloadMySQL,'') : $str_normal_list);
?>
|
','s_rights.png',$strPrivileges,'') : $str_normal_list);
?>
|
0) {
?>
','s_tbl.png',$strBinaryLog,'') : $str_normal_list);
?>
|
','s_db.png',$strDatabases,'') : $str_normal_list);
?>
|
','b_export.png',$strExport,'') : $str_normal_list);
?>
|
','b_import.png',$strImport,'') : $str_normal_list);
?>
|
','s_passwd.png',$strChangePassword,'') : $str_normal_list);
?>
|
'
. ($cfg['ReplaceHelpImg'] ? ' ' : '(*)') . ''
: '';
echo "\n";
?>
','s_loggoff.png',$strLogout,'') : $str_normal_list);
?>
|
0)
echo "\n";
?>
|
|
','s_lang.png','Language','') : $str_normal_list);
?>
|
|
= 40100) {
echo ' ' . "\n"
. ' ' . "\n"
.' ' . ($str_iconic_list != '' ? sprintf($str_iconic_list,'','s_asci.png',$strMySQLCharset,'') : $str_normal_list) . "\n"
. ' ' . "\n"
. ' ' . $strMySQLCharset . ': '
. ' '
. ' ' . $mysql_charsets_descriptions[$mysql_charset_map[strtolower($charset)]] . "\n"
. ' (' . $mysql_charset_map[strtolower($charset)] . ')' . "\n"
. ' ' . "\n"
. ' | ' . "\n"
. ' ' . "\n"
. ' ' . "\n"
. ' ' . "\n"
.' ' . ($str_iconic_list != '' ? sprintf($str_iconic_list,'','s_asci.png',$strMySQLConnectionCollation,'') : $str_normal_list) . "\n"
. ' ' . "\n"
. ' ' . "\n"
. ' | ' . "\n"
. ' ' . "\n";
}
echo "\n";
// added by Michael Keck
// ThemeManager if available
if (isset($available_themes_choices) && $available_themes_choices > 1) {
$theme_selected = FALSE;
$theme_preview_path= './themes.php';
$theme_preview_href = '';
?>
') : $str_normal_list) . "\n";
?>
|
','b_docs.png',$strPmaDocumentation,'') : $str_normal_list);
?>
|
','php_sym.png',$strShowPHPInfo,'') : $str_normal_list);
?>
|
','b_home.png',$strHomepageOfficial,'') : $str_normal_list);
?>
|
';
?>
[ChangeLog]
[CVS]
[Lists]
|
|
' . $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";
}
/**
* Displays the footer
*/
echo "\n";
require_once('./footer.inc.php');
?>
|