PunBB 1.3 constants

The forum uses constants to define some values, which are used in the code. The values of the constants can be:

The forum has two groups of constants:

Here is the description of most used constants.

Pre-defined constants

Constant Default value Shot description
FORUM_UNVERIFIED 0 The group ID for users before verification of user's e-mail address.
FORUM_ADMIN 1 The group ID for administrators.
FORUM_GUEST 2 The group ID for the Guest user.
FORUM_MAX_POSTSIZE_BYTES 65535 Maximum size of post in bytes.

User-defined constants

FORUM_DEBUG

define('FORUM_DEBUG', 1);

FORUM_SHOW_QUERIES

define('FORUM_SHOW_QUERIES', 1);

FORUM_VERSION

FORUM_DB_REVISION

FORUM_NO_SET_NAMES

FORUM_ROOT

define('FORUM_ROOT', './');

FORUM_IGNORE_REQUEST_URI

define('FORUM_IGNORE_REQUEST_URI', 1);

FORUM_DISABLE_HOOKS

define('FORUM_DISABLE_HOOKS', 1);

FORUM_DISABLE_CSRF_CONFIRM

define('FORUM_DISABLE_CSRF_CONFIRM', 1);

FORUM_TURN_OFF_MAINT

define('FORUM_TURN_OFF_MAINT', 1);

FORUM_CACHE_DIR

define('FORUM_CACHE_DIR', '/tmp/punbb_cache');

FORUM_PAGE

define('FORUM_PAGE', 'viewtopic');