HTTP Authentication
Simple HTTP authentication class
Usage
Just create an new instance of the httpauth class.
__construct($realm, $sub1[, $sub2])
Starts a http authenticated session
$realm = What you want to show in the login box. Should be unique to any other httpauth logins you may have on your domain
Single User:
$sub1 = The username of the user
$sub2 = The password for the user
Multi-User:
$sub1 = Array of users, in where the keys are the usernames and the values are the passwords
getRealm()
Returns the realm
getUsername()
Returns the username used to login
getPassword()
Returns the password used to login

Comments