patch #525250 - Added 'Change Password' to phpMyAdmin, thanks to Taco Scargo

This commit is contained in:
Loïc Chapeaux
2002-03-09 12:36:34 +00:00
parent b779ba519e
commit d70056c781
42 changed files with 220 additions and 15 deletions

View File

@@ -212,10 +212,20 @@ if ($server > 0) {
$common_url_query = 'lang=' . $lang . '&server=' . $server;
if ($is_superuser) {
$cfgShowMysqlInfo = TRUE;
$cfgShowMysqlVars = TRUE;
$cfgShowChgPassword = TRUE;
}
if ($cfgServer['auth_type'] == 'config') {
$cfgShowChgPassword = FALSE;
}
// loic1: Displays the MySQL column only if at least one feature has to be
// displayed
if ($is_superuser || $is_create_priv || $is_process_priv || $is_reload_priv
|| $cfgShowMysqlInfo || $cfgShowMysqlVars || $cfgServer['auth_type'] != 'config') {
|| $cfgShowMysqlInfo || $cfgShowMysqlVars || $cfgShowChgPassword
|| $cfgServer['auth_type'] != 'config') {
?>
<!-- MySQL server related links -->
<td valign="top" align="<?php echo $cell_align_left; ?>">
@@ -250,7 +260,7 @@ if ($server > 0) {
?>
<!-- server-related links -->
<?php
if ($is_superuser || $cfgShowMysqlInfo) {
if ($cfgShowMysqlInfo) {
echo "\n";
?>
<tr>
@@ -263,7 +273,7 @@ if ($server > 0) {
</tr>
<?php
} // end if
if ($is_superuser || $cfgShowMysqlVars) {
if ($cfgShowMysqlVars) {
echo "\n";
?>
<tr>
@@ -331,6 +341,20 @@ if ($server > 0) {
}
}
// Change password (needs another message)
if ($cfgShowChgPassword) {
echo "\n";
?>
<tr>
<td valign="baseline"><img src="<?php echo $item_img; ?>" width="7" height="7" alt="item" /></td>
<td>
<a href="user_password.php3?<?php echo $common_url_query; ?>">
<?php echo ($strChangePassword); ?></a>
</td>
</tr>
<?php
} // end if
// Logout for advanced authentication
if ($cfgServer['auth_type'] != 'config') {
$http_logout = ($cfgServer['auth_type'] == 'http')