|
|
1.7.1: edit_user
Description
This functions updates the user in the database.
Function call
edit_user ($uid, $md5password, $new_passwd1, $new_passwd2, $username, $realname, $email, $homepage, $icq_num, $phone_num, $birthday, $occupation, $interests, $residence, $signature, $subtitle, $photo_url, $avatar_url, $language, $theme, $show-days, $email-visible, $admin_mail, $avatar_enable);
Input
The function of the parameters is:
| Parameter | Description |
| $uid | the ID of the user to edit |
| $md5passwd | The MD5-hash of the current password. |
| $new_passwd1 | The new password. |
| $new_passwd2 | The new password for the second time (just for checking). |
| $username | The username of the user. |
| $realname | The full name of the user. |
| $email | The email address. |
| $homepage | The URL of the homepage. |
| $icq_num | The ICQ number. |
| $phone_num | The phone number. |
| $birthday | The birthday in format: YYYY-MM-DD. |
| $occupation | The occupation. |
| $interests | Interests of the user. |
| $residence | The name of the residence or district where the users lives. |
| $signature | The signature which will be placed under every post. |
| $subtitle | The subtitle. |
| $photo_url | The URL to a photograph of the user. |
| $avatar_url | The URL to the avatar of the user. |
| $language | The prevered language for the user. |
| $theme | The default theme for the user. |
| $show_days | The default number of days to show topics in topiclists. |
| $email_visible | The email is world readable if this values is "1", "0" if not. |
| $admin_mail | Admins can send email to the user if this value is "1", if "0" not. |
| $avatar_enable | If "1", an avatar is showed by every post, if "0" not. |
|
Output
The output is the result of the edit. Each resultvalue has the following description:
| Value | Description |
| 0 | No errors, user succesfully edited. |
| 1 | User not logged in. |
| 2 | new_passwd1 and new_passwd2 are not identical. |
| 3 | Password is too short. |
| 4 | Password is too long. |
| 5 | Invalid email address. |
| 6 | Email address allready in use. |
| 9 | Unknown database error. |
|
|