Class dvtAuth

Description

Auth Class

Located in /classes/class.dvt_authenticate.php (line 15)


	
			
Variable Summary
integer $admin
string $comments
string $content
string $emailaddress
boolean $secure
Method Summary
string dvtAuth (array $authData)
boolean alreadyAuthorised ()
void auth (array $authData)
boolean usernameAndPasswordCorrect (array $authData)
boolean validateForm (array $authData)
Variables
integer $admin (line 34)

used for debugging

string $comments (line 22)

Array of HTML formmated comment strings

string $content (line 18)

HTML formmated form

string $emailaddress (line 30)

users email address, used when displaying parse result

boolean $secure (line 26)

Boolean 1= Secure 0=unsecure

Methods
Constructor dvtAuth (line 41)

Creator

returns HTML formatted form string

string dvtAuth (array $authData)
  • array $authData: array containing username and password
alreadyAuthorised (line 96)

Checks if user already authorised

Returns 1 if already authorised else 0 Gets session data from cookies

boolean alreadyAuthorised ()
auth (line 76)

Authenticates User

Sets $secure=1, puts two random tokens in database for current user Returns cookie to user containing two random tokens which are used to maintain session

void auth (array $authData)
  • array $authData: this conatins the emailaddress and password to be authenticated
usernameAndPasswordCorrect (line 127)

Checks to see if username (in this case emailaddress) and password correct

Returns 1 if correct else 0

boolean usernameAndPasswordCorrect (array $authData)
  • array $authData: this conatins the emailaddress and password to be checked
validateForm (line 153)

Validates form.

email address is checked to see if it contains @ character, has a prefix and has a domain name password is checked to see if it long enough If valid returns 1 else 0

boolean validateForm (array $authData)
  • array $authData: this conatins the emailaddress and password to be validated

Documentation generated on Tue, 21 Sep 2004 13:46:01 +0100 by phpDocumentor 1.3.0RC3