Verzeichnisstruktur phpBB-3.0.0
- Veröffentlicht
- 12.12.2007
So funktioniert es
|
Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück |
Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis. |
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
constants.php
001 <?php
002 /**
003 *
004 * @package phpBB3
005 * @version $Id$
006 * @copyright (c) 2005 phpBB Group
007 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
008 *
009 */
010
011 /**
012 * @ignore
013 */
014 if (!defined('IN_PHPBB'))
015 {
016 exit;
017 }
018
019 /**
020 * valid external constants:
021 * PHPBB_MSG_HANDLER
022 * PHPBB_DB_NEW_LINK
023 * PHPBB_ROOT_PATH
024 * PHPBB_ADMIN_PATH
025 */
026
027 // QA-related
028 // define('PHPBB_QA', 1);
029
030 // User related
031 define('ANONYMOUS', 1);
032
033 define('USER_ACTIVATION_NONE', 0);
034 define('USER_ACTIVATION_SELF', 1);
035 define('USER_ACTIVATION_ADMIN', 2);
036 define('USER_ACTIVATION_DISABLE', 3);
037
038 define('AVATAR_UPLOAD', 1);
039 define('AVATAR_REMOTE', 2);
040 define('AVATAR_GALLERY', 3);
041
042 define('USER_NORMAL', 0);
043 define('USER_INACTIVE', 1);
044 define('USER_IGNORE', 2);
045 define('USER_FOUNDER', 3);
046
047 define('INACTIVE_REGISTER', 1);
048 define('INACTIVE_PROFILE', 2);
049 define('INACTIVE_MANUAL', 3);
050 define('INACTIVE_REMIND', 4);
051
052 // ACL
053 define('ACL_NEVER', 0);
054 define('ACL_YES', 1);
055 define('ACL_NO', -1);
056
057 // Login error codes
058 define('LOGIN_CONTINUE', 1);
059 define('LOGIN_BREAK', 2);
060 define('LOGIN_SUCCESS', 3);
061 define('LOGIN_SUCCESS_CREATE_PROFILE', 20);
062 define('LOGIN_ERROR_USERNAME', 10);
063 define('LOGIN_ERROR_PASSWORD', 11);
064 define('LOGIN_ERROR_ACTIVE', 12);
065 define('LOGIN_ERROR_ATTEMPTS', 13);
066 define('LOGIN_ERROR_EXTERNAL_AUTH', 14);
067 define('LOGIN_ERROR_PASSWORD_CONVERT', 15);
068
069 // Group settings
070 define('GROUP_OPEN', 0);
071 define('GROUP_CLOSED', 1);
072 define('GROUP_HIDDEN', 2);
073 define('GROUP_SPECIAL', 3);
074 define('GROUP_FREE', 4);
075
076 // Forum/Topic states
077 define('FORUM_CAT', 0);
078 define('FORUM_POST', 1);
079 define('FORUM_LINK', 2);
080 define('ITEM_UNLOCKED', 0);
081 define('ITEM_LOCKED', 1);
082 define('ITEM_MOVED', 2);
083
084 // Forum Flags
085 define('FORUM_FLAG_LINK_TRACK', 1);
086 define('FORUM_FLAG_PRUNE_POLL', 2);
087 define('FORUM_FLAG_PRUNE_ANNOUNCE', 4);
088 define('FORUM_FLAG_PRUNE_STICKY', 8);
089 define('FORUM_FLAG_ACTIVE_TOPICS', 16);
090 define('FORUM_FLAG_POST_REVIEW', 32);
091
092 // Optional text flags
093 define('OPTION_FLAG_BBCODE', 1);
094 define('OPTION_FLAG_SMILIES', 2);
095 define('OPTION_FLAG_LINKS', 4);
096
097 // Topic types
098 define('POST_NORMAL', 0);
099 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 ?>