diff options
author | Piotr Przybylski <piotrprz@gmail.com> | 2011-06-20 01:15:54 +0400 |
---|---|---|
committer | Piotr Przybylski <piotrprz@gmail.com> | 2011-06-20 01:15:54 +0400 |
commit | a7ba0fd74af1ca9d0aa73fd93cf23d8654a42dd5 (patch) | |
tree | 3b49efb827dfebd21e589f37a5baa2af842497cf /main.php | |
parent | c2b06f0a11522d5b61b30de932d018f979b87fad (diff) |
Extract server type detection from main.php and make it available in common.lib.php
Diffstat (limited to 'main.php')
-rw-r--r-- | main.php | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -154,17 +154,11 @@ echo '<div id="main_pane_right">'; if ($server > 0 && $GLOBALS['cfg']['ShowServerInfo']) { - $server_type = 'MySQL'; - if (PMA_DRIZZLE) { - $server_type = 'Drizzle'; - } else if (strpos(PMA_MYSQL_STR_VERSION, 'mariadb') !== false) { - $server_type = 'MariaDB'; - } echo '<div class="group">'; echo '<h2>' . __('Database server') . '</h2>'; echo '<ul>' . "\n"; PMA_printListItem(__('Server') . ': ' . $server_info, 'li_server_info'); - PMA_printListItem(__('Server type') . ': ' . $server_type, 'li_server_type'); + PMA_printListItem(__('Server type') . ': ' . PMA_getServerType(), 'li_server_type'); PMA_printListItem(__('Server version') . ': ' . PMA_MYSQL_STR_VERSION, 'li_server_version'); PMA_printListItem(__('Protocol version') . ': ' . PMA_DBI_get_proto_info(), 'li_mysql_proto'); |