Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Przybylski <piotrprz@gmail.com>2011-06-20 01:15:54 +0400
committerPiotr Przybylski <piotrprz@gmail.com>2011-06-20 01:15:54 +0400
commita7ba0fd74af1ca9d0aa73fd93cf23d8654a42dd5 (patch)
tree3b49efb827dfebd21e589f37a5baa2af842497cf /main.php
parentc2b06f0a11522d5b61b30de932d018f979b87fad (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.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/main.php b/main.php
index 6fbf2979ef..ee203337cb 100644
--- a/main.php
+++ b/main.php
@@ -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');