PunBB 1.3 Global Variables

There is a number of forum variables available on every forum page. These variables are used for the page generation. To use them one has to include the FORUM_ROOT.'include/common.php' file first.

$forum_user

This variable correlates an associative array with some information about a user (user id, group id, username, profile options, user permissions, etc.) For example:

$forum_config

This variable correlates an associative array with all configuration options (board title, sef scheme, etc.) For example:

$forum_db

This variable is an instance of the database layer. It is used to perform SQL queries. See the database helper description for details.