From e264e9f112d917c4170ad432f9f61660c9eddbb4 Mon Sep 17 00:00:00 2001 From: Piotr Przybylski Date: Tue, 5 Apr 2011 16:01:35 +0200 Subject: [PATCH] Hide password change for Drizzle --- main.php | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/main.php b/main.php index 6943c32e6..e678d8845 100644 --- a/main.php +++ b/main.php @@ -85,19 +85,20 @@ if ($server > 0 if ($server > 0) { require_once './libraries/check_user_privileges.lib.php'; - // Logout for advanced authentication - if ($cfg['Server']['auth_type'] != 'config') { - if ($cfg['ShowChgPassword']) { - if ($GLOBALS['cfg']['AjaxEnable']) { - $conditional_class = 'ajax'; - } else { - $conditional_class = null; + if (!PMA_DRIZZLE) { + // Logout for advanced authentication + if ($cfg['Server']['auth_type'] != 'config') { + if ($cfg['ShowChgPassword']) { + if ($GLOBALS['cfg']['AjaxEnable']) { + $conditional_class = 'ajax'; + } else { + $conditional_class = null; + } + PMA_printListItem(__('Change password'), 'li_change_password', + './user_password.php?' . $common_url_query, null, null, 'change_password_anchor', null, $conditional_class); } - PMA_printListItem(__('Change password'), 'li_change_password', - './user_password.php?' . $common_url_query, null, null, 'change_password_anchor', null, $conditional_class); - } - } // end if - if (PMA_DRIZZLE) { + } // end if + echo '
  • '; echo '
    ' . "\n" . PMA_generate_common_hidden_inputs(null, null, 4, 'collation_connection')