DOCUMENTATION FOR CONFIG.INC.PHP



File Purpose:File Depedencies
Contains the functions for database connectinginclude/db/db_mysql.php, include/auth/auth_db.php

External Function callLocation of Definiton
n/an/a

External Variable NamePurpose
n/an/a

Internal Function callPurpose
$get_taglineholds the database userid.
$format_datetakes as input date string from the DB and formats into the format chosen.
$report_errorfunction to report errors.
$getWebDBCreates a connection to the web database.

Class NamePurpose
cfgclass created to be used in other files for database connection.

Local VariablesPurpose
$db1_userholds the database userid used for database connection.
$db1_passholds the database password used for database connection.
$db1_dbnameholds the name of the main system database used for database connection.
$db1_tuchemholds the name of the tuchem database used for database connection.
$db1_masterholds the name of the "master" database used for database connection.
$db1_nfpaholds the name of the nfpa database used for database connection.
$db1_epcraholds the database userid used for database connection.
$db1_cd1holds the name of the cd1 database used for database connection.
$db1_cd2holds the database password used for database connection.
$db1_cd3holds the database name used for database connection.
$db1_cd4holds the database userid used for database connection.
$db1_cd5holds the database userid used for database connection.
$max_login_failuresglobal variable that holds the max number of login failures (5).
$log_levelholds the log level (3).

Comments This file is one of the most important files in the system it is included in almost every file. This file is necessary to connect to the database.