<!-- #include file="../../inc/conn.asp" -->
<%
set rs=server.createobject("adodb.recordset")
sql="select web_name,web_copyright from Web_Setting"
rs.open(sql),conn,1,1
web_name=rs("web_name")
web_copyright=rs("web_copyright")
rs.close
set rs=nothing
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
       <meta http-equiv="Content-Type" content="text/html; charset=GB2312"/>
<title>请求被拒绝 - <%=web_name%></title>
       <style type="text/css">
          body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td { 
             margin:0;
             padding:0;
          }
          table {
             border-collapse:collapse;
             border-spacing:0;
          }
          fieldset,img { 
             border:0;
          }
          address,caption,cite,code,dfn,em,strong,th,var {
             font-style:normal;
             font-weight:normal;
          }
          ol,ul {
             list-style:none;
          }
          caption,th {
             text-align:left;
          }
          h1,h2,h3,h4,h5,h6 {
             font-size:100%;
             font-weight:normal;
          }
          q:before,q:after {
             content:'';
          }
          abbr,acronym { border:0;
          }
         
          body{
             background:#eee;
          }
          .wrapper{
             width:940px;
             background:#eee;
             margin:0 auto;
          }
          .header{
             height:220px;
          }

          .header h1{
            background:url('./img/ie6/ie6-saygoodbye.png');
            width:448px;
            margin-left:40px;
            margin-top:80px;
            height:87px;
            float:left;
         }


         .logo{
            background:url('./img/ie6/fuck-ie6.jpg');
            width:270px;
            height:215px;
            margin-right:40px;
            float:right;
         }

         .content{
            background:#eee url('bg.png') no-repeat;
            width:780px;
            height:368px;
            position:relative;
            padding: 80px 70px;
            
         }

         .content p {
	/*padding:10px;*/
            padding-bottom:0px;
	margin-bottom: 20px;
	line-height: 24px;
	text-indent: 2em;
	color:#555;
	font-family: "Microsoft YaHei",SimHei;
	font-size: 15px;
         }

         .content a {
           color: #666;
           text-decoration: underline;
         }
         .content a:hover {
           color: #1a6cc1;
         }
         
         .browsers{
            width:358px;
            height:96px;
            left:50px;
            bottom:50px;
         
         }

         .footer{
            margin-bottom:50px;
         }

         .footer p{
	color:#888;
	font-size:12px;
	text-align:center;
	font-family: "Microsoft YaHei",SimHei; 
         }

         .browsers-1{
            background: url('browsers.jpg') no-repeat 10px 0px ;
            float:left;
            display:block;
            width:80px;
            height:90px;
         
         }
         .browsers-2{
            background: url('browsers.jpg') no-repeat -85px 0px ;
            display:block;
            float:left;
            width:80px;
            height:90px;
         }

         .browsers-3{
            background: url('browsers.jpg') no-repeat -175px 0px ;
            display:block;
            width:80px;
            float:left;
            height:90px;
         }

         .browsers-4{
            display:block;
            float:left;
            background:url('browsers.jpg') no-repeat -266px 0px ;
            width:80px;
            height:90px;
         }





       </style>    
       
</head>

<%
userip = Request.ServerVariables("HTTP_X_FORWARDED_FOR") 
If userip = "" Then 
userip = Request.ServerVariables("REMOTE_ADDR") 
end if

IPArray=Split(userip,".",-1,1)
For i=0 To 3
	tIp = tIp +IPArray(i)*256^(3-i)
Next
ip=tIp

set rs=server.createobject("adodb.recordset")
query="select country,city from user_ip where (ip1<=" &ip& " and ip2>=" &ip&")"
rs.open query,conn,1,1
ipdili=rs("country")&rs("city")
rs.close
set rs=nothing
%>

<body>
      <div class='wrapper'>
      <div class='content'>
         <p style="text-indent: 0">亲爱的朋友：

       <p>非常抱歉， <font color="#DC4900"><%=web_name%></font> 黑名单系统已启用，这意味着您的请求被 <font color="#DC4900"><%=web_name%></font> 拒绝； </p>
       <p>系统拦截了你所在的地区，您将无法正常浏览 <font color="#DC4900"><%=web_name%></font>；</p>
<p>您的IP：<font color="#DC4900"><%=userip%></font>&nbsp; 地理位置：<font color="#DC4900"><%=ipdili%></font></p>
<p align="right">感谢您对<font color="#DC4900"><%=web_name%></font>的一贯支持！</p>     
         <div class='browsers'>
         
         <img src="../../img/piccolo-logo.png"></div>
      </div>
   </div>

   <div class='wrapper'>
      <div class='footer'>
         <p><%=web_copyright%></p>
      </div>
   </div>
</body>

</html>
<!-- #include file="../../inc/close.asp" -->
