previousFile_Passwd_Cvs::save (Previous) (Next) File_Passwd_Cvs::changeSysUsernext

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

File_Passwd_Cvs::addUser

File_Passwd_Cvs::addUser() – Add an user

Synopsis

mixed File_Passwd_Cvs::addUser ( string $user , string $pass , string $system_user = '' )

Description

The username must start with an alphabetical character and must NOT contain any other characters than alphanumerics, the underline and dash.

Parameter

string $user

the name of the user to add

string $pass

the password of the user tot add

string $system_user

the systemuser this user maps to

Return value

Returns TRUE on success, PEAR_Error on failure.

Possible PEAR_Error values
Error Code Summary
FILE_PASSWD_E_EXISTS_ALREADY user already exists
FILE_PASSWD_E_INVALID_CHARS user or system_user contain illegal characters

Note

This function can not be called statically.

previousFile_Passwd_Cvs::save (Previous) (Next) File_Passwd_Cvs::changeSysUsernext

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.