= 5 && PMA_USR_BROWSER_VER < 7) ? 'onpropertychange' : 'onchange'; $is_privileges = basename($_SERVER['SCRIPT_NAME']) === 'server_privileges.php'; $html = '
'; $html .= PMA_URL_getHiddenInputs(); if (strpos($GLOBALS['PMA_PHP_SELF'], 'server_privileges') !== false) { $html .= '' . ''; } $html .= '
' . '' . __('Change password') . '' . '' . '' . '' . '' . '' . '' . '' . ''; $serverType = PMA\libraries\Util::getServerType(); $orig_auth_plugin = PMA_getCurrentAuthenticationPlugin( 'change', $username, $hostname ); $is_superuser = $GLOBALS['dbi']->isSuperuser(); if (($serverType == 'MySQL' && PMA_MYSQL_INT_VERSION >= 50507) || ($serverType == 'MariaDB' && PMA_MYSQL_INT_VERSION >= 50200) ) { // Provide this option only for 5.7.6+ // OR for privileged users in 5.5.7+ if (($serverType == 'MySQL' && PMA_MYSQL_INT_VERSION >= 50706) || ($is_superuser && $mode == 'edit_other') ) { $auth_plugin_dropdown = PMA_getHtmlForAuthPluginsDropdown( $orig_auth_plugin, 'change_pw', 'new' ); $html .= '' . '' . '' . '
' . '' . '' . '
' . '' . '' . '' . '' . '  ' . __('Re-type:') . ' ' . '' . '
' . __('Password Hashing:') . ''; $html .= $auth_plugin_dropdown; $html .= '
'; $html .= '
' . Message::notice( __( 'This method requires using an \'SSL connection\' ' . 'or an \'unencrypted connection that encrypts the ' . 'password using RSA\'; while connecting to the server.' ) . PMA\libraries\Util::showMySQLDocu( 'sha256-authentication-plugin' ) ) ->getDisplay() . '
'; } else { $html .= '' . ''; } } else { $auth_plugin_dropdown = PMA_getHtmlForAuthPluginsDropdown( $orig_auth_plugin, 'change_pw', 'old' ); $html .= '' . '' . __('Password Hashing:') . ''; $html .= $auth_plugin_dropdown . '' . '' . ''; } $html .= '
' . '' . '
'; return $html; }