<%

session("admin__user")=Request.Cookies("adminuser")
session("admin__pass")=Request.Cookies("adminpass")
session("dJ")=Request.Cookies("admindj")

adminuser=Request.Cookies("adminuser")
adminpass=Request.Cookies("adminpass")
admindj=Request.Cookies("admindj")

if adminuser="" or adminpass="" then
  Response.Redirect "szwyadmin/login.asp?id=8"
end if
%>
<%
sss=LCase(request.servervariables("QUERY_STRING"))
   if instr(sss,"select")<>0 or instr(sss,"inster")<>0 or instr(sss,"delete")<>0 or instr(sss,"(")<>0 or instr(sss,"'or")<>0 then
     response.write "<BR><BR><center>你的网址不合法"
     response.end
   end if

xuasmdb="data/#fdaeg35@#gds.asp"

set conn=server.CreateObject("adodb.connection")
DBPath = Server.MapPath(xuasmdb)
conn.open "provider=microsoft.jet.oledb.4.0; data source="&DBpath



ON ERROR RESUME NEXT

userip = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
If userip = "" Then userip = Request.ServerVariables("REMOTE_ADDR")

set rs = Server.CreateObject("ADODB.RecordSet")
rs.Open "select zuziip from [config] where zuziip like '%"&zuziip&"%'",conn,1,1
if rs.recordcount<>0 then
	zuziip=rs("zuziip")&chr(13)
	zuziip=replace(zuziip," ","")
	zuziip=replace(zuziip,chr(10),"")
	'zuziip=replace(zuziip,".","")
	'userip2=replace(userip,".","")
	zzip=split(zuziip,chr(13))
	'Response.Write "ubound(zzip):"&ubound(zzip)&"<BR>"
	'Response.Write "zzip(0):"&zzip(0)&"<BR>"
	'Response.Write "zzip(1):"&trim(zzip(1))&"<BR>"
	for i=0 to ubound(zzip) 
		if userip=trim(zzip(i)) then
			er=1
			'Response.Write userip&"　"&zzip(i)&"<BR>"
		end if
	next

	if er=1 then
		Response.Write "<BR><BR><BR><BR><Center><font style='font-size:10.5pt'>你所在IP被系统阻止！("&userip&")</font><BR><BR></center>"
		conn.close:set conn=nothing
		Response.end
	end if
end if

%>
<%


user=trim(session("admin__user"))
pass=session("admin__pass")

sql = "select * from admin where [user]='"&adminuser&"' and [pass]='"&adminpass&"'"
Set rs = Server.CreateObject("ADODB.RecordSet")
rs.Open sql,conn,1,1
if rs.recordcount=0 then
  Response.Redirect "login.asp?id=8"
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>上传图片</title>
<style type="text/css">
<!--
a {  font-family: "宋体"; font-size: 9pt; font-style: normal; line-height: 13pt; font-weight: normal; font-variant: normal; text-transform: none; color: #000000; text-decoration: none}
a:hover {  font-family: "宋体"; font-size: 9pt; font-style: normal; line-height: 13pt; font-weight: normal; font-variant: normal; text-transform: none; color: #000000; text-decoration: underline}
td {  font-family: "宋体"; font-size: 9pt; font-style: normal; line-height: 13pt; font-weight: normal; font-variant: normal; text-transform: none; color: #000000}
br {  font-family: "宋体"; font-size: 9pt; font-style: normal; line-height: 13pt; font-weight: normal; font-variant: normal; text-transform: none; color: #000000}
.bk { font-size: 9pt; border: 1px #082D71 solid}
body {  font-family: "宋体"; font-size: 9pt; font-style: normal; line-height: 13pt; font-weight: normal; font-variant: normal; text-transform: none}
.an {  font-family: "宋体"; font-size: 9pt; background-color: #F6f6f6; border: 1px #082D71 solid; color: #000000}
.xzy {  border: #082D71 solid; border-width: 0px 1px 1px}
.zx {  border: #082D71 solid; border-width: 0px 0px 1px 1px}
.sxz {  border: #082D71 solid; border-width: 1px 0px 1px 1px}
.s {  border: #082D71; border-style: solid; border-top-width: 1px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px}
.y {  border: #082D71; border-style: solid; border-top-width: 0px; border-right-width: 1px; border-bottom-width: 0px; border-left-width: 0px}
.font {  font-family: "Arial Black"; font-size: 14pt; color: #000000}
.x {  border: #082D71; border-style: solid; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 1px; border-left-width: 0px}
.z {  border: #082D71; border-style: solid; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 1px}
.sx {  border: #082D71; border-style: solid; border-top-width: 1px; border-right-width: 0px; border-bottom-width: 1px; border-left-width: 0px}
-->
</style>
</head>

<body bgcolor="#F6f6f6" leftmargin="0" topmargin="0">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<form name="form1" method="post" action="saveupload.asp" enctype="multipart/form-data">
  <tr>
      <td align="center">
<input type="file" name="file1" size=10 class="an">
<input type="submit" name="Submit" value="上传" class="an">
	</td>
  </tr>
  </form>
</table>

</body>
</html>
 
