Blame Identity/Webenv/phpBB/3.0.4/includes/constants.php

ef5584
ef5584
/**
ef5584
*
ef5584
* @package phpBB3
ef5584
* @version $Id: constants.php 9187 2008-12-12 14:47:03Z acydburn $
ef5584
* @copyright (c) 2005 phpBB Group
ef5584
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
ef5584
*
ef5584
*/
ef5584
ef5584
/**
ef5584
* @ignore
ef5584
*/
ef5584
if (!defined('IN_PHPBB'))
ef5584
{
ef5584
	exit;
ef5584
}
ef5584
ef5584
/**
ef5584
* valid external constants:
ef5584
* PHPBB_MSG_HANDLER
ef5584
* PHPBB_DB_NEW_LINK
ef5584
* PHPBB_ROOT_PATH
ef5584
* PHPBB_ADMIN_PATH
ef5584
*/
ef5584
ef5584
// phpBB Version
ef5584
define('PHPBB_VERSION', '3.0.4');
ef5584
ef5584
// QA-related
ef5584
// define('PHPBB_QA', 1);
ef5584
ef5584
// User related
ef5584
define('ANONYMOUS', 1);
ef5584
ef5584
define('USER_ACTIVATION_NONE', 0);
ef5584
define('USER_ACTIVATION_SELF', 1);
ef5584
define('USER_ACTIVATION_ADMIN', 2);
ef5584
define('USER_ACTIVATION_DISABLE', 3);
ef5584
ef5584
define('AVATAR_UPLOAD', 1);
ef5584
define('AVATAR_REMOTE', 2);
ef5584
define('AVATAR_GALLERY', 3);
ef5584
ef5584
define('USER_NORMAL', 0);
ef5584
define('USER_INACTIVE', 1);
ef5584
define('USER_IGNORE', 2);
ef5584
define('USER_FOUNDER', 3);
ef5584
ef5584
define('INACTIVE_REGISTER', 1);
ef5584
define('INACTIVE_PROFILE', 2);
ef5584
define('INACTIVE_MANUAL', 3);
ef5584
define('INACTIVE_REMIND', 4);
ef5584
ef5584
// ACL
ef5584
define('ACL_NEVER', 0);
ef5584
define('ACL_YES', 1);
ef5584
define('ACL_NO', -1);
ef5584
ef5584
// Login error codes
ef5584
define('LOGIN_CONTINUE', 1);
ef5584
define('LOGIN_BREAK', 2);
ef5584
define('LOGIN_SUCCESS', 3);
ef5584
define('LOGIN_SUCCESS_CREATE_PROFILE', 20);
ef5584
define('LOGIN_ERROR_USERNAME', 10);
ef5584
define('LOGIN_ERROR_PASSWORD', 11);
ef5584
define('LOGIN_ERROR_ACTIVE', 12);
ef5584
define('LOGIN_ERROR_ATTEMPTS', 13);
ef5584
define('LOGIN_ERROR_EXTERNAL_AUTH', 14);
ef5584
define('LOGIN_ERROR_PASSWORD_CONVERT', 15);
ef5584
ef5584
// Group settings
ef5584
define('GROUP_OPEN', 0);
ef5584
define('GROUP_CLOSED', 1);
ef5584
define('GROUP_HIDDEN', 2);
ef5584
define('GROUP_SPECIAL', 3);
ef5584
define('GROUP_FREE', 4);
ef5584
ef5584
// Forum/Topic states
ef5584
define('FORUM_CAT', 0);
ef5584
define('FORUM_POST', 1);
ef5584
define('FORUM_LINK', 2);
ef5584
define('ITEM_UNLOCKED', 0);
ef5584
define('ITEM_LOCKED', 1);
ef5584
define('ITEM_MOVED', 2);
ef5584
ef5584
// Forum Flags
ef5584
define('FORUM_FLAG_LINK_TRACK', 1);
ef5584
define('FORUM_FLAG_PRUNE_POLL', 2);
ef5584
define('FORUM_FLAG_PRUNE_ANNOUNCE', 4);
ef5584
define('FORUM_FLAG_PRUNE_STICKY', 8);
ef5584
define('FORUM_FLAG_ACTIVE_TOPICS', 16);
ef5584
define('FORUM_FLAG_POST_REVIEW', 32);
ef5584
ef5584
// Optional text flags
ef5584
define('OPTION_FLAG_BBCODE', 1);
ef5584
define('OPTION_FLAG_SMILIES', 2);
ef5584
define('OPTION_FLAG_LINKS', 4);
ef5584
ef5584
// Topic types
ef5584
define('POST_NORMAL', 0);
ef5584
define('POST_STICKY', 1);
ef5584
define('POST_ANNOUNCE', 2);
ef5584
define('POST_GLOBAL', 3);
ef5584
ef5584
// Lastread types
ef5584
define('TRACK_NORMAL', 0);
ef5584
define('TRACK_POSTED', 1);
ef5584
ef5584
// Notify methods
ef5584
define('NOTIFY_EMAIL', 0);
ef5584
define('NOTIFY_IM', 1);
ef5584
define('NOTIFY_BOTH', 2);
ef5584
ef5584
// Email Priority Settings
ef5584
define('MAIL_LOW_PRIORITY', 4);
ef5584
define('MAIL_NORMAL_PRIORITY', 3);
ef5584
define('MAIL_HIGH_PRIORITY', 2);
ef5584
ef5584
// Log types
ef5584
define('LOG_ADMIN', 0);
ef5584
define('LOG_MOD', 1);
ef5584
define('LOG_CRITICAL', 2);
ef5584
define('LOG_USERS', 3);
ef5584
ef5584
// Private messaging - Do NOT change these values
ef5584
define('PRIVMSGS_HOLD_BOX', -4);
ef5584
define('PRIVMSGS_NO_BOX', -3);
ef5584
define('PRIVMSGS_OUTBOX', -2);
ef5584
define('PRIVMSGS_SENTBOX', -1);
ef5584
define('PRIVMSGS_INBOX', 0);
ef5584
ef5584
// Full Folder Actions
ef5584
define('FULL_FOLDER_NONE', -3);
ef5584
define('FULL_FOLDER_DELETE', -2);
ef5584
define('FULL_FOLDER_HOLD', -1);
ef5584
ef5584
// Download Modes - Attachments
ef5584
define('INLINE_LINK', 1);
ef5584
// This mode is only used internally to allow modders extending the attachment functionality
ef5584
define('PHYSICAL_LINK', 2);
ef5584
ef5584
// Confirm types
ef5584
define('CONFIRM_REG', 1);
ef5584
define('CONFIRM_LOGIN', 2);
ef5584
define('CONFIRM_POST', 3);
ef5584
ef5584
// Categories - Attachments
ef5584
define('ATTACHMENT_CATEGORY_NONE', 0);
ef5584
define('ATTACHMENT_CATEGORY_IMAGE', 1); // Inline Images
ef5584
define('ATTACHMENT_CATEGORY_WM', 2); // Windows Media Files - Streaming
ef5584
define('ATTACHMENT_CATEGORY_RM', 3); // Real Media Files - Streaming
ef5584
define('ATTACHMENT_CATEGORY_THUMB', 4); // Not used within the database, only while displaying posts
ef5584
define('ATTACHMENT_CATEGORY_FLASH', 5); // Flash/SWF files
ef5584
define('ATTACHMENT_CATEGORY_QUICKTIME', 6); // Quicktime/Mov files
ef5584
ef5584
// BBCode UID length
ef5584
define('BBCODE_UID_LEN', 8);
ef5584
ef5584
// Number of core BBCodes
ef5584
define('NUM_CORE_BBCODES', 12);
ef5584
ef5584
// Magic url types
ef5584
define('MAGIC_URL_EMAIL', 1);
ef5584
define('MAGIC_URL_FULL', 2);
ef5584
define('MAGIC_URL_LOCAL', 3);
ef5584
define('MAGIC_URL_WWW', 4);
ef5584
ef5584
// Profile Field Types
ef5584
define('FIELD_INT', 1);
ef5584
define('FIELD_STRING', 2);
ef5584
define('FIELD_TEXT', 3);
ef5584
define('FIELD_BOOL', 4);
ef5584
define('FIELD_DROPDOWN', 5);
ef5584
define('FIELD_DATE', 6);
ef5584
ef5584
// referer validation
ef5584
define('REFERER_VALIDATE_NONE', 0);
ef5584
define('REFERER_VALIDATE_HOST', 1);
ef5584
define('REFERER_VALIDATE_PATH', 2);
ef5584
ef5584
// phpbb_chmod() permissions
ef5584
@define('CHMOD_ALL', 7);
ef5584
@define('CHMOD_READ', 4);
ef5584
@define('CHMOD_WRITE', 2);
ef5584
@define('CHMOD_EXECUTE', 1);
ef5584
ef5584
// Additional constants
ef5584
define('VOTE_CONVERTED', 127);
ef5584
ef5584
// Table names
ef5584
define('ACL_GROUPS_TABLE',			$table_prefix . 'acl_groups');
ef5584
define('ACL_OPTIONS_TABLE',			$table_prefix . 'acl_options');
ef5584
define('ACL_ROLES_DATA_TABLE',		$table_prefix . 'acl_roles_data');
ef5584
define('ACL_ROLES_TABLE',			$table_prefix . 'acl_roles');
ef5584
define('ACL_USERS_TABLE',			$table_prefix . 'acl_users');
ef5584
define('ATTACHMENTS_TABLE',			$table_prefix . 'attachments');
ef5584
define('BANLIST_TABLE',				$table_prefix . 'banlist');
ef5584
define('BBCODES_TABLE',				$table_prefix . 'bbcodes');
ef5584
define('BOOKMARKS_TABLE',			$table_prefix . 'bookmarks');
ef5584
define('BOTS_TABLE',				$table_prefix . 'bots');
ef5584
define('CONFIG_TABLE',				$table_prefix . 'config');
ef5584
define('CONFIRM_TABLE',				$table_prefix . 'confirm');
ef5584
define('DISALLOW_TABLE',			$table_prefix . 'disallow');
ef5584
define('DRAFTS_TABLE',				$table_prefix . 'drafts');
ef5584
define('EXTENSIONS_TABLE',			$table_prefix . 'extensions');
ef5584
define('EXTENSION_GROUPS_TABLE',	$table_prefix . 'extension_groups');
ef5584
define('FORUMS_TABLE',				$table_prefix . 'forums');
ef5584
define('FORUMS_ACCESS_TABLE',		$table_prefix . 'forums_access');
ef5584
define('FORUMS_TRACK_TABLE',		$table_prefix . 'forums_track');
ef5584
define('FORUMS_WATCH_TABLE',		$table_prefix . 'forums_watch');
ef5584
define('GROUPS_TABLE',				$table_prefix . 'groups');
ef5584
define('ICONS_TABLE',				$table_prefix . 'icons');
ef5584
define('LANG_TABLE',				$table_prefix . 'lang');
ef5584
define('LOG_TABLE',					$table_prefix . 'log');
ef5584
define('MODERATOR_CACHE_TABLE',		$table_prefix . 'moderator_cache');
ef5584
define('MODULES_TABLE',				$table_prefix . 'modules');
ef5584
define('POLL_OPTIONS_TABLE',		$table_prefix . 'poll_options');
ef5584
define('POLL_VOTES_TABLE',			$table_prefix . 'poll_votes');
ef5584
define('POSTS_TABLE',				$table_prefix . 'posts');
ef5584
define('PRIVMSGS_TABLE',			$table_prefix . 'privmsgs');
ef5584
define('PRIVMSGS_FOLDER_TABLE',		$table_prefix . 'privmsgs_folder');
ef5584
define('PRIVMSGS_RULES_TABLE',		$table_prefix . 'privmsgs_rules');
ef5584
define('PRIVMSGS_TO_TABLE',			$table_prefix . 'privmsgs_to');
ef5584
define('PROFILE_FIELDS_TABLE',		$table_prefix . 'profile_fields');
ef5584
define('PROFILE_FIELDS_DATA_TABLE',	$table_prefix . 'profile_fields_data');
ef5584
define('PROFILE_FIELDS_LANG_TABLE',	$table_prefix . 'profile_fields_lang');
ef5584
define('PROFILE_LANG_TABLE',		$table_prefix . 'profile_lang');
ef5584
define('RANKS_TABLE',				$table_prefix . 'ranks');
ef5584
define('REPORTS_TABLE',				$table_prefix . 'reports');
ef5584
define('REPORTS_REASONS_TABLE',		$table_prefix . 'reports_reasons');
ef5584
define('SEARCH_RESULTS_TABLE',		$table_prefix . 'search_results');
ef5584
define('SEARCH_WORDLIST_TABLE',		$table_prefix . 'search_wordlist');
ef5584
define('SEARCH_WORDMATCH_TABLE',	$table_prefix . 'search_wordmatch');
ef5584
define('SESSIONS_TABLE',			$table_prefix . 'sessions');
ef5584
define('SESSIONS_KEYS_TABLE',		$table_prefix . 'sessions_keys');
ef5584
define('SITELIST_TABLE',			$table_prefix . 'sitelist');
ef5584
define('SMILIES_TABLE',				$table_prefix . 'smilies');
ef5584
define('STYLES_TABLE',				$table_prefix . 'styles');
ef5584
define('STYLES_TEMPLATE_TABLE',		$table_prefix . 'styles_template');
ef5584
define('STYLES_TEMPLATE_DATA_TABLE',$table_prefix . 'styles_template_data');
ef5584
define('STYLES_THEME_TABLE',		$table_prefix . 'styles_theme');
ef5584
define('STYLES_IMAGESET_TABLE',		$table_prefix . 'styles_imageset');
ef5584
define('STYLES_IMAGESET_DATA_TABLE',$table_prefix . 'styles_imageset_data');
ef5584
define('TOPICS_TABLE',				$table_prefix . 'topics');
ef5584
define('TOPICS_POSTED_TABLE',		$table_prefix . 'topics_posted');
ef5584
define('TOPICS_TRACK_TABLE',		$table_prefix . 'topics_track');
ef5584
define('TOPICS_WATCH_TABLE',		$table_prefix . 'topics_watch');
ef5584
define('USER_GROUP_TABLE',			$table_prefix . 'user_group');
ef5584
define('USERS_TABLE',				$table_prefix . 'users');
ef5584
define('WARNINGS_TABLE',			$table_prefix . 'warnings');
ef5584
define('WORDS_TABLE',				$table_prefix . 'words');
ef5584
define('ZEBRA_TABLE',				$table_prefix . 'zebra');
ef5584
ef5584
// Additional tables
ef5584
ef5584
ef5584
?>