Administration Area

This release was done by jeremy@gexweb.net.
I'm sure that ASP101 will make no warranties to it's usefulness or stability. Please email Jeremy with any questions or concerns.

This code acts as an online Admin area to assist in modifying the Forums database. Most of it is just a parallel to the original code with a few extra things. With it you can: add forums, delete forums, modify name, description and grouping of forums, modify messages and delete messages. Everything you ever wanted, right?

Security = Not very good. It is good enough for a small forum on an intranet, or personal website, but if you want to use it for ebay.com or something, you may want to upgrade it's security. It uses cookies, no session variables or anything. You basically put in your name and if your name is one of the names listed it will let you view the page, otherwise it will kick you back to the login page. The location of the validation subroutine is at the bottom of admin_common.asp. Currently the accepted names are: John Doe and Guest Guest. If you don't tell anyone about the admin area they will never know, since there aren't links to it on the regular forums page.

Just like the ASP 101 forum code, this code is pretty much plug and play. I was using an Access database and using the connection string:
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & SERVER.MapPath("database/forum.mdb") & ";"
So, if this won't work for you, make sure and change it.

I'm sure you'll find bugs, I wrote it all on Notepad. Bad syntax and all that, but it works. Please send feedback (good and bad). Thank you.

Filename Description
administration.asp the homesite for the Admin area
login.asp Start here to place the "security" cookie
login_process.asp places "security" and redirects to administration.asp
logout.asp removes "security" cookie
add_forum.asp If you want forums with 50 different subjects,
this will help!
delete_forum.asp Deletes a forum, accessible through admin_display_forum.asp
has a verify thing too. So you don't accidentally delete.
update.asp Change name, description and grouping of forum
admin_save_cookie.asp same as original, just admin version
admin_save_cookie_response.asp ditto
admin_display_forum.asp This has the delete forum feature added
admin_display_message.asp This has the delete message, and modify message features
admin_post_message.asp Same as original, just admin version
delete_message.asp Deletes message, accessible through admin_display_message.asp
modify_message.asp Change the message text
./includes/admin_common.asp Has Validate subroutines, and some other stuff.
./includes/admin_config.asp Another mirror, has Admin Table that you'll see on all the admin pages
./includes/mini-adovbs.inc I added two constants to help with deleting messages and forums