% function preparemsg(what) a=what a=replace(a,"\","\\") a=replace(a,"/","\/") a=replace(a,vbclrf,"\n") a=replace(a,chr(34),"\"&chr(34)) a=replace(a,"'","\'") a="document.write('"&a&"');" preparemsg=a end function function dohtml(what) dohtml=server.HTMLEncode(what) end function zoneid=request("z") xlaparsing=request("xlaparsing") if xlaparsing<>"" then response.buffer=true response.flush response.write "" else response.ContentType="application/x-javascript" end if if zoneid="" or not(isnumeric(zoneid)) then response.end nocache=request("nocache") fdate=request("fdate") if fdate<>"" then zonecache="" '/// Check Protection /// callingurl=lcase(Request.ServerVariables("HTTP_REFERER")) if zoneprotection<>"any" and instr(callingurl,lcase(applicationurl))=0 and callingurl<>"" then specialurls=split(lcase(specialurls),";") for x=0 to ubound(specialurls) if len(specialurls(x))>5 then if instr(specialurls(x),"http://")=0 then specialurls(x)="http://"&specialurls(x) if instr(callingurl,specialurls(x))=1 then takeaction=true exit for end if end if next if zoneprotection="restricted" and takeaction=false then response.end if zoneprotection="banned" and takeaction=true then response.end end if '//// Override Default Parameters articlespz=request("h") 'Number of headlines 0-Unlimited showsummary=request("ss") 'Show Summary Y,N showsource=request("sc") 'Show Source Y,N showdates=request("sd") 'Show Dates Y,N showtn=request("st") 'Show Thumbnail Y,N displayhoriz=request("d") 'Display V-Vertical, H-Horizontal textalign=request("al") 'Align cellcolor=request("cc") 'Cell Color targetframe=request("target") 'Targetframe zonefont=request("font") 'Font fontcolor=request("color") 'Font Color fontsize=request("size") 'Font Size isarchive=request("isarchive") 'List only Archives stdate=request("stdate") 'With Start Date Like edate=request("edate") 'With End Date Like pdate=request("pdate") 'With Posted Date Like hdate=request("hdate") 'With Headline Date Like sort=request("sort") 'Sorting Criteria ord=request("ord") 'Order (asc,desc) css=request("css") 'Class Style rmore=request("rmore") 'Read More Display '/// Zone Cache /// if zonecache<>"" then dim resultfile resultfile="" call getcache("zone",nocache) end if today=year(now)&"/"&right("0"&month(now),2)&"/"&right("0"&day(now),2)&" "&right("0" & hour(now),2)&":" & right("0" & minute(now),2) if fdate<>"" then today=fdate psql="select * from vArticlesZones where " if isnumeric(zoneid) then psql=psql & "zoneid="&zoneid if isarchive="" or isarchive="n" then psql=psql &" and status=1 " else psql=psql & " and status=4" if stdate="" and edate="" and pdate="" and hdate="" then psql=psql & " and startdate<='"&today&"z' and (enddate>='"&today&"z' or enddate='-')" else if stdate<>"" then psql=psql & " and startdate like '"&stdate&"%'" if edate<>"" then psql=psql & " and enddate like '"&edate&"%'" if pdate<>"" then psql=psql & " and posted like '"&pdate&"%'" if hdate<>"" then psql=psql & " and headlinedate like '"& hdate & "%'" end if if sort<>"" then psql=psql & "order by "&sort else psql=psql & " order by startdate " if ord<>"" then psql=psql & " " & ord set conn=server.createobject("ADODB.Connection") conn.open connection call archivenow("") set rs=conn.execute(psql) if rs.eof then if nonewsmessage<>"" then articlelist="