I got a forum closed page. Like dj said, download the database (if
Access) and look in the tblConfiguration for the check to remove the
lock.
As a side note, on some sites, I've implemented the following code to
"close" a database driven area. This stops the site before the database
connection is opened. Potentially, locking the database using the
database means it it still getting "hit" and could result in corruption
if you are doing maintenance while it is getting hit for the lock
message. The downside to this method is that you have to FTP the unlock
file.
Note:
This assumes you have a page called unlock_message.asp which alerts the
user that the site/area is locked. Also, in this code, I am killing the
session variable which you may/may not be using depending on your
implementation.
If you were to use this on the forum, I would suggest placing it in
the /forum/includes/header.asp so it is encountered before any
database connections are made.
Based loosely on
WWG's login script.
<%
'Lock access to the Admin Module
'Declare variables not in common.asp
Dim strLocked
strLocked = "No" 'Change this to yes or no
If strLocked = "Yes" Then
Session("blnIsUserGood") = False 'Kills session variable if used
Response.AddHeader "Refresh", "0;URL=Lock_Message.asp"
End If
%>
|