File_Passwd_Cvs::addUser()
Описание
The username must start with an alphabetical character and must NOT contain any other characters than alphanumerics, the underline and dash.
Параметр
- 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
Возвращаемое значение
Возвращает TRUE при удаче и PEAR_Error в обратном случае.
Таблица 39-1. Возможные значения PEAR_Error
Error Code | Summary |
---|---|
FILE_PASSWD_E_EXISTS_ALREADY | user already exists |
FILE_PASSWD_E_INVALID_CHARS | user or system_user contain illegal characters |
Пред. | Начало | След. |
File_Passwd_Cvs::save() | Уровень выше | File_Passwd_Cvs::changeSysUser() |