/** * Index action * * @return void */ public function indexAction() { /** * Does the common work */ include_once 'libraries/server_common.inc.php'; $this->response->addHTML(PMA_getHtmlForSubPageHeader('collations')); $this->response->addHTML($this->_getHtmlForCharsets(Charsets::getMySQLCharsets(), Charsets::getMySQLCollations(), Charsets::getMySQLCharsetsDescriptions(), Charsets::getMySQLCollationsDefault())); }
echo '</div>'; echo '</div>'; echo '<div id="main_pane_right">'; if ($server > 0 && $GLOBALS['cfg']['ShowServerInfo']) { echo '<div class="group">'; echo '<h2>', __('Database server'), '</h2>'; echo '<ul>', "\n"; PMA_printListItem(__('Server:') . ' ' . $server_info, 'li_server_info'); PMA_printListItem(__('Server type:') . ' ' . PMA\libraries\Util::getServerType(), 'li_server_type'); PMA_printListItem(__('Server version:') . ' ' . PMA_MYSQL_STR_VERSION . ' - ' . PMA_MYSQL_VERSION_COMMENT, 'li_server_version'); PMA_printListItem(__('Protocol version:') . ' ' . $GLOBALS['dbi']->getProtoInfo(), 'li_mysql_proto'); PMA_printListItem(__('User:'******' ' . htmlspecialchars($mysql_cur_user_and_host), 'li_user_info'); echo ' <li id="li_select_mysql_charset">'; echo ' ', __('Server charset:'), ' ' . ' <span lang="en" dir="ltr">'; $unicode = Charsets::$mysql_charset_map['utf-8']; $charsets = Charsets::getMySQLCharsetsDescriptions(); echo ' ', $charsets[$unicode], ' (' . $unicode, ')'; echo ' </span>' . ' </li>' . ' </ul>' . ' </div>'; } if ($GLOBALS['cfg']['ShowServerInfo']) { echo '<div class="group">'; echo '<h2>', __('Web server'), '</h2>'; echo '<ul>'; if ($GLOBALS['cfg']['ShowServerInfo']) { PMA_printListItem($_SERVER['SERVER_SOFTWARE'], 'li_web_server_software'); if ($server > 0) { $client_version_str = $GLOBALS['dbi']->getClientInfo(); if (preg_match('#\\d+\\.\\d+\\.\\d+#', $client_version_str)) { $client_version_str = 'libmysql - ' . $client_version_str; } PMA_printListItem(__('Database client version:') . ' ' . $client_version_str, 'li_mysql_client_version');