Back to FaqMan

Code Documentation

The files which make up FaqMan, and the purpose of their functions are described here

Table of Contents

addfaq.cgi

addfaq.cgi handles the addition of new faqs. It initially presents an empty form, determinied by the prescence of CGI variables. After the form is filled ans submitted, the information is checked for errors and piped through a spellcheck function inside faqman.pm. The entered data is shown to the user, where they are asked to double check it.

All form data is stored in hidden variables as well. Comments to is-routers and those to be posted with the faq on the web are taken. When the user submits the form, all data is passed to check_submit.cgi
Top


admin.cgi

admin.cgi handles all of the administrative displays and actions. It uses a category flag to do this, with no category being admin home. Each time the script runs it checks a long set of if statements to determine which action to take or interface to display. Possible actions are:

Possible interfaces are:

admin.cgi Function List


Top

check_submit.cgi

check_submit.cgi is the file which allows for both modfaq.cgi and addfaq.cgi to actually submit faqs. It recieves a type variable and all FAQ data, along with optional comments, via post from one of these two CGIs.

check_submit then sends/posts to the web any comments which are present and either adds the faq or creates a pending faq. Finally, it displays to the user a copy of the FAQ exactly as they have entered it for one last look over.
Top


comment.cgi

This cgi takes a filename from cgi and returns the pending or new version of that faq for viewing/commenting.

comment.cgi also takes input from it's own comment form and posts any provided comments.
Top


faqhome.cgi

The index or home page for FaqMan. This page initially shows a search location and three faq lists: new, pending, and owned.

The new and pending lists have links which allow the user to view and comment upon changes to the FAQs.

The owned list displays all faqs the user owns and gives them links to perform actions on them.

Two of these actions: "Request Approval" and "Request Boneyard" are handled by faqhome.cgi itself. They send an email to the administrator with the appropriate request.

Modify Faq links direct the user to modfaq.cgi


Top

faqman.pm

This perl module is included in all web scripts which make up FaqMan, and provides all access to the database in a long series of specialized functions.