<!--#include file="connoklin.asp"-->
<!--#include file="inc/md5.asp" -->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<%
if instr(request.servervariables("http_referer"),"http://"&request.servervariables("http_host") )<1 then
Response.Redirect "index.asp"
response.end()
end if%>
<%
UserName=trim(Request.form("UserName"))
Password=md5(trim(Request.form("Password")))
set rs=server.createobject("adodb.recordset")
SQL ="Select * From regUser"
rs.open sql,conn,3,3
do until rs.eof
	If UserName = RS("Username") AND Password = RS("Password") Then
        session("linok")=trim(request("username"))
		Response.Redirect "index.asp"
	Else
		rs.movenext
	End If
loop
Response.Redirect "index.asp"
RS.Close
Set RS = Nothing
%>
