<%@ LANGUAGE="VBSCRIPT" %> <% result=Instr(1,request.ServerVariables("http_referer"),request.servervariables("http_host"),1) if result = 0 or result = null then response.redirect "manager-login.asp" end if if session("sid") <> "top" then response.redirect "manager-login.asp" end if %> <% a = server.mappath("adbanner.js") b = server.mappath("ad.txt") const forreading=1, forwriting=2, forappending=8 const tristateusedefault=-2, tristateture=-1, tristatefalse=0 set fs = createobject("scripting.filesystemobject") if request("hf") = "y" then newad = "document.writeln('');" set ts = fs.createtextfile(b, true) ts.write newad fs.copyfile b, a, true ts.close Response.write"" Response.write "广告代码已经成功设置 >>>" Response.write "*请按此返回..." Response.end else fs.copyfile a, b, true set f = fs.getfile(b) set ts = f.openastextstream(forreading, tristateusedefault) s = ts.readline ts.close %>
目前的广告代码:

广告条链接的网址http://
广告条图片的地址http://

 
<% end if %>