Location: PHPKode > projects > PhpFamilyTree > phpfamilytree/login.php
<?
# login.php - Login / Logout page
# $Id: login.php,v 1.1.1.1 2004/01/01 05:51:24 rocket_169 Exp $
#
# Copyright (c) 2003 The phpFamilyTree Project Team
# Licensed under the GNU GPL. For full terms see the file COPYING.
#
# http://www.phpfamilytree.org
#

require_once ("config.php");
require_once ("functions.php");
require_once ("header.php");

$username = str_replace("\"","'",$_POST["username"]);
$password = str_replace("\"","'",$_POST["password"]);

if(is_array($_SESSION["authdata"])) {
	logout();
	print "Logged out";
	print "<META HTTP-EQUIV='REFRESH' CONTENT='0; URL=index.php'>";
	exit;
}

if (auth($username,$password)) {
	print "Welcome";
	print "<META HTTP-EQUIV='REFRESH' CONTENT='0; URL=index.php'>";
	exit;
}

login_form();


?>

Return current item: PhpFamilyTree