SourceForge Logo
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:

ParameterDescription
$uidthe ID of the user to edit
$md5passwdThe MD5-hash of the current password.
$new_passwd1The new password.
$new_passwd2The new password for the second time (just for checking).
$usernameThe username of the user.
$realnameThe full name of the user.
$emailThe email address.
$homepageThe URL of the homepage.
$icq_numThe ICQ number.
$phone_numThe phone number.
$birthdayThe birthday in format: YYYY-MM-DD.
$occupationThe occupation.
$interestsInterests of the user.
$residenceThe name of the residence or district where the users lives.
$signatureThe signature which will be placed under every post.
$subtitleThe subtitle.
$photo_urlThe URL to a photograph of the user.
$avatar_urlThe URL to the avatar of the user.
$languageThe prevered language for the user.
$themeThe default theme for the user.
$show_daysThe default number of days to show topics in topiclists.
$email_visibleThe email is world readable if this values is "1", "0" if not.
$admin_mailAdmins can send email to the user if this value is "1", if "0" not.
$avatar_enableIf "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:

ValueDescription
0No errors, user succesfully edited.
1User not logged in.
2new_passwd1 and new_passwd2 are not identical.
3Password is too short.
4Password is too long.
5Invalid email address.
6Email address allready in use.
9Unknown database error.

« Previous | Index | Next »