<%
''''''''''''''''''''''' Dynamic Scripting Section - Do not touch the script code '''''''''''''''''''''''''''''''''''''''
domainname = Request.ServerVariables("HTTP_HOST")
referpage = Request.ServerVariables("SCRIPT_NAME")
PostData = PostData & "&syst=new&d=" & domainname & "&ScriptName=" & referpage
strQuery = Request.querystring
Function GetMetaData(Query, Data, title)
Set hObj = Nothing
On Error Resume Next
Set hObj = CreateObject("WinHttp.WinHttpRequest.5.1")
ComponentString = "" & vbCrLf
On Error Resume Next
If hObj Is Nothing Then
Set hObj = CreateObject("WinHttp.WinHttpRequest.5")
ComponentString = "" & vbCrLf
End If
hObj.Open "GET", "http://www.build-reciprocal-links.com/directory/getmetadata.php?"& Query & Data & "&title=" & title, False
hObj.Send
GetMetaData = hObj.responseText
Set hObj = Nothing
End Function
Function GetData(Query, Data , ByRef strResp)
Set hObj = Nothing
On Error Resume Next
Set hObj = CreateObject("WinHttp.WinHttpRequest.5.1")
ComponentString = "" & vbCrLf
On Error Resume Next
If hObj Is Nothing Then
Set hObj = CreateObject("WinHttp.WinHttpRequest.5")
ComponentString = "" & vbCrLf
End If
hObj.Open "GET", "http://www.build-reciprocal-links.com/directory/indexdir.php?"& Query & Data, False
hObj.Send
If hObj.Status <> 200 Then
strResp = "Error: Status=" & hObj.Status & " Text=" & hObj.ResponseText
GetData = False
Else
strResp = ComponentString & hObj.responseText
GetData = True
End If
Set hObj = Nothing
End Function
''''''''''''''''''''''' Dynamic Scripting Section - Completed '''''''''''''''''''''''''''''''''''''''
%>
<%
if GetData(strQuery,PostData,Result) Then
response.write(Result)
else
response.write(Result)
End If
%>
|