<?
	/**
	 * access control login form
	 * @author Logan Cai (cailongqun@yahoo.com.cn)
	 * @link www.phpletter.com
	 * @since 22/April/2007
	 *
	 */
require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "inc" . DIRECTORY_SEPARATOR . "config.php");
if(isset($_POST['username']))
{
	if($_POST['username'] != CONFIG_LOGIN_USERNAME || $_POST['password'] != CONFIG_LOGIN_PASSWORD)
	{
		
	}else 
	{
		$_SESSION[CONFIG_LOGIN_INDEX] = true;
		header('Location: ' . CONFIG_URL_HOME);
		exit;
	}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" href="theme/<?=CONFIG_THEME_NAME; ?>/css/login.css" rel="stylesheet" />
<title><?=LOGIN_PAGE_TITLE; ?></title>
</head>
<body>
<div id="container">
    <div id="content">
			<form name="frmLogin" method="post" action="">
			    <table class="adminLoginTable" cellpadding="0" cellspacing="0">
			        <thead>
			            <tr>
			                <th colspan="2"><?=LOGIN_FORM_TITLE; ?></th>
			            </tr>
			        </thead>
			        <tbody>
			            <tr>
			                <th class="padTop"><label><?=LOGIN_USERNAME; ?> </label></th>
			                <td class="padTop"><input type="text" value="" class="input" name="username" id="username" /></td>
			            </tr>
			            <tr>
			                <th><label><?=LOGIN_PASSWORD; ?> </label></th>
			                <td><input type="password" value="" class="input" name="password" id="password" /></td>
			            </tr>
			        </tbody>
			        <tfoot>
			            <tr>
			            	<td>&nbsp;</td>
			              <td><span class="button"><button  type="submit"  value="Login" />Login</button></span></td>
			            </tr>			        
			        </tfoot>
			    </table>
			</form>
    </div>
</div>
</body>
</html>
