Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 17429 программистов и 1872 робота. Сейчас ищет 1761 программист ...
File_Passwd_Cvs::staticAuth
Вернуться к: File_Passwd_Cvs
File_Passwd_Cvs::staticAuth
File_Passwd_Cvs::staticAuth() – Fast authentication
Synopsis
require_once 'File/Passwd/Cvs.php';
mixed File_Passwd_Cvs::staticAuth ( string $file , string $user , string $pass )
Static user authentication.
Parameter
- string $file
-
path to passwd file
- string $user
-
user to authenticate
- string $pass
-
plaintext password
Return value
Returns TRUE if authenticated, FALSE if not or PEAR_Error on failure.
Error Code | Summary |
---|---|
FILE_PASSWD_E_NOT_EXISTS | passwd file doesn't exist |
FILE_PASSWD_E_FILE_NOT_OPENED | passwd file couldn't be opened in read mode |
FILE_PASSWD_E_FILE_NOT_LOCKED | passwd file couldn't be locked shared |
FILE_PASSWD_E_FILE_NOT_UNLOCKED | passwd file couldn't be unlocked (only if auth fails) |
FILE_PASSWD_E_FILE_NOT_CLOSED | passwd file couldn't be closed /only if auth fails) |
Note
This function should be called statically.
Вернуться к: File_Passwd_Cvs