// *** Restrict Access To Page: Grant or deny access to this page MM_authorizedUsers=""; MM_authFailedURL="login.cfm"; MM_grantAccess=false; MM_Session = IIf(IsDefined("Session.MM_Username"),"Session.MM_Username",DE("")); if (MM_Session IS NOT "") { if (true OR (Session.MM_UserAuthorization IS "") OR (Find(Session.MM_UserAuthorization, MM_authorizedUsers) GT 0)) { MM_grantAccess = true; } } if (NOT MM_grantAccess) { MM_qsChar = "?"; if (Find("?",MM_authFailedURL) GT 0) MM_qsChar = "&"; MM_referrer = CGI.SCRIPT_NAME; if (CGI.QUERY_STRING IS NOT "") MM_referrer = MM_referrer & "?" & CGI.QUERY_STRING; MM_authFailedURL_Trigger = MM_authFailedURL & MM_qsChar & "accessdenied=" & URLEncodedFormat(MM_referrer); } SELECT * FROM events WHERE Username = '#Recordset1__MMColParam#' Recordset1_NumRows = Recordset1.RecordCount; MM_paramName = ""; // *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters // create the list of parameters which should not be maintained MM_removeList = "&index="; If (MM_paramName NEQ "") MM_removeList = MM_removeList & "&" & MM_paramName & "="; MM_keepURL=""; MM_keepForm=""; MM_keepBoth=""; MM_keepNone=""; // add the existing URL parameters to the MM_keepURL string MM_params=ListToArray(CGI.QUERY_STRING,"&"); For (i=1; i LTE ArrayLen(MM_params); i=i+1) { If (FindNoCase("&" & GetToken(MM_params[i],1,"=") & "=",MM_removeList) Is 0) MM_keepURL = MM_keepURL & "&" & MM_params[i]; } // add the existing Form variables to the MM_keepForm string If (IsDefined("FORM.FieldNames")) { MM_params=ListToArray(FORM.FieldNames,","); For (i=1; i LTE ArrayLen(MM_params); i=i+1) { If (FindNoCase("&" & MM_params[i] & "=",MM_removeList) Is 0) MM_keepForm = MM_keepForm & "&" & LCase(MM_params[i]) & "=" & URLEncodedFormat(Evaluate("FORM." & MM_params[i])); } } // create the Form + URL string and remove the intial '&' from each of the strings MM_keepBoth = MM_keepURL & MM_keepForm; If (MM_keepURL NEQ "") MM_keepURL = RemoveChars(MM_keepURL,1,1); If (MM_keepForm NEQ "") MM_keepForm = RemoveChars(MM_keepForm,1,1); If (MM_keepBoth NEQ "") MM_keepBoth = RemoveChars(MM_keepBoth,1,1); WI - Events Calendar
Wildlife International Home  |  Emergency  |  Site Help  |  Contact Us
Rehabilitation Gentoo Penguins
Home   Events
Events for #Session.MM_Username#
Event
Host
Start Date
Edit Event
Delete Event
#Recordset1.Name# #Recordset1.Org# # LSDateFormat(Recordset1.Eventdate) #