1<?php
2# ---------------------------------------------------------------------
3# rth is a requirement, test, and bugtracking system
4# Copyright (C) 2005 George Holbrook - rth@lists.sourceforge.net
5# This program is distributed under the terms and conditions of the GPL
6# See the README and LICENSE files for details
7#----------------------------------------------------------------------
8# --------------------------------------------------
9# Login Page
10#
11# $RCSfile: login.php,v $ $Revision: 1.2 $
12# --------------------------------------------------
13
14include("./api/include_api.php");
15auth_authenticate_user();
16
17
18$login_cookie_username 	= util_get_cookie(USER_COOKIE_NAME, '');
19$login_cookie_pwd 		= util_get_cookie(PWD_COOKIE_NAME, '');
20
21
22
23# try logging in using username from cookies and password from user
24if( !empty($login_cookie_username) ) {
25
26	include("login_confirm_password_inc.php");
27	exit;
28
29# Else get username and password from user
30} else {
31
32	include("login_inc.php");
33	exit;
34}
35
36
37# ------------------------------------
38# $Log: login.php,v $
39# Revision 1.2  2006/08/01 23:42:56  gth2
40# fixing case sensativity errors reported by users - gth
41#
42# Revision 1.1.1.1  2005/11/30 23:00:57  gth2
43# importing initial version - gth
44#
45# ------------------------------------
46?>
47