%
' *** Restrict Access To Page: Grant or deny access to this page
MM_authorizedUsers=""
MM_authFailedURL="default.asp"
MM_grantAccess=false
If Session("MM_Username") <> "" Then
If (true Or CStr(Session("MM_UserAuthorization"))="") Or _
(InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"))>=1) Then
MM_grantAccess = true
End If
End If
If Not MM_grantAccess Then
MM_qsChar = "?"
If (InStr(1,MM_authFailedURL,"?") >= 1) Then MM_qsChar = "&"
MM_referrer = Request.ServerVariables("URL")
if (Len(Request.QueryString()) > 0) Then MM_referrer = MM_referrer & "?" & Request.QueryString()
MM_authFailedURL = MM_authFailedURL & MM_qsChar & "accessdenied=" & Server.URLEncode(MM_referrer)
Response.Redirect(MM_authFailedURL)
End If
%>
<%
Dim rsListing
Dim rsListing_numRows
Set rsListing = Server.CreateObject("ADODB.Recordset")
rsListing.ActiveConnection = MM_connDUbanner_STRING
rsListing.Source = "SELECT * FROM BANNERS ORDER BY BAN_DATED DESC"
rsListing.CursorType = 0
rsListing.CursorLocation = 2
rsListing.LockType = 1
rsListing.Open()
rsListing_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index
Repeat1__numRows = -1
Repeat1__index = 0
rsListing_numRows = rsListing_numRows + Repeat1__numRows
%>
IMAGE
NAME
DATED
SIZE
CLICKS
EDIT
<%
While ((Repeat1__numRows <> 0) AND (NOT rsListing.EOF))
%>