= 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') . '' . '' . '' . '' . '' . '' . '' . '' . ''; $html .= '' . ''; $serverType = PMA\libraries\Util::getServerType(); if (($serverType == 'MySQL' && PMA_MYSQL_INT_VERSION >= 50507) || ($serverType == 'MariaDB' && PMA_MYSQL_INT_VERSION >= 50200) ) { $active_auth_plugins = PMA_getActiveAuthPlugins(); $default_auth_plugin = PMA_getCurrentAuthenticationPlugin( 'change', $username, $hostname ); $iter = 0; $total_plugins = count($active_auth_plugins); foreach ($active_auth_plugins as $plugin) { if ($plugin['PLUGIN_NAME'] == 'mysql_old_password') { continue; } if ($iter != 0) { $html .= ''; } $html .= ''; if ($iter == $total_plugins - 2) { $html .= ''; } else if ($iter != $total_plugins - 1) { $html .= ''; } $iter++; } $html .= ''; $html .= '
' . '' . '' . '
' . '' . '' . '' . '' . '  ' . __('Re-type:') . ' ' . '' . '
' . __('Password Hashing:') . ' ' . '' . '
'; $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() . '
'; $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 .= '' . '' . '' . '' . ''; } $html .= '
' . '' . '
'; return $html; }