%@ LANGUAGE="VBSCRIPT" %> <% Response.Buffer = True %> <% '*********************************************************************** ' System : ASPBanner Unlimited Version 8.0 ' Author : Christopher Williams of CJWSoft www.CJWSoft.com ' ' COPYRIGHT NOTICE ' ' See attached Software License Agreement ' ' (c) Copyright 2000 - 2005 by CJWSoft. All rights reserved '*********************************************************************** %> <% ' Done to fix an odd bug when you log into this page for the 1st time ' For some reason some of the data would not be displayed If Session("BeenHere") <> "Yes" Then Session("BeenHere") = "Yes" Response.Redirect("bannerstats.asp") End If %>
<% =NameDisplayed %> |
<% Function FileFound(FileName) Dim FileObj FileFound = True Set fs = CreateObject("Scripting.FileSystemObject") On Error Resume Next Set FileObj = fs.OpenTextFile(FileName, 1, False, 0) If Err.Number <> 0 Then Err.Clear FileFound = False Exit Function End If FileObj.Close Set fs = Nothing End Function Set ConnBanner = Server.CreateObject("ADODB.Connection") ConnBanner.Open Application("BannerConnectionString") Set CmdBannerTemp = Server.CreateObject("ADODB.Command") Set CmdListBanners = Server.CreateObject("ADODB.Recordset") CmdBannerTemp.CommandText = "SELECT Banners.* FROM Banners WHERE (User_ID = " & User_ID & ")" CmdBannerTemp.CommandType = 1 Set CmdBannerTemp.ActiveConnection = ConnBanner CmdListBanners.Open CmdBannerTemp, , 0, 1 %> <% If CmdListBanners.EOF Then %> You Have No Banners In The System Under This Login Click Here And Log Off... Then Return To This Page As a Valid Banner User <% Response.End %> <% End If %> <% If Not CmdListBanners.EOF Then ShowTableEnd = True %>
|