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:
17
edituser.php
17
edituser.php
@@ -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> User Name </td>
|
||||
<td> <b> <?php echo $ext_username; ?> </b> </td>
|
||||
<td> Email Address </td>
|
||||
<td> <input type="text" name="ext_email" value="<?php echo $ext_email; ?>"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> Password </td>
|
||||
@@ -99,10 +94,6 @@ if($_POST)
|
||||
<td> Real Name </td>
|
||||
<td> <input type="text" name="ext_realname" value="<?php echo $ext_realname; ?>"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> Email Address </td>
|
||||
<td> <input type="text" name="ext_email" value="<?php echo $ext_email; ?>"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> Administrator </td>
|
||||
<td> <input type="checkbox" name="ext_hasadmin" "<?php echo $ext_hasadmin; ?>"> </td>
|
||||
|
||||
Reference in New Issue
Block a user