final public function authenticateBasic($realm = null)
	{
		if (! (
			array_key_exists('PHP_AUTH_USER', $_SERVER)
			and array_key_exists('PHP_AUTH_PW', $_SERVER))
			and ! empty($_SERVER['PHP_AUTH_USER'])
			and ! empty($_SERER['PHP_AUTH_PW'])
		) {
			$this->HTTPAuthenticate('Basic', array('realm' => $realm));
			return false;
		} else {
			$this->HTTP_user = $_SERVER['PHP_AUTH_USER'];
			$this->HTTP_pass = $_SERVER['PHP_AUTH_PW'];
			return true;
		}
	}
final public function authenticateBasic($realm = null)
	{
		if (! (
			array_key_exists('PHP_AUTH_USER', $_SERVER)
			and array_key_exists('PHP_AUTH_PW', $_SERVER))
			and ! empty($_SERVER['PHP_AUTH_USER'])
			and ! empty($_SERER['PHP_AUTH_PW'])
		) {
			$this->HTTPAuthenticate('Basic', array('realm' => $realm));
			return false;
		} else {
			$this->HTTP_user = $_SERVER['PHP_AUTH_USER'];
			$this->HTTP_pass = $_SERVER['PHP_AUTH_PW'];
			return true;
		}
	}
final public function authenticateBasic ( $ realm = null ) { if ( ! ( array_key_exists ( 'PHP_AUTH_USER' , $ _SERVER ) and array_key_exists ( 'PHP_AUTH_PW' , $ _SERVER ) ) and ! empty ( $ _SERVER [ 'PHP_AUTH_USER' ] ) and ! empty ( $ _SERER [ 'PHP_AUTH_PW' ] ) ) { $ this -> HTTPAuthenticate ( 'Basic' , array ( 'realm' => $ realm ) ) ; return false ; } else { $ this -> HTTP_user = $ _SERVER [ 'PHP_AUTH_USER' ] ; $ this -> HTTP_pass = $ _SERVER [ 'PHP_AUTH_PW' ] ; return true ; } }
Checks for credentials in HTTP headers for "Basic" authentication

@param string $realm
@return bool
Checks for credentials in HTTP headers for Basic authentication