| File Purpose: | File Depedencies |
| Username/Password Validation | secure.php |
| External Function call | Location of Definiton |
| cfg::reportError | config.inc.php |
| cfg::reportError | config.inc.php |
| External Variable Name | Purpose |
| cfg::$max_login_failures | passed the max number of failures for comparison purposes. |
| Internal Function call | Purpose |
| 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 Name | Purpose |
| n/a | n/a |
| Local Variables | Purpose |
| req_username | trims and sends input of username via a form. |
| req_password | trims 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. |