This patch make email address the user's username as requested in the TODO.

query_users.php is modified even if we will drop it in the future to be sure it works everywhere.
This commit is contained in:
Jonathan Ernst
2005-01-10 22:54:04 +00:00
committed by WineHQ
parent 6b039f82ce
commit d9826427da
25 changed files with 85 additions and 136 deletions

View File

@@ -20,7 +20,7 @@ if(!havepriv("admin"))
exit;
}
$user = new User();
$result = query_appdb("SELECT stamp, userid, username, realname, ".
$result = query_appdb("SELECT stamp, userid, realname, ".
"created, status, perm FROM user_list WHERE ".
"userid = '$userid'", $user->link);
if(!$result)
@@ -30,11 +30,9 @@ if(!havepriv("admin"))
}
list($user->stamp, $user->userid, $user->username, $user->realname,
list($user->stamp, $user->userid, $user->realname,
$user->created, $status, $perm) = mysql_fetch_row($result);
global $ext_username, $ext_password1, $ext_password2, $ext_realname, $ext_email, $ext_hasadmin;
if($_POST)
{
if ($ext_password == $ext_password2)
@@ -70,9 +68,6 @@ if($_POST)
echo html_frame_start("Data for user ID $userid", "80%");
echo html_table_begin("width='100%' border=0 align=left cellspacing=0 class='box-body'");
$ext_username = $user->lookup_username($userid);
$ext_realname = $user->lookup_realname($userid);
$ext_email = $user->lookup_email($userid);
if($user->checkpriv("admin"))
@@ -84,8 +79,8 @@ if($_POST)
?>
<input type="hidden" name="userid" value="<?php echo $userid; ?>">
<tr>
<td> &nbsp; User Name </td>
<td> <b> <?php echo $ext_username; ?> </b> </td>
<td> &nbsp; Email Address </td>
<td> <input type="text" name="ext_email" value="<?php echo $ext_email; ?>"> </td>
</tr>
<tr>
<td> &nbsp; Password </td>
@@ -99,10 +94,6 @@ if($_POST)
<td> &nbsp; Real Name </td>
<td> <input type="text" name="ext_realname" value="<?php echo $ext_realname; ?>"> </td>
</tr>
<tr>
<td> &nbsp; Email Address </td>
<td> <input type="text" name="ext_email" value="<?php echo $ext_email; ?>"> </td>
</tr>
<tr>
<td> &nbsp; Administrator </td>
<td> <input type="checkbox" name="ext_hasadmin" "<?php echo $ext_hasadmin; ?>"> </td>