The following files are included from prepend.php3 and provide definitions for the core classes of PHPlib. We recommend that you always include all of them, as they are a tightly integrated set of classes with many dependencies among them.
Class DB_Sql defined in exactly one of db_mysql.inc, db_msql.inc, db_pgsql.inc, db_odbc.inc, db_sybase.inc, db_mssql.inc, db_oracle.inc or db_oci8.inc: A database access class for your database server. PHPLIB depends on the presence of a SQL database server. Depending on the type of your database server, you have to select the appropriate include file. The file contains the definition of a class DB_Sqlsuitable for your database server.
The class manages a database connection (connection setup is implicit) and result memory is managed automatically.
An independent class.
Class Session defined in session.inc: Manages an arbitrary amount of arbitrarily named session variables of scalar, array and object types (Object support requires that you implement two instance variables in your classes). Tracks sessions via cookies or a get-variable appended to each URL.
Depends on DB_Sql.
Class Auth defined in auth.inc: Manages session authentication. Sessions are authenticated against usernames and passwords in a database. Authentication can be time limited.
Depends on Session and DB_Sql.
Class Perm defined in perm.inc: Manages permission checks on authenticated session pages. Protected pages are only accessible to users with the specified rights.
Depends on Auth, Session and DB_Sql, extension of Session
Class User defined in user.inc: Manages user dependent variables. Unlike session variables these are bound to a user id, not to a session id. They are persistent over multiple sessions, but are only available after a user has been authenticated.
Depends on Auth, Session and DB_Sql, extension of Session
Functions page_open() and page_close() defined in page.inc: Setup and Shutdown functions, must be present on any session page.
Depends on Session.