%@ CodePage=65001 Language="VBScript"%> <% option explicit %> <% GetConfigVariables SetupDatabase dim rsForums, sResult, iCatLock, bFirstRecord, iCategoryID, vCalendarEvents, rsLastThread, SQL, bIsAdmin, iArraysize dim bIsModerator, bInRestrictedList, sUserColorCoding, i, vCategoryInfo, bStarterRow, sModerators bStarterRow = true set rsForums = server.createObject("ADODB.Recordset") set rsLastThread = server.createObject("ADODB.Recordset") if (bBBSRegistrationRequired = 1 or bBBSAuthorizationRequired = 1) and (sLogonType <> "ok") then response.redirect sValidatedBaseURL & "/logon.asp?error=needregistration" end if if request("showall") = "true" then response.cookies("catlock") = "" response.cookies("catlock").path = "/" end if bFirstRecord = True if len(Trim(request.querystring("catlock"))) > 0 then iCatLock = validateNumeric(request.querystring("catlock")) else iCatLock = validateNumeric(request.cookies("catlock")) end if if iCatLock <> 0 then iCategoryID = iCatLock vCategoryInfo = GetCategoryInfo (iCategoryID) if (vCategoryInfo(CA_SchemeDefault) <> 0 and sStyleID = 0) or (vCategoryInfo(CA_ForceScheme) = 1) then sStyleID = vCategoryInfo(CA_SchemeDefault) UpdateImageVariables end if end if %>
| " & sBBSName & " info center | ||
| "
if bBBSSHowMostRecentUser = 1 then
rsInfoCenter.Open "select TOP 1 [username] from [members] order by [dateregistered] DESC;", dbConnection, adOpenForwardOnly, adLockReadOnly
if not(rsInfoCenter.EOF) then
response.write sBBSName & " welcomes our newest user, " & CreateUsernameLink(rsInfoCenter(0).value) & ValidateField(rsInfoCenter(0).value) & "! " end if rsInfoCenter.close end if if bBBSSHowCountStatistics = 1 then rsInfoCenter.open "select count(*) as totalforums, sum([postcount]) as totalposts, sum([threadcount]) as TotalThreads from [forums]", dbConnection, adOpenForwardOnly, adLockReadOnly if not(rsInfoCenter.EOF) then response.write "There are " & rsInfoCenter(1).value & " posts in " & rsInfoCenter(2).value & " threads across " & rsInfoCenter(0).value & " forums. " end if rsInfoCenter.Close rsInfoCenter.open "select count(*) as totalusers from [members]", dbConnection, adOpenForwardOnly, adLockReadOnly if not(rsInfoCenter.EOF) then response.write "There are " & rsInfoCenter(0).value & " registered users. " end if rsInfoCenter.Close end if if bBBSShowCalendarEvents = 1 and bDisableCalendar = 0 then response.write " " vCalendarEvents = ListDateEvents(iArraySize, -1, 1, 1, 0, 0, date, dateadd("d",7 ,date), sUsername, sPassword, 0) if iArraySize > 0 then response.write "Upcoming Events :
" end if end if if bBBSShowOnlineRegistered = 1 then response.write " Online registered users: " & ShowOnlineRegistered(0) & " " end if response.write " |