46 lines
1.1 KiB
PHP
46 lines
1.1 KiB
PHP
<?php
|
|
require_once(BASE."include/util.php");
|
|
|
|
$aClean = array(); //array of filtered user input
|
|
|
|
$aClean['userId'] = makeSafe($_REQUEST['userId']);
|
|
/*********************/
|
|
/* Edit Account Form */
|
|
/*********************/
|
|
?>
|
|
|
|
<!-- start of edit account form -->
|
|
<tr>
|
|
<td> Email Address </td>
|
|
<td> <input type="text" name="ext_email" value="<?php echo $ext_email; ?>"> </td>
|
|
</tr>
|
|
<tr>
|
|
<td> Password </td>
|
|
<td> <input type="password" name="ext_password"> </td>
|
|
</tr>
|
|
<tr>
|
|
<td> Password (again) </td>
|
|
<td> <input type="password" name="ext_password2"> </td>
|
|
</tr>
|
|
<tr>
|
|
<td> Real Name </td>
|
|
<td> <input type="text" name="ext_realname" value="<?php echo $ext_realname; ?>"> </td>
|
|
</tr>
|
|
<?php
|
|
// if we manage another user we can give him administrator rights
|
|
if($oUser->iUserId == $aClean['userId'])
|
|
{
|
|
?>
|
|
<tr>
|
|
<td> Administrator </td>
|
|
<td> <input type="checkbox" name="ext_hasadmin" "<?php echo $ext_hasadmin; ?>" value="on"> </td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
<tr>
|
|
<td colspan=2> </td>
|
|
</tr>
|
|
|
|
<!-- end of edit account form -->
|