File_Passwd_Cvs::addUser()

File_Passwd_Cvs::addUser() -- Add an user

Synopsis

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

Opis

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

Parametr

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

Zwracana wartość

Zwraca TRUE w przypadku powodzenia, PEAR_Error w przypadku niepowodzenia.

Tabela 39-1. Możliwe wartości PEAR_Error

Error CodeSummary
FILE_PASSWD_E_EXISTS_ALREADYuser already exists
FILE_PASSWD_E_INVALID_CHARSuser or system_user contain illegal characters

Uwagi

Ta funkcja nie może być wywołana statycznie.