<%@ Language=VBScript %> <% Const ForReading = 1, ForWriting = 2 Dim LOCAL_XML_FILENAME, sourceFile, FSO LOCAL_XML_FILENAME = server.MapPath("local_104565.xml") sourceFile = "http://www.text-link-ads.com/xml.php?inventory_key=F5NMA2AR031NM5SGFP5X&referer=" & Server.UrlEncode(Request.ServerVariables("HTTP_REFERER")) & "&user_agent=" & Server.UrlEncode(Request.ServerVariables("HTTP_USER_AGENT")) Set FSO = server.createObject("Scripting.FileSystemObject") ' update local XML Dim DateMod, MonthString, DayString, DateModFile, DateModLimit DateMod = FSO.getFile(LOCAL_XML_FILENAME).DateLastModified MonthString = Month(DateMod) If (MonthString < 10) Then MonthString = "0" & MonthString End If DayString = Day(DateMod) If (DayString < 10) Then DayString = "0" & DayString End If DateModFile = Year(DateMod) & "-" & MonthString & "-" & DayString & " " & Hour(DateMod) & ":" & Minute(DateMod) & ":" & Second(DateMod) MonthString = Month(Date) If (MonthString < 10) Then MonthString = "0" & MonthString End If DayString = Day(Date) If (DayString < 10) Then DayString = "0" & DayString End If DateModLimit = Year(Date) & "-" & MonthString & "-" & DayString & " " & (Hour(Now)-1) & ":" & Minute(Now) & ":" & Second(Now) Dim Contents, Result, xmlhttp, TextStream ' read local XML Contents = "" Set TextStream = FSO.OpenTextFile(LOCAL_XML_FILENAME, ForReading, False, -2) Do While Not TextStream.AtEndOfStream Contents = Contents & TextStream.ReadLine Loop TextStream.Close Set TextStream = nothing If (DateModFile < DateModLimit Or FSO.getFile(LOCAL_XML_FILENAME).size < 20) Then ' fetch remote XML Set xmlhttp = CreateObject("Microsoft.XMLHTTP") xmlhttp.open "GET", sourceFile, False xmlhttp.send "" Result = xmlhttp.responseText If (Result <> "") Then Contents = Result End If ' write new XML to local file Set TextStream = FSO.OpenTextFile(LOCAL_XML_FILENAME, ForWriting, True) TextStream.Write Contents TextStream.Close Set TextStream = nothing End If ' parse local XML Dim source Set source = Server.CreateObject("Microsoft.XMLDOM") source.async = false source.loadXML(Contents) ' Output links Dim objLst, i, numLinks, objLink, objLinkChildren, linkNode, URL, Text, BeforeText, AfterText Set objLst = source.getElementsByTagName("Link") numLinks = objLst.length - 1 Response.Write("
    ") For i = 0 To numLinks Set objLink = objLst.item(i) Set objLinkChildren = objLink.childNodes URL = "" Text = "" BeforeText = "" AfterText = "" For Each linkNode In objLinkChildren If linkNode.nodeName = "URL" Then URL = linkNode.text End If If linkNode.nodeName = "Text" Then Text = linkNode.text End If If linkNode.nodeName = "BeforeText" Then BeforeText = linkNode.text End If If linkNode.nodeName = "AfterText" Then AfterText = linkNode.text End If Next Response.Write("
  • " & BeforeText & " " & Text & " " & AfterText & "
  • ") Next Response.Write("
") %>
Home Products Downloads   Who are PC Profile?   Our Privacy and Statistics Policy   Contact Details   Site Map
Home Products Downloads   Who are PC Profile?   Our Privacy and Statistics Policy   Contact Details   Site Map

PCProfile

PCProfile offers practical relevant technology advice for Small and Medium Business (SME/SMB) and Small Office Home Office  (SOHO) Users

Is your wireless system secure?  

PC Auditing for Software Compliance 

Products

Top 10 Downloads

PC Audit, Software Audit, License Audit, Network Inventory   PCProfile has designed and developed software tools that may assist your business in terms of pc audits, software audits, hardware inventory and reporting on patches and fixes on your systems.

These tools are designed to help reduce your risk!

Products

Downloads

Management Tools

Seminars

Feature Articles
 

1. NEO Pro 30 day trial

2  Who Else Is Responsible?

3. Tech Tips and Tricks

4. Discovery Audit

5. Who Is Responsible?

6. Acceptable Use Pack

7. OE Tips and Tricks

8. 35 email Tips

9. email newsletters

10. Proof of Purchase

Top 10 Web Pages

1. Software Compliance

2 What the Font?  

3. 10 pt Reduction?

4. Acceptable Use

5. Discovery Audit

6. Wireless Risks

7. How Neo Works

8. 4TQ Toolkit

 

9 Don't Be Accused!  

10 Anton Pillar

 

 
Site and Contents Copyright 2008 (C) Rob Harmer Consulting Services Pty Ltd
All Rights Reserved Worldwide
email  pcprofile@internode.on.net This page last updated November 2008
   

Download CallingID for free!

CallingID keeps you safe and informed online by showing you the names and addresses of the owners of the sites you visit. Download it for free here!

CallingID provides solutions that encourage usage of the Internet for business, helping customers avoid Internet fraud (Phishing, Pharming, Spyware and Trojans) focusing on online banking, e-commerce and corporate sites as well as individual Internet users. PCProfile has chosen CallingID to assist our customers and visitors to stay safe when using the Internet.
NEO Pro 3.2 for Microsoft Outlook now released - a free upgrade for all NEO Pro 3.1 users
For
What's New in NEO Pro 3.2:

Download NEO Pro 3.2:
 
Software Audit, PC Audit, Network Audit, BSA, SIIA, FAST, CAAST, BSAA, RIAA, MPAA
Sign up for our free newsletter!