DOCUMENTATION FOR MAIN.PHP



File Purpose:File Depedencies
The main file for the system that calls necessary modules when needed.secure.php, modules/config_mod_list.php, root.inc.php, inculde/header.inc.php, include/footer.inc.php, nav.php

External Function callLocation of Definiton
mysql_error()PHP Built-in Function.

External Variable NamePurpose
SESSION[]to keep track of user information.

Internal Function callPurpose
n/an/a

Class NamePurpose
n/an/a

Local VariablesPurpose
$error_messagecontains the error string "Session Expired"
$long_error_messagecontains a more detailed error string.
$qcontains results of a query.
$rcontains the associative array linked to the query "q".
$listcontains the list of control points available to the user.

CommentsThis file validates the user session, calls the module requested by the user renders the main page in the system.