www.gusucode.com > QQ空间互踩整站源码asp网站源码程序 > QQ空间互踩整站源码asp网站源码程序/admin_login.asp

    <!--#include file="config.asp"-->
<%
dim action
action=request("action")

if action="chklogin" then
	dim server_v1,server_v2
        server_v1=Cstr(Request.ServerVariables("HTTP_REFERER"))
        server_v2=Cstr(Request.ServerVariables("SERVER_NAME"))
        If mid(server_v1,8,len(server_v2))<>server_v2 then
                Response.write "远程提交,不合法"
                Response.End
        End If
	if request.form("username")=AdminName and request.form("password")=AdminPass then
		session("cutelink_admin")="OK"
		response.redirect "admin_manage.asp"
	else
		response.redirect "admin_login.asp"
	end if
end if
if action="exit" then
session("cutelink_admin")=""
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" />
<link href="style.css" rel="stylesheet" type="text/css">
<title>管理员登陆_<%=WebName & ChannelName%></title>
</head>
<body>
<p>&nbsp;</p>
<p>&nbsp;</p>
<form method="post" action="?action=chklogin" name="f1">
  <TABLE cellSpacing=0 cellPadding=0 width=300 align=center border=0>
    <TBODY>
      <TR> 
        <TD vAlign=bottom align=right width=347 rowSpan=2> <TABLE 
      style="BORDER-RIGHT: #333333 1px solid; BORDER-TOP: #333333 1px solid; BORDER-LEFT: #333333 1px solid; BORDER-BOTTOM: #333333 1px solid" 
      cellSpacing=0 cellPadding=0 width="100%" border=0>
            <TBODY>
              <TR align=middle bgColor=#3280be> 
                <TD style="BORDER-BOTTOM: #333333 1px solid" colSpan=4 
            height=35><div align="center"><B><FONT 
        color=#ffffff><%=WebName & ChannelName%>管理系统</FONT></B></div></TD>
              </TR>
              <TR> 
                <TD colSpan=4 height=20>&nbsp;</TD>
              </TR>
              <TR> 
                <TD noWrap align=middle colSpan=3 height=30><FONT class=s 
            color=#000099><B>用户名:&nbsp;</B></FONT> </TD>
                <TD noWrap align=middle height=30><INPUT name=username class=textbox maxLength=12></TD>
              </TR>
              <TR> 
                <TD noWrap align=middle colSpan=3 height=30><FONT class=s 
            color=#000099><B>密&nbsp;&nbsp;码:&nbsp;</B></FONT> </TD>
                <TD noWrap align=middle height=30><INPUT name=password type=password 
            class=textbox maxLength=12></TD>
              </TR>
              <TR> 
                <TD noWrap align=right colSpan=4 height=50><INPUT name="submit" type=submit class="Bsbttn" value=" 确定 "> 
                  &nbsp; <input name="reset" type="reset" class="Bsbttn" id="reset" value=" 重写 "> 
                  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD>
              </TR>
            </TBODY>
          </TABLE></TD>
        <TD width=1 bgColor=#ffffff height=5></TD>
        <TD width=1 bgColor=#ffffff height=5></TD>
        <TD width=1 bgColor=#ffffff height=5></TD>
      </TR>
      <TR> 
        <TD width=1 bgColor=#333333 height=120></TD>
        <TD width=1 bgColor=#666666 height=120></TD>
        <TD width=1 bgColor=#999999 height=120></TD>
      </TR>
      <TR> 
        <TD colSpan=4 align="right" valign="top"> <TABLE cellSpacing=0 cellPadding=0 width=345 border=0>
            <TBODY>
              <TR> 
                <TD bgColor=#333333 height=1></TD>
              </TR>
              <TR> 
                <TD bgColor=#666666 height=1></TD>
              </TR>
              <TR> 
                <TD bgColor=#999999 height=1></TD>
              </TR>
            </TBODY>
          </TABLE></TD>
      </TR>
      <TR> 
        <TD height=25 colSpan=4 align="right" valign="center">&nbsp;</TD>
      </TR>
      <TR> 
        <TD colSpan=4 height=25><DIV align=center></DIV></TD>
      </TR>
    </TBODY>
  </TABLE>
  
</form>
</body></html>