removed MySQL < 5 code

This commit is contained in:
Sebastian Mendel
2007-10-02 09:57:19 +00:00
parent e1fd395631
commit 1e81ce19e3
5 changed files with 6 additions and 50 deletions

View File

@@ -49,7 +49,7 @@ if (isset($nopass)) {
$common_url_query = PMA_generate_common_url();
$err_url = 'user_password.php?' . $common_url_query;
$hashing_function = (PMA_MYSQL_INT_VERSION >= 40102 && !empty($pw_hash) && $pw_hash == 'old' ? 'OLD_' : '')
$hashing_function = (!empty($pw_hash) && $pw_hash == 'old' ? 'OLD_' : '')
. 'PASSWORD';
$sql_query = 'SET password = ' . (($pma_pw == '') ? '\'\'' : $hashing_function . '(\'' . preg_replace('@.@s', '*', $pma_pw) . '\')');