443
by dcoles
Added Forum application along with unmodifed version of phpBB3 "Olympus" 3.0.0 |
1 |
<?php
|
2 |
/**
|
|
3 |
*
|
|
4 |
* @package phpBB3
|
|
5 |
* @version $Id: constants.php,v 1.86 2007/11/19 17:00:13 acydburn Exp $
|
|
6 |
* @copyright (c) 2005 phpBB Group
|
|
7 |
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
|
8 |
*
|
|
9 |
*/
|
|
10 |
||
11 |
/**
|
|
12 |
* @ignore
|
|
13 |
*/
|
|
14 |
if (!defined('IN_PHPBB')) |
|
15 |
{
|
|
16 |
exit; |
|
17 |
}
|
|
18 |
||
19 |
/**
|
|
20 |
* valid external constants:
|
|
21 |
* PHPBB_MSG_HANDLER
|
|
22 |
* PHPBB_DB_NEW_LINK
|
|
23 |
* PHPBB_ROOT_PATH
|
|
24 |
* PHPBB_ADMIN_PATH
|
|
25 |
*/
|
|
26 |
||
27 |
// QA-related
|
|
28 |
// define('PHPBB_QA', 1);
|
|
29 |
||
30 |
// User related
|
|
31 |
define('ANONYMOUS', 1); |
|
32 |
||
33 |
define('USER_ACTIVATION_NONE', 0); |
|
34 |
define('USER_ACTIVATION_SELF', 1); |
|
35 |
define('USER_ACTIVATION_ADMIN', 2); |
|
36 |
define('USER_ACTIVATION_DISABLE', 3); |
|
37 |
||
38 |
define('AVATAR_UPLOAD', 1); |
|
39 |
define('AVATAR_REMOTE', 2); |
|
40 |
define('AVATAR_GALLERY', 3); |
|
41 |
||
42 |
define('USER_NORMAL', 0); |
|
43 |
define('USER_INACTIVE', 1); |
|
44 |
define('USER_IGNORE', 2); |
|
45 |
define('USER_FOUNDER', 3); |
|
46 |
||
47 |
define('INACTIVE_REGISTER', 1); |
|
48 |
define('INACTIVE_PROFILE', 2); |
|
49 |
define('INACTIVE_MANUAL', 3); |
|
50 |
define('INACTIVE_REMIND', 4); |
|
51 |
||
52 |
// ACL
|
|
53 |
define('ACL_NEVER', 0); |
|
54 |
define('ACL_YES', 1); |
|
55 |
define('ACL_NO', -1); |
|
56 |
||
57 |
// Login error codes
|
|
58 |
define('LOGIN_CONTINUE', 1); |
|
59 |
define('LOGIN_BREAK', 2); |
|
60 |
define('LOGIN_SUCCESS', 3); |
|
61 |
define('LOGIN_SUCCESS_CREATE_PROFILE', 20); |
|
62 |
define('LOGIN_ERROR_USERNAME', 10); |
|
63 |
define('LOGIN_ERROR_PASSWORD', 11); |
|
64 |
define('LOGIN_ERROR_ACTIVE', 12); |
|
65 |
define('LOGIN_ERROR_ATTEMPTS', 13); |
|
66 |
define('LOGIN_ERROR_EXTERNAL_AUTH', 14); |
|
67 |
define('LOGIN_ERROR_PASSWORD_CONVERT', 15); |
|
68 |
||
69 |
// Group settings
|
|
70 |
define('GROUP_OPEN', 0); |
|
71 |
define('GROUP_CLOSED', 1); |
|
72 |
define('GROUP_HIDDEN', 2); |
|
73 |
define('GROUP_SPECIAL', 3); |
|
74 |
define('GROUP_FREE', 4); |
|
75 |
||
76 |
// Forum/Topic states
|
|
77 |
define('FORUM_CAT', 0); |
|
78 |
define('FORUM_POST', 1); |
|
79 |
define('FORUM_LINK', 2); |
|
80 |
define('ITEM_UNLOCKED', 0); |
|
81 |
define('ITEM_LOCKED', 1); |
|
82 |
define('ITEM_MOVED', 2); |
|
83 |
||
84 |
// Forum Flags
|
|
85 |
define('FORUM_FLAG_LINK_TRACK', 1); |
|
86 |
define('FORUM_FLAG_PRUNE_POLL', 2); |
|
87 |
define('FORUM_FLAG_PRUNE_ANNOUNCE', 4); |
|
88 |
define('FORUM_FLAG_PRUNE_STICKY', 8); |
|
89 |
define('FORUM_FLAG_ACTIVE_TOPICS', 16); |
|
90 |
define('FORUM_FLAG_POST_REVIEW', 32); |
|
91 |
||
92 |
// Optional text flags
|
|
93 |
define('OPTION_FLAG_BBCODE', 1); |
|
94 |
define('OPTION_FLAG_SMILIES', 2); |
|
95 |
define('OPTION_FLAG_LINKS', 4); |
|
96 |
||
97 |
// Topic types
|
|
98 |
define('POST_NORMAL', 0); |
|
99 |
define('POST_STICKY', 1); |
|
100 |
define('POST_ANNOUNCE', 2); |
|
101 |
define('POST_GLOBAL', 3); |
|
102 |
||
103 |
// Lastread types
|
|
104 |
define('TRACK_NORMAL', 0); |
|
105 |
define('TRACK_POSTED', 1); |
|
106 |
||
107 |
// Notify methods
|
|
108 |
define('NOTIFY_EMAIL', 0); |
|
109 |
define('NOTIFY_IM', 1); |
|
110 |
define('NOTIFY_BOTH', 2); |
|
111 |
||
112 |
// Email Priority Settings
|
|
113 |
define('MAIL_LOW_PRIORITY', 4); |
|
114 |
define('MAIL_NORMAL_PRIORITY', 3); |
|
115 |
define('MAIL_HIGH_PRIORITY', 2); |
|
116 |
||
117 |
// Log types
|
|
118 |
define('LOG_ADMIN', 0); |
|
119 |
define('LOG_MOD', 1); |
|
120 |
define('LOG_CRITICAL', 2); |
|
121 |
define('LOG_USERS', 3); |
|
122 |
||
123 |
// Private messaging - Do NOT change these values
|
|
124 |
define('PRIVMSGS_HOLD_BOX', -4); |
|
125 |
define('PRIVMSGS_NO_BOX', -3); |
|
126 |
define('PRIVMSGS_OUTBOX', -2); |
|
127 |
define('PRIVMSGS_SENTBOX', -1); |
|
128 |
define('PRIVMSGS_INBOX', 0); |
|
129 |
||
130 |
// Full Folder Actions
|
|
131 |
define('FULL_FOLDER_NONE', -3); |
|
132 |
define('FULL_FOLDER_DELETE', -2); |
|
133 |
define('FULL_FOLDER_HOLD', -1); |
|
134 |
||
135 |
// Download Modes - Attachments
|
|
136 |
define('INLINE_LINK', 1); |
|
137 |
// This mode is only used internally to allow modders extending the attachment functionality
|
|
138 |
define('PHYSICAL_LINK', 2); |
|
139 |
||
140 |
// Confirm types
|
|
141 |
define('CONFIRM_REG', 1); |
|
142 |
define('CONFIRM_LOGIN', 2); |
|
143 |
define('CONFIRM_POST', 3); |
|
144 |
||
145 |
// Categories - Attachments
|
|
146 |
define('ATTACHMENT_CATEGORY_NONE', 0); |
|
147 |
define('ATTACHMENT_CATEGORY_IMAGE', 1); // Inline Images |
|
148 |
define('ATTACHMENT_CATEGORY_WM', 2); // Windows Media Files - Streaming |
|
149 |
define('ATTACHMENT_CATEGORY_RM', 3); // Real Media Files - Streaming |
|
150 |
define('ATTACHMENT_CATEGORY_THUMB', 4); // Not used within the database, only while displaying posts |
|
151 |
define('ATTACHMENT_CATEGORY_FLASH', 5); // Flash/SWF files |
|
152 |
define('ATTACHMENT_CATEGORY_QUICKTIME', 6); // Quicktime/Mov files |
|
153 |
||
154 |
// BBCode UID length
|
|
155 |
define('BBCODE_UID_LEN', 8); |
|
156 |
||
157 |
// Number of core BBCodes
|
|
158 |
define('NUM_CORE_BBCODES', 12); |
|
159 |
||
160 |
// Magic url types
|
|
161 |
define('MAGIC_URL_EMAIL', 1); |
|
162 |
define('MAGIC_URL_FULL', 2); |
|
163 |
define('MAGIC_URL_LOCAL', 3); |
|
164 |
define('MAGIC_URL_WWW', 4); |
|
165 |
||
166 |
// Profile Field Types
|
|
167 |
define('FIELD_INT', 1); |
|
168 |
define('FIELD_STRING', 2); |
|
169 |
define('FIELD_TEXT', 3); |
|
170 |
define('FIELD_BOOL', 4); |
|
171 |
define('FIELD_DROPDOWN', 5); |
|
172 |
define('FIELD_DATE', 6); |
|
173 |
||
174 |
||
175 |
// Additional constants
|
|
176 |
define('VOTE_CONVERTED', 9999); |
|
177 |
||
178 |
// Table names
|
|
179 |
define('ACL_GROUPS_TABLE', $table_prefix . 'acl_groups'); |
|
180 |
define('ACL_OPTIONS_TABLE', $table_prefix . 'acl_options'); |
|
181 |
define('ACL_ROLES_DATA_TABLE', $table_prefix . 'acl_roles_data'); |
|
182 |
define('ACL_ROLES_TABLE', $table_prefix . 'acl_roles'); |
|
183 |
define('ACL_USERS_TABLE', $table_prefix . 'acl_users'); |
|
184 |
define('ATTACHMENTS_TABLE', $table_prefix . 'attachments'); |
|
185 |
define('BANLIST_TABLE', $table_prefix . 'banlist'); |
|
186 |
define('BBCODES_TABLE', $table_prefix . 'bbcodes'); |
|
187 |
define('BOOKMARKS_TABLE', $table_prefix . 'bookmarks'); |
|
188 |
define('BOTS_TABLE', $table_prefix . 'bots'); |
|
189 |
define('CONFIG_TABLE', $table_prefix . 'config'); |
|
190 |
define('CONFIRM_TABLE', $table_prefix . 'confirm'); |
|
191 |
define('DISALLOW_TABLE', $table_prefix . 'disallow'); |
|
192 |
define('DRAFTS_TABLE', $table_prefix . 'drafts'); |
|
193 |
define('EXTENSIONS_TABLE', $table_prefix . 'extensions'); |
|
194 |
define('EXTENSION_GROUPS_TABLE', $table_prefix . 'extension_groups'); |
|
195 |
define('FORUMS_TABLE', $table_prefix . 'forums'); |
|
196 |
define('FORUMS_ACCESS_TABLE', $table_prefix . 'forums_access'); |
|
197 |
define('FORUMS_TRACK_TABLE', $table_prefix . 'forums_track'); |
|
198 |
define('FORUMS_WATCH_TABLE', $table_prefix . 'forums_watch'); |
|
199 |
define('GROUPS_TABLE', $table_prefix . 'groups'); |
|
200 |
define('ICONS_TABLE', $table_prefix . 'icons'); |
|
201 |
define('LANG_TABLE', $table_prefix . 'lang'); |
|
202 |
define('LOG_TABLE', $table_prefix . 'log'); |
|
203 |
define('MODERATOR_CACHE_TABLE', $table_prefix . 'moderator_cache'); |
|
204 |
define('MODULES_TABLE', $table_prefix . 'modules'); |
|
205 |
define('POLL_OPTIONS_TABLE', $table_prefix . 'poll_options'); |
|
206 |
define('POLL_VOTES_TABLE', $table_prefix . 'poll_votes'); |
|
207 |
define('POSTS_TABLE', $table_prefix . 'posts'); |
|
208 |
define('PRIVMSGS_TABLE', $table_prefix . 'privmsgs'); |
|
209 |
define('PRIVMSGS_FOLDER_TABLE', $table_prefix . 'privmsgs_folder'); |
|
210 |
define('PRIVMSGS_RULES_TABLE', $table_prefix . 'privmsgs_rules'); |
|
211 |
define('PRIVMSGS_TO_TABLE', $table_prefix . 'privmsgs_to'); |
|
212 |
define('PROFILE_FIELDS_TABLE', $table_prefix . 'profile_fields'); |
|
213 |
define('PROFILE_FIELDS_DATA_TABLE', $table_prefix . 'profile_fields_data'); |
|
214 |
define('PROFILE_FIELDS_LANG_TABLE', $table_prefix . 'profile_fields_lang'); |
|
215 |
define('PROFILE_LANG_TABLE', $table_prefix . 'profile_lang'); |
|
216 |
define('RANKS_TABLE', $table_prefix . 'ranks'); |
|
217 |
define('REPORTS_TABLE', $table_prefix . 'reports'); |
|
218 |
define('REPORTS_REASONS_TABLE', $table_prefix . 'reports_reasons'); |
|
219 |
define('SEARCH_RESULTS_TABLE', $table_prefix . 'search_results'); |
|
220 |
define('SEARCH_WORDLIST_TABLE', $table_prefix . 'search_wordlist'); |
|
221 |
define('SEARCH_WORDMATCH_TABLE', $table_prefix . 'search_wordmatch'); |
|
222 |
define('SESSIONS_TABLE', $table_prefix . 'sessions'); |
|
223 |
define('SESSIONS_KEYS_TABLE', $table_prefix . 'sessions_keys'); |
|
224 |
define('SITELIST_TABLE', $table_prefix . 'sitelist'); |
|
225 |
define('SMILIES_TABLE', $table_prefix . 'smilies'); |
|
226 |
define('STYLES_TABLE', $table_prefix . 'styles'); |
|
227 |
define('STYLES_TEMPLATE_TABLE', $table_prefix . 'styles_template'); |
|
228 |
define('STYLES_TEMPLATE_DATA_TABLE',$table_prefix . 'styles_template_data'); |
|
229 |
define('STYLES_THEME_TABLE', $table_prefix . 'styles_theme'); |
|
230 |
define('STYLES_IMAGESET_TABLE', $table_prefix . 'styles_imageset'); |
|
231 |
define('STYLES_IMAGESET_DATA_TABLE',$table_prefix . 'styles_imageset_data'); |
|
232 |
define('TOPICS_TABLE', $table_prefix . 'topics'); |
|
233 |
define('TOPICS_POSTED_TABLE', $table_prefix . 'topics_posted'); |
|
234 |
define('TOPICS_TRACK_TABLE', $table_prefix . 'topics_track'); |
|
235 |
define('TOPICS_WATCH_TABLE', $table_prefix . 'topics_watch'); |
|
236 |
define('USER_GROUP_TABLE', $table_prefix . 'user_group'); |
|
237 |
define('USERS_TABLE', $table_prefix . 'users'); |
|
238 |
define('WARNINGS_TABLE', $table_prefix . 'warnings'); |
|
239 |
define('WORDS_TABLE', $table_prefix . 'words'); |
|
240 |
define('ZEBRA_TABLE', $table_prefix . 'zebra'); |
|
241 |
||
242 |
// Additional tables
|
|
243 |
||
244 |
||
245 |
?>
|