public function authenticate($login, $password)
    {
        if (!isset($this->server['PHP_AUTH_USER'])) {
            $this->forbid();
            return false;
        } else {
            if (($this->server['PHP_AUTH_USER'] == $login) && ($this->server['PHP_AUTH_PW'] == $password)) {
                return true;
            } else {
                $this->forbid();
                return false;
            }
        }
    }
public function authenticate($login, $password)
    {
        if (!isset($this->server['PHP_AUTH_USER'])) {
            $this->forbid();
            return false;
        } else {
            if (($this->server['PHP_AUTH_USER'] == $login) && ($this->server['PHP_AUTH_PW'] == $password)) {
                return true;
            } else {
                $this->forbid();
                return false;
            }
        }
    }
public function authenticate ( $ login , $ password ) { if ( ! isset ( $ this -> server [ 'PHP_AUTH_USER' ] ) ) { $ this -> forbid ( ) ; return false ; } else { if ( ( $ this -> server [ 'PHP_AUTH_USER' ] == $ login ) && ( $ this -> server [ 'PHP_AUTH_PW' ] == $ password ) ) { return true ; } else { $ this -> forbid ( ) ; return false ; } } }
Performs HTTP-digest authentication

@param string $login
@param string $password
@return boolean
Performs HTTP - digest authentication