DOCUMENTATION FOR AUTHENTICATE.PHP



File Purpose:File Depedencies
Username/Password Validationsecure.php

External Function callLocation of Definiton
cfg::reportErrorconfig.inc.php
cfg::reportErrorconfig.inc.php

External Variable NamePurpose
cfg::$max_login_failurespassed the max number of failures for comparison purposes.

Internal Function callPurpose
accept()display the accept message on the page.
deny()display the deny message on page and to increment times failed.
locked()display locked message on page.

Class NamePurpose
n/an/a

Local VariablesPurpose
req_usernametrims and sends input of username via a form.
req_passwordtrims and sends input of password via a form.

Comments This file handles username/password validation. If password is invalid it would deny user access. It also tracks number of times that a user has tried to logon with an invalid password. After 5 unsuccessful tried the account is locked.