root / branches / phpBB-3_0_0 / phpBB / includes / constants.php
History | View | Annotate | Download (8.7 kB)
| 1 | 5239 | acydburn | <?php
|
|---|---|---|---|
| 2 | 8146 | acydburn | /**
|
| 3 | 5239 | acydburn | * |
| 4 | 5239 | acydburn | * @package phpBB3 |
| 5 | 5239 | acydburn | * @version $Id$ |
| 6 | 8146 | acydburn | * @copyright (c) 2005 phpBB Group |
| 7 | 8146 | acydburn | * @license http://opensource.org/licenses/gpl-license.php GNU Public License |
| 8 | 5239 | acydburn | * |
| 9 | 5239 | acydburn | */ |
| 10 | 5239 | acydburn | |
| 11 | 5239 | acydburn | /**
|
| 12 | 8146 | acydburn | * @ignore |
| 13 | 8146 | acydburn | */ |
| 14 | 8146 | acydburn | if (!defined('IN_PHPBB')) |
| 15 | 8146 | acydburn | {
|
| 16 | 8146 | acydburn | exit;
|
| 17 | 8146 | acydburn | } |
| 18 | 8146 | acydburn | |
| 19 | 8146 | acydburn | /**
|
| 20 | 8072 | acydburn | * valid external constants: |
| 21 | 8072 | acydburn | * PHPBB_MSG_HANDLER |
| 22 | 8246 | naderman | * PHPBB_DB_NEW_LINK |
| 23 | 8072 | acydburn | * PHPBB_ROOT_PATH |
| 24 | 8072 | acydburn | * PHPBB_ADMIN_PATH |
| 25 | 5239 | acydburn | */ |
| 26 | 5239 | acydburn | |
| 27 | 8811 | acydburn | // phpBB Version
|
| 28 | 11573 | git-gate | define('PHPBB_VERSION', '3.0.11-dev'); |
| 29 | 8811 | acydburn | |
| 30 | 8249 | acydburn | // QA-related
|
| 31 | 8249 | acydburn | // define('PHPBB_QA', 1);
|
| 32 | 8249 | acydburn | |
| 33 | 5239 | acydburn | // User related
|
| 34 | 5239 | acydburn | define('ANONYMOUS', 1); |
| 35 | 5239 | acydburn | |
| 36 | 5239 | acydburn | define('USER_ACTIVATION_NONE', 0); |
| 37 | 5239 | acydburn | define('USER_ACTIVATION_SELF', 1); |
| 38 | 5239 | acydburn | define('USER_ACTIVATION_ADMIN', 2); |
| 39 | 5239 | acydburn | define('USER_ACTIVATION_DISABLE', 3); |
| 40 | 5239 | acydburn | |
| 41 | 5239 | acydburn | define('AVATAR_UPLOAD', 1); |
| 42 | 5239 | acydburn | define('AVATAR_REMOTE', 2); |
| 43 | 5239 | acydburn | define('AVATAR_GALLERY', 3); |
| 44 | 5239 | acydburn | |
| 45 | 5239 | acydburn | define('USER_NORMAL', 0); |
| 46 | 5239 | acydburn | define('USER_INACTIVE', 1); |
| 47 | 5239 | acydburn | define('USER_IGNORE', 2); |
| 48 | 5239 | acydburn | define('USER_FOUNDER', 3); |
| 49 | 5239 | acydburn | |
| 50 | 6394 | grahamje | define('INACTIVE_REGISTER', 1); |
| 51 | 6394 | grahamje | define('INACTIVE_PROFILE', 2); |
| 52 | 6394 | grahamje | define('INACTIVE_MANUAL', 3); |
| 53 | 6436 | acydburn | define('INACTIVE_REMIND', 4); |
| 54 | 6394 | grahamje | |
| 55 | 5239 | acydburn | // ACL
|
| 56 | 6115 | acydburn | define('ACL_NEVER', 0); |
| 57 | 5239 | acydburn | define('ACL_YES', 1); |
| 58 | 6115 | acydburn | define('ACL_NO', -1); |
| 59 | 5239 | acydburn | |
| 60 | 5622 | acydburn | // Login error codes
|
| 61 | 5622 | acydburn | define('LOGIN_CONTINUE', 1); |
| 62 | 5622 | acydburn | define('LOGIN_BREAK', 2); |
| 63 | 5622 | acydburn | define('LOGIN_SUCCESS', 3); |
| 64 | 6151 | naderman | define('LOGIN_SUCCESS_CREATE_PROFILE', 20); |
| 65 | 5622 | acydburn | define('LOGIN_ERROR_USERNAME', 10); |
| 66 | 5622 | acydburn | define('LOGIN_ERROR_PASSWORD', 11); |
| 67 | 5622 | acydburn | define('LOGIN_ERROR_ACTIVE', 12); |
| 68 | 5622 | acydburn | define('LOGIN_ERROR_ATTEMPTS', 13); |
| 69 | 5815 | naderman | define('LOGIN_ERROR_EXTERNAL_AUTH', 14); |
| 70 | 7076 | naderman | define('LOGIN_ERROR_PASSWORD_CONVERT', 15); |
| 71 | 5622 | acydburn | |
| 72 | 10810 | git-gate | // Maximum login attempts
|
| 73 | 10810 | git-gate | // The value is arbitrary, but it has to fit into the user_login_attempts field.
|
| 74 | 10810 | git-gate | define('LOGIN_ATTEMPTS_MAX', 100); |
| 75 | 10810 | git-gate | |
| 76 | 5239 | acydburn | // Group settings
|
| 77 | 5239 | acydburn | define('GROUP_OPEN', 0); |
| 78 | 5239 | acydburn | define('GROUP_CLOSED', 1); |
| 79 | 5239 | acydburn | define('GROUP_HIDDEN', 2); |
| 80 | 5239 | acydburn | define('GROUP_SPECIAL', 3); |
| 81 | 5239 | acydburn | define('GROUP_FREE', 4); |
| 82 | 5239 | acydburn | |
| 83 | 5239 | acydburn | // Forum/Topic states
|
| 84 | 5239 | acydburn | define('FORUM_CAT', 0); |
| 85 | 5239 | acydburn | define('FORUM_POST', 1); |
| 86 | 5239 | acydburn | define('FORUM_LINK', 2); |
| 87 | 5239 | acydburn | define('ITEM_UNLOCKED', 0); |
| 88 | 5239 | acydburn | define('ITEM_LOCKED', 1); |
| 89 | 5239 | acydburn | define('ITEM_MOVED', 2); |
| 90 | 5239 | acydburn | |
| 91 | 6364 | acydburn | // Forum Flags
|
| 92 | 6364 | acydburn | define('FORUM_FLAG_LINK_TRACK', 1); |
| 93 | 6364 | acydburn | define('FORUM_FLAG_PRUNE_POLL', 2); |
| 94 | 6364 | acydburn | define('FORUM_FLAG_PRUNE_ANNOUNCE', 4); |
| 95 | 6364 | acydburn | define('FORUM_FLAG_PRUNE_STICKY', 8); |
| 96 | 6364 | acydburn | define('FORUM_FLAG_ACTIVE_TOPICS', 16); |
| 97 | 6364 | acydburn | define('FORUM_FLAG_POST_REVIEW', 32); |
| 98 | 9656 | acydburn | define('FORUM_FLAG_QUICK_REPLY', 64); |
| 99 | 6364 | acydburn | |
| 100 | 9965 | acydburn | // Forum Options... sequential order. Modifications should begin at number 10 (number 29 is maximum)
|
| 101 | 9965 | acydburn | define('FORUM_OPTION_FEED_NEWS', 1); |
| 102 | 9965 | acydburn | define('FORUM_OPTION_FEED_EXCLUDE', 2); |
| 103 | 9965 | acydburn | |
| 104 | 6364 | acydburn | // Optional text flags
|
| 105 | 6364 | acydburn | define('OPTION_FLAG_BBCODE', 1); |
| 106 | 6364 | acydburn | define('OPTION_FLAG_SMILIES', 2); |
| 107 | 6364 | acydburn | define('OPTION_FLAG_LINKS', 4); |
| 108 | 6364 | acydburn | |
| 109 | 5239 | acydburn | // Topic types
|
| 110 | 5239 | acydburn | define('POST_NORMAL', 0); |
| 111 | 5239 | acydburn | define('POST_STICKY', 1); |
| 112 | 5239 | acydburn | define('POST_ANNOUNCE', 2); |
| 113 | 5239 | acydburn | define('POST_GLOBAL', 3); |
| 114 | 5239 | acydburn | |
| 115 | 5239 | acydburn | // Lastread types
|
| 116 | 5239 | acydburn | define('TRACK_NORMAL', 0); |
| 117 | 5239 | acydburn | define('TRACK_POSTED', 1); |
| 118 | 5239 | acydburn | |
| 119 | 5239 | acydburn | // Notify methods
|
| 120 | 5239 | acydburn | define('NOTIFY_EMAIL', 0); |
| 121 | 5239 | acydburn | define('NOTIFY_IM', 1); |
| 122 | 5239 | acydburn | define('NOTIFY_BOTH', 2); |
| 123 | 5239 | acydburn | |
| 124 | 10662 | git-gate | // Notify status
|
| 125 | 10662 | git-gate | define('NOTIFY_YES', 0); |
| 126 | 10662 | git-gate | define('NOTIFY_NO', 1); |
| 127 | 10662 | git-gate | |
| 128 | 5239 | acydburn | // Email Priority Settings
|
| 129 | 5239 | acydburn | define('MAIL_LOW_PRIORITY', 4); |
| 130 | 5239 | acydburn | define('MAIL_NORMAL_PRIORITY', 3); |
| 131 | 5239 | acydburn | define('MAIL_HIGH_PRIORITY', 2); |
| 132 | 5239 | acydburn | |
| 133 | 5239 | acydburn | // Log types
|
| 134 | 5239 | acydburn | define('LOG_ADMIN', 0); |
| 135 | 5239 | acydburn | define('LOG_MOD', 1); |
| 136 | 5239 | acydburn | define('LOG_CRITICAL', 2); |
| 137 | 5239 | acydburn | define('LOG_USERS', 3); |
| 138 | 5239 | acydburn | |
| 139 | 5239 | acydburn | // Private messaging - Do NOT change these values
|
| 140 | 5239 | acydburn | define('PRIVMSGS_HOLD_BOX', -4); |
| 141 | 5239 | acydburn | define('PRIVMSGS_NO_BOX', -3); |
| 142 | 5239 | acydburn | define('PRIVMSGS_OUTBOX', -2); |
| 143 | 5239 | acydburn | define('PRIVMSGS_SENTBOX', -1); |
| 144 | 5239 | acydburn | define('PRIVMSGS_INBOX', 0); |
| 145 | 5239 | acydburn | |
| 146 | 5239 | acydburn | // Full Folder Actions
|
| 147 | 5239 | acydburn | define('FULL_FOLDER_NONE', -3); |
| 148 | 5239 | acydburn | define('FULL_FOLDER_DELETE', -2); |
| 149 | 5239 | acydburn | define('FULL_FOLDER_HOLD', -1); |
| 150 | 5239 | acydburn | |
| 151 | 5239 | acydburn | // Download Modes - Attachments
|
| 152 | 5239 | acydburn | define('INLINE_LINK', 1); |
| 153 | 6831 | acydburn | // This mode is only used internally to allow modders extending the attachment functionality
|
| 154 | 5239 | acydburn | define('PHYSICAL_LINK', 2); |
| 155 | 5239 | acydburn | |
| 156 | 5622 | acydburn | // Confirm types
|
| 157 | 5622 | acydburn | define('CONFIRM_REG', 1); |
| 158 | 5622 | acydburn | define('CONFIRM_LOGIN', 2); |
| 159 | 5739 | davidmj | define('CONFIRM_POST', 3); |
| 160 | 5622 | acydburn | |
| 161 | 5239 | acydburn | // Categories - Attachments
|
| 162 | 5239 | acydburn | define('ATTACHMENT_CATEGORY_NONE', 0); |
| 163 | 5239 | acydburn | define('ATTACHMENT_CATEGORY_IMAGE', 1); // Inline Images |
| 164 | 5239 | acydburn | define('ATTACHMENT_CATEGORY_WM', 2); // Windows Media Files - Streaming |
| 165 | 5239 | acydburn | define('ATTACHMENT_CATEGORY_RM', 3); // Real Media Files - Streaming |
| 166 | 5239 | acydburn | define('ATTACHMENT_CATEGORY_THUMB', 4); // Not used within the database, only while displaying posts |
| 167 | 6511 | acydburn | define('ATTACHMENT_CATEGORY_FLASH', 5); // Flash/SWF files |
| 168 | 6511 | acydburn | define('ATTACHMENT_CATEGORY_QUICKTIME', 6); // Quicktime/Mov files |
| 169 | 5239 | acydburn | |
| 170 | 5239 | acydburn | // BBCode UID length
|
| 171 | 8128 | davidmj | define('BBCODE_UID_LEN', 8); |
| 172 | 5239 | acydburn | |
| 173 | 5239 | acydburn | // Number of core BBCodes
|
| 174 | 5239 | acydburn | define('NUM_CORE_BBCODES', 12); |
| 175 | 5239 | acydburn | |
| 176 | 10984 | git-gate | // BBCode hard limit
|
| 177 | 10984 | git-gate | define('BBCODE_LIMIT', 1511); |
| 178 | 10984 | git-gate | |
| 179 | 9771 | aptx | // Smiley hard limit
|
| 180 | 9771 | aptx | define('SMILEY_LIMIT', 1000); |
| 181 | 9771 | aptx | |
| 182 | 7559 | naderman | // Magic url types
|
| 183 | 7559 | naderman | define('MAGIC_URL_EMAIL', 1); |
| 184 | 7559 | naderman | define('MAGIC_URL_FULL', 2); |
| 185 | 7559 | naderman | define('MAGIC_URL_LOCAL', 3); |
| 186 | 7559 | naderman | define('MAGIC_URL_WWW', 4); |
| 187 | 7559 | naderman | |
| 188 | 5239 | acydburn | // Profile Field Types
|
| 189 | 5239 | acydburn | define('FIELD_INT', 1); |
| 190 | 5239 | acydburn | define('FIELD_STRING', 2); |
| 191 | 5239 | acydburn | define('FIELD_TEXT', 3); |
| 192 | 5239 | acydburn | define('FIELD_BOOL', 4); |
| 193 | 5239 | acydburn | define('FIELD_DROPDOWN', 5); |
| 194 | 5239 | acydburn | define('FIELD_DATE', 6); |
| 195 | 5239 | acydburn | |
| 196 | 8554 | Kellanved | // referer validation
|
| 197 | 8554 | Kellanved | define('REFERER_VALIDATE_NONE', 0); |
| 198 | 8554 | Kellanved | define('REFERER_VALIDATE_HOST', 1); |
| 199 | 8554 | Kellanved | define('REFERER_VALIDATE_PATH', 2); |
| 200 | 6320 | acydburn | |
| 201 | 8780 | acydburn | // phpbb_chmod() permissions
|
| 202 | 8788 | acydburn | @define('CHMOD_ALL', 7); |
| 203 | 8787 | acydburn | @define('CHMOD_READ', 4); |
| 204 | 8787 | acydburn | @define('CHMOD_WRITE', 2); |
| 205 | 8788 | acydburn | @define('CHMOD_EXECUTE', 1); |
| 206 | 8554 | Kellanved | |
| 207 | 9437 | acydburn | // Captcha code length
|
| 208 | 9437 | acydburn | define('CAPTCHA_MIN_CHARS', 4); |
| 209 | 9437 | acydburn | define('CAPTCHA_MAX_CHARS', 7); |
| 210 | 9437 | acydburn | |
| 211 | 5855 | acydburn | // Additional constants
|
| 212 | 8379 | Kellanved | define('VOTE_CONVERTED', 127); |
| 213 | 5855 | acydburn | |
| 214 | 5859 | acydburn | // Table names
|
| 215 | 6021 | acydburn | define('ACL_GROUPS_TABLE', $table_prefix . 'acl_groups'); |
| 216 | 6021 | acydburn | define('ACL_OPTIONS_TABLE', $table_prefix . 'acl_options'); |
| 217 | 6228 | acydburn | define('ACL_ROLES_DATA_TABLE', $table_prefix . 'acl_roles_data'); |
| 218 | 6021 | acydburn | define('ACL_ROLES_TABLE', $table_prefix . 'acl_roles'); |
| 219 | 6021 | acydburn | define('ACL_USERS_TABLE', $table_prefix . 'acl_users'); |
| 220 | 5859 | acydburn | define('ATTACHMENTS_TABLE', $table_prefix . 'attachments'); |
| 221 | 5859 | acydburn | define('BANLIST_TABLE', $table_prefix . 'banlist'); |
| 222 | 5859 | acydburn | define('BBCODES_TABLE', $table_prefix . 'bbcodes'); |
| 223 | 5859 | acydburn | define('BOOKMARKS_TABLE', $table_prefix . 'bookmarks'); |
| 224 | 5859 | acydburn | define('BOTS_TABLE', $table_prefix . 'bots'); |
| 225 | 5859 | acydburn | define('CONFIG_TABLE', $table_prefix . 'config'); |
| 226 | 5859 | acydburn | define('CONFIRM_TABLE', $table_prefix . 'confirm'); |
| 227 | 5859 | acydburn | define('DISALLOW_TABLE', $table_prefix . 'disallow'); |
| 228 | 5859 | acydburn | define('DRAFTS_TABLE', $table_prefix . 'drafts'); |
| 229 | 5859 | acydburn | define('EXTENSIONS_TABLE', $table_prefix . 'extensions'); |
| 230 | 5859 | acydburn | define('EXTENSION_GROUPS_TABLE', $table_prefix . 'extension_groups'); |
| 231 | 5859 | acydburn | define('FORUMS_TABLE', $table_prefix . 'forums'); |
| 232 | 6021 | acydburn | define('FORUMS_ACCESS_TABLE', $table_prefix . 'forums_access'); |
| 233 | 6021 | acydburn | define('FORUMS_TRACK_TABLE', $table_prefix . 'forums_track'); |
| 234 | 5859 | acydburn | define('FORUMS_WATCH_TABLE', $table_prefix . 'forums_watch'); |
| 235 | 5859 | acydburn | define('GROUPS_TABLE', $table_prefix . 'groups'); |
| 236 | 5859 | acydburn | define('ICONS_TABLE', $table_prefix . 'icons'); |
| 237 | 5859 | acydburn | define('LANG_TABLE', $table_prefix . 'lang'); |
| 238 | 5859 | acydburn | define('LOG_TABLE', $table_prefix . 'log'); |
| 239 | 11215 | git-gate | define('LOGIN_ATTEMPT_TABLE', $table_prefix . 'login_attempts'); |
| 240 | 6021 | acydburn | define('MODERATOR_CACHE_TABLE', $table_prefix . 'moderator_cache'); |
| 241 | 5859 | acydburn | define('MODULES_TABLE', $table_prefix . 'modules'); |
| 242 | 6228 | acydburn | define('POLL_OPTIONS_TABLE', $table_prefix . 'poll_options'); |
| 243 | 6228 | acydburn | define('POLL_VOTES_TABLE', $table_prefix . 'poll_votes'); |
| 244 | 5859 | acydburn | define('POSTS_TABLE', $table_prefix . 'posts'); |
| 245 | 5859 | acydburn | define('PRIVMSGS_TABLE', $table_prefix . 'privmsgs'); |
| 246 | 5859 | acydburn | define('PRIVMSGS_FOLDER_TABLE', $table_prefix . 'privmsgs_folder'); |
| 247 | 5859 | acydburn | define('PRIVMSGS_RULES_TABLE', $table_prefix . 'privmsgs_rules'); |
| 248 | 6228 | acydburn | define('PRIVMSGS_TO_TABLE', $table_prefix . 'privmsgs_to'); |
| 249 | 6228 | acydburn | define('PROFILE_FIELDS_TABLE', $table_prefix . 'profile_fields'); |
| 250 | 6228 | acydburn | define('PROFILE_FIELDS_DATA_TABLE', $table_prefix . 'profile_fields_data'); |
| 251 | 6228 | acydburn | define('PROFILE_FIELDS_LANG_TABLE', $table_prefix . 'profile_fields_lang'); |
| 252 | 6228 | acydburn | define('PROFILE_LANG_TABLE', $table_prefix . 'profile_lang'); |
| 253 | 5859 | acydburn | define('RANKS_TABLE', $table_prefix . 'ranks'); |
| 254 | 5859 | acydburn | define('REPORTS_TABLE', $table_prefix . 'reports'); |
| 255 | 6021 | acydburn | define('REPORTS_REASONS_TABLE', $table_prefix . 'reports_reasons'); |
| 256 | 6021 | acydburn | define('SEARCH_RESULTS_TABLE', $table_prefix . 'search_results'); |
| 257 | 6021 | acydburn | define('SEARCH_WORDLIST_TABLE', $table_prefix . 'search_wordlist'); |
| 258 | 6021 | acydburn | define('SEARCH_WORDMATCH_TABLE', $table_prefix . 'search_wordmatch'); |
| 259 | 5859 | acydburn | define('SESSIONS_TABLE', $table_prefix . 'sessions'); |
| 260 | 5859 | acydburn | define('SESSIONS_KEYS_TABLE', $table_prefix . 'sessions_keys'); |
| 261 | 5859 | acydburn | define('SITELIST_TABLE', $table_prefix . 'sitelist'); |
| 262 | 5859 | acydburn | define('SMILIES_TABLE', $table_prefix . 'smilies'); |
| 263 | 5859 | acydburn | define('STYLES_TABLE', $table_prefix . 'styles'); |
| 264 | 6021 | acydburn | define('STYLES_TEMPLATE_TABLE', $table_prefix . 'styles_template'); |
| 265 | 6021 | acydburn | define('STYLES_TEMPLATE_DATA_TABLE',$table_prefix . 'styles_template_data'); |
| 266 | 6021 | acydburn | define('STYLES_THEME_TABLE', $table_prefix . 'styles_theme'); |
| 267 | 6021 | acydburn | define('STYLES_IMAGESET_TABLE', $table_prefix . 'styles_imageset'); |
| 268 | 7304 | davidmj | define('STYLES_IMAGESET_DATA_TABLE',$table_prefix . 'styles_imageset_data'); |
| 269 | 5859 | acydburn | define('TOPICS_TABLE', $table_prefix . 'topics'); |
| 270 | 5859 | acydburn | define('TOPICS_POSTED_TABLE', $table_prefix . 'topics_posted'); |
| 271 | 6228 | acydburn | define('TOPICS_TRACK_TABLE', $table_prefix . 'topics_track'); |
| 272 | 5859 | acydburn | define('TOPICS_WATCH_TABLE', $table_prefix . 'topics_watch'); |
| 273 | 5859 | acydburn | define('USER_GROUP_TABLE', $table_prefix . 'user_group'); |
| 274 | 5859 | acydburn | define('USERS_TABLE', $table_prefix . 'users'); |
| 275 | 5859 | acydburn | define('WARNINGS_TABLE', $table_prefix . 'warnings'); |
| 276 | 5859 | acydburn | define('WORDS_TABLE', $table_prefix . 'words'); |
| 277 | 5859 | acydburn | define('ZEBRA_TABLE', $table_prefix . 'zebra'); |
| 278 | 5855 | acydburn | |
| 279 | 5859 | acydburn | // Additional tables
|
| 280 | 5239 | acydburn | |
| 281 | 5239 | acydburn | |
| 282 | 10873 | git-gate | ?> |

