home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1998 February
/
CHIP_2_98.iso
/
software
/
pelne
/
optionp
/
iis4_07.cab
/
MakeCDF.cdx
< prev
next >
Wrap
Text File
|
1997-11-01
|
2KB
|
66 lines
<% Option Explicit %>
<% Response.Buffer = True %>
<% Dim strPushURL %>
<% strPushURL = GetPrefixValue() %>
<!--#include file=../libGlobalFuncs.inc-->
<?XML version="1.0"?>
<CHANNEL HREF="<%=strPushURL%>/Welcome.asp">
<TITLE>Exploration Air News</TITLE>
<ABSTRACT>The Latest Exploration Air News</ABSTRACT>
<LOGO HREF="<%=strPushURL%>/Images/ExairNews.gif" Style="IMAGE" />
<SCHEDULE>
<INTERVALTIME HOUR="1" />
</SCHEDULE>
<%
GetChannelItems
Response.Flush
%>
</CHANNEL>
<%
' GetChannelItems uses the FileSystem Object to access a file
' on the server which holds all the latest ExAir headlines.
Sub GetChannelItems
On Error Resume Next
Dim fso, prFile, strTitle, strLink,strCategory
Dim CRLF, QUOTE
CRLF = vbCr
QUOTE= Chr(34)
Set fso = Server.CreateObject("Scripting.FileSystemObject")
Set prFile = fso.OpenTextFile(Server.MapPath("../pr/prFileList.txt"))
If Err.Number <> 0 Then
Exit Sub
End If
Do Until prFile.AtEndOfStream
' Get headline
strTitle = prFile.ReadLine
If prFile.AtEndOfStream Then Exit Do
' Get URL
strLink = "../pr/" & prFile.ReadLine
' Get Category
strCategory = prFile.ReadLine
' Write response
Response.Write("<ITEM HREF=" & QUOTE & strPushURL & "/" & strLink & QUOTE & ">" & CRLF)
Response.Write(" <TITLE>" & strTitle & "</TITLE>" & CRLF)
Response.Write(" <ABSTRACT>" & strCategory & " News: " & strTitle & "</ABSTRACT>" & CRLF)
Response.Write("</ITEM>" & CRLF)
Response.Write(CRLF)
Loop
End Sub
%>