Source for file index.php
Documentation is available at index.php
* This is the form handler for the login application.
* It expects a user name and password via _POST. If
* @author Dirk Merkel <dirk@waferthin.com>
* @copyright Waferthin Web Works LLC
* @license http://www.gnu.org/copyleft/gpl.html Freely available under GPL
* @mytag mytag description http://waferthin.com
* required class files and interfaces
require_once('classes/Accountable.php');
require_once('classes/Authentication.php');
require_once('classes/Users.php');
require_once('classes/Authentication/HardcodedAccounts.php');
$_POST['password'] =
'myPass';
if (isset
($_POST['user']) && isset
($_POST['password'])) {
$loginSucceeded =
$authenticator->login($_POST['user'], $_POST['password']);
if ($loginSucceeded ===
true) {
echo
"Congrats - you're in!\n";
echo
"Uh-uh - try again!\n";
Documentation generated on Mon, 26 Jul 2010 22:07:04 +0100 by phpDocumentor 1.4.3