OK.
Add the code above to the page that you only want the Admins to be able to access anywhere below the line
<!--#include file="common.asp"--> |
You mentioned not wanting the member listings viewable so this would be members.asp.
I'll break it down for you;
The If clause checks if the logged in user is an Admin or not (this is determined from pages linked to via the common.asp hence putting the code after that include).
If the logged in user is not and Admin, the server will close access to the database and redirectr the user to the page specified (in this case default.asp which is the main forum page).
If the logged in user is an Admin, the page will continue to load.