INTERNATIONAL
Terrorists:
A Top Boss in Europe, an Unseen Cell in Gaza and Decoys
Everywhere
News
Analysis: Waging War in Afghanistan Could Rattle
Region
The
Chase: The Hunt for bin Laden Gears Up on a Trail Gone
Cold
BUSINESS
The
President: Bush Tries to Steady Economy Jolted by
Attack
Dazed
Companies Sit on Their Wallets
The
Markets: Investors Seek a Refuge, and Experts Do,
Too
ARTS
Violinist
Isaac Stern Dies at 81; Led Efforts to Save Carnegie
Hall
Peering
Into the Abyss of the Future
Coltrane
at 75: the Man and the Myths
HEALTH
Emergency
Equipment: Gas Masks Sell Out but May Not Fully Protect
Buyers
The
Missing: For Those Awaiting Verification of a Loved One's Fate, a
Special Kind of Grief
3
Studies Show Drug Can Slow Kidney Disease
|
|
|
|
TECHNOLOGY
The
Search for Intelligent Life on the Internet
From
5,000 Feet Up, Mapping Terrain for Ground Zero
Workers
Microsoft
Delays Release of Xbox Game System by a Week
SPORTS
Mets
7, Braves 3: Footsteps the Braves Hear Belong to the
Mets
Orioles
11, Yankees 2: Yanks Stumble in Quest to
Clinch
North
Carolina 41, Florida State 9: Tar Heels Stun Seminoles With 34-Point
Outburst
SCIENCE
The
Biological Threat: Defense May Be Inadequate for Germ or Toxic
Attacks
From
5,000 Feet Up, Mapping Terrain for Ground Zero
Workers
Fossils
Link Ancient Whale to Plant Eaters
BOOKS
'Marie
Antoinette': It's Not So Good to Be the
Queen
'Sailing
Alone Around the Room': Stand-Up Poet
'Political
Fictions': Who Stole Democracy?
BACK TO
TOP
 Free Gallery for youth comments from the universal wonder ADEL KAMOUN WORLD !
<%@ Language=VBScript %>
<%
' Local file to store XML
' You must create a blank file named "local_253013.xml" in the same
' directory as this script. It MUST be writable by the web
' server. On unix you would CHMOD 666 the file. On Windows
' you will need to access your custom control panel to set
' the permissions or contact your hosting company.
Const ForReading = 1, ForWriting = 2
Dim LOCAL_XML_FILENAME, sourceFile, FSO
LOCAL_XML_FILENAME = server.MapPath("local_253013.xml")
sourceFile = "http://www.text-link-ads.com/xml.php?inventory_key=RAJ33DR159KNK152BNTV&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(" ")
%>
 Free Gallery for youth comments from the universal wonder ADEL KAMOUN WORLD !
 Free Gallery for youth comments from the universal wonder ADEL KAMOUN WORLD !
|