<?
###################################################
#Copyright (C) 2002 Lihua Gao (hide@address.com)
#
#$Id: index.php,v 1.1 2002/12/05 10:03:33 gaolihua Exp $
#
#This file is part of myTodos.
#
#myTodos is free software; you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation; either version 2 of the License, or
#(at your option) any later version.
#
#myTodos is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#GNU General Public License for more details.
#
#You should have received a copy of the GNU General Public License
#along with myTodos; if not, write to the Free Software
#Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#####################################################
?>
<?
require_once("config.php");
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html" charset="ISO-8859-1">
<title>myTodos</title>
<link rel="stylesheet" type="text/css" href="css/general.css">
<SCRIPT language="JavaScript">
function popWin(what) {
newWindow=window.open (what, "newpopWindow","menubar=no,scrollbars=no,resizable=no,location=no,menubar=no,width=550,height=580, left=75,top=20");
}
</SCRIPT>
</head>
<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" bgcolor="#ffffff" text="#000000" link="#000099" alink="#0000ff" vlink="#000099" onload="document.login.useremail.focus()">
<div id="top50left100">
<form method="post" action="login.php" name="login">
<table>
<tr>
<td align="right">your email: <input type="text" name="useremail">
</td>
</tr>
<tr>
<td align="right">your password:
<input type="password" name="password">
</td>
</tr>
<tr>
<td align="right">
<input type="Submit" value="Login"> </td>
</tr>
<?
if (isset($error)){
if ($error=="1"){
echo("<tr><td align=\"right\"><h5>Your account has been disabled</h5></td></tr>");
}
elseif ($error=="2"){
echo("<tr><td align=\"right\"><h5>Your password is incorrect</h5></td></tr>");
}
elseif ($error=="3"){
echo("<tr><td align=\"right\"><h5>That useremail does not exist</h5></td></tr>");
}
}
?>
<tr>
<td align="right"> <a href="javascript:popWin('signup.php')"> Get a free account now!</a> </td>
</tr>
<tr>
<td align="right"> <a href="javascript:popWin('docs/howto.html')"> HELP</a> <a href="mailto:hide@address.com">Contact us</a> </td>
</tr>
<tr>
<td align="right"> </td>
</tr>
<tr>
<td><img src="images/logo.bmp"></td>
</tr>
<tr>
<td align="right"> Copyright 2002 GAO-SOFTWARE </td>
</tr>
<tr>
<td align="right"> <hr></td>
</tr>
<tr>
<td align="center">
<a href="http://sourceforge.net"><img src="http://sourceforge.net/sflogo.php?group_id=YOUR_GROUP_ID_GOES_HERE&type=4" width="125" height="37" border="0" alt="SourceForge.net Logo"></a>
</td>
</tr>
</table>
</form>
</div>
</body>
</html>