Forked from the PHP-LOGIN project (http://www.php-login.net).