File_Passwd_Authbasic::staticAuth()

File_Passwd_Authbasic::staticAuth() -- Fast authentication

Synopsis

require_once 'File/Passwd/Authbasic.php';

mixed File_Passwd_Authbasic::staticAuth (string $file, string $user, string $pass, string $mode)

Описание

Static user authentication.

Параметр

string $file

path to passwd file

string $user

user to authenticate

string $pass

plaintext password

string $mode

des, sha or md5

Возвращаемое значение

Returns TRUE if authenticated, FALSE if not or PEAR_Error on failure.

Таблица 38-1. Возможные значения PEAR_Error

Error CodeSummary
FILE_PASSWD_E_NOT_EXISTSpasswd file doesn't exist
FILE_PASSWD_E_FILE_NOT_OPENEDpasswd file couldn't be opened in read mode
FILE_PASSWD_E_FILE_NOT_LOCKEDpasswd file couldn't be locked shared
FILE_PASSWD_E_FILE_NOT_UNLOCKEDpasswd file couldn't be unlocked (only if auth fails)
FILE_PASSWD_E_FILE_NOT_CLOSEDpasswd file couldn't be closed /only if auth fails)

Заметка

Эта функция должна вызываться статически.


HIVE: All information for read only. Please respect copyright!
Hosted by hive йца: йХЕБЯЙЮЪ ЦНПНДЯЙЮЪ АХАКХНРЕЙЮ