Verzeichnisstruktur phpBB-3.3.15


Veröffentlicht
28.08.2024

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.
Auf den Verzeichnisnamen klicken, dies zeigt nur das Verzeichnis mit Inhalt an

(Beispiel Datei-Icons)

Auf das Icon klicken um den Quellcode anzuzeigen

constants.php

Zuletzt modifiziert: 02.04.2025, 15:01 - Dateigröße: 10.09 KiB


001  <?php
002  /**
003  *
004  * This file is part of the phpBB Forum Software package.
005  *
006  * @copyright (c) phpBB Limited <https://www.phpbb.com>
007  * @license GNU General Public License, version 2 (GPL-2.0)
008  *
009  * For full copyright and license information, please see
010  * the docs/CREDITS.txt file.
011  *
012  */
013   
014  /**
015  * @ignore
016  */
017  if (!defined('IN_PHPBB'))
018  {
019      exit;
020  }
021   
022  /**
023  * valid external constants:
024  * PHPBB_MSG_HANDLER
025  * PHPBB_DB_NEW_LINK
026  * PHPBB_ROOT_PATH
027  * PHPBB_ADMIN_PATH
028  */
029   
030  // phpBB Version
031  @define('PHPBB_VERSION', '3.3.15');
032   
033  // QA-related
034  // define('PHPBB_QA', 1);
035   
036  // User related
037  define('ANONYMOUS', 1);
038   
039  define('USER_ACTIVATION_NONE', 0);
040  define('USER_ACTIVATION_SELF', 1);
041  define('USER_ACTIVATION_ADMIN', 2);
042  define('USER_ACTIVATION_DISABLE', 3);
043   
044  define('AVATAR_UPLOAD', 1);
045  define('AVATAR_REMOTE', 2);
046  define('AVATAR_GALLERY', 3);
047   
048  define('USER_NORMAL', 0);
049  define('USER_INACTIVE', 1);
050  define('USER_IGNORE', 2);
051  define('USER_FOUNDER', 3);
052   
053  define('INACTIVE_REGISTER', 1); // Newly registered account
054  define('INACTIVE_PROFILE', 2); // Profile details changed
055  define('INACTIVE_MANUAL', 3); // Account deactivated by administrator
056  define('INACTIVE_REMIND', 4); // Forced user account reactivation
057   
058  // ACL
059  define('ACL_NEVER', 0);
060  define('ACL_YES', 1);
061  define('ACL_NO', -1);
062   
063  // Login error codes
064  define('LOGIN_CONTINUE', 1);
065  define('LOGIN_BREAK', 2);
066  define('LOGIN_SUCCESS', 3);
067  define('LOGIN_SUCCESS_CREATE_PROFILE', 20);
068  define('LOGIN_SUCCESS_LINK_PROFILE', 21);
069  define('LOGIN_ERROR_USERNAME', 10);
070  define('LOGIN_ERROR_PASSWORD', 11);
071  define('LOGIN_ERROR_ACTIVE', 12);
072  define('LOGIN_ERROR_ATTEMPTS', 13);
073  define('LOGIN_ERROR_EXTERNAL_AUTH', 14);
074  define('LOGIN_ERROR_PASSWORD_CONVERT', 15);
075   
076  // Maximum login attempts
077  // The value is arbitrary, but it has to fit into the user_login_attempts field.
078  define('LOGIN_ATTEMPTS_MAX', 100);
079   
080  // Group settings
081  define('GROUP_OPEN', 0);
082  define('GROUP_CLOSED', 1);
083  define('GROUP_HIDDEN', 2);
084  define('GROUP_SPECIAL', 3);
085  define('GROUP_FREE', 4);
086   
087  // Forum/Topic states
088  define('FORUM_CAT', 0);
089  define('FORUM_POST', 1);
090  define('FORUM_LINK', 2);
091  define('ITEM_UNLOCKED', 0);
092  define('ITEM_LOCKED', 1);
093  define('ITEM_MOVED', 2);
094   
095  define('ITEM_UNAPPROVED', 0); // => has not yet been approved
096  define('ITEM_APPROVED', 1); // => has been approved, and has not been soft deleted
097  define('ITEM_DELETED', 2); // => has been soft deleted
098  define('ITEM_REAPPROVE', 3); // => has been edited and needs to be re-approved
099   
100  // Forum Flags
101  define('FORUM_FLAG_LINK_TRACK', 1);
102  define('FORUM_FLAG_PRUNE_POLL', 2);
103  define('FORUM_FLAG_PRUNE_ANNOUNCE', 4);
104  define('FORUM_FLAG_PRUNE_STICKY', 8);
105  define('FORUM_FLAG_ACTIVE_TOPICS', 16);
106  define('FORUM_FLAG_POST_REVIEW', 32);
107  define('FORUM_FLAG_QUICK_REPLY', 64);
108   
109  // Forum Options... sequential order. Modifications should begin at number 10 (number 29 is maximum)
110  define('FORUM_OPTION_FEED_NEWS', 1);
111  define('FORUM_OPTION_FEED_EXCLUDE', 2);
112   
113  // Optional text flags
114  define('OPTION_FLAG_BBCODE', 1);
115  define('OPTION_FLAG_SMILIES', 2);
116  define('OPTION_FLAG_LINKS', 4);
117   
118  // Topic types
119  define('POST_NORMAL', 0);
120  define('POST_STICKY', 1);
121  define('POST_ANNOUNCE', 2);
122  define('POST_GLOBAL', 3);
123   
124  // Lastread types
125  define('TRACK_NORMAL', 0);
126  define('TRACK_POSTED', 1);
127   
128  // Notify methods
129  define('NOTIFY_EMAIL', 0);
130  define('NOTIFY_IM', 1);
131  define('NOTIFY_BOTH', 2);
132   
133  // Notify status
134  define('NOTIFY_YES', 0);
135  define('NOTIFY_NO', 1);
136   
137  // Email Priority Settings
138  define('MAIL_LOW_PRIORITY', 4);
139  define('MAIL_NORMAL_PRIORITY', 3);
140  define('MAIL_HIGH_PRIORITY', 2);
141   
142  // Log types
143  define('LOG_ADMIN', 0);
144  define('LOG_MOD', 1);
145  define('LOG_CRITICAL', 2);
146  define('LOG_USERS', 3);
147   
148  // Private messaging - Do NOT change these values
149  define('PRIVMSGS_HOLD_BOX', -4);
150  define('PRIVMSGS_NO_BOX', -3);
151  define('PRIVMSGS_OUTBOX', -2);
152  define('PRIVMSGS_SENTBOX', -1);
153  define('PRIVMSGS_INBOX', 0);
154   
155  // Full Folder Actions
156  define('FULL_FOLDER_NONE', -3);
157  define('FULL_FOLDER_DELETE', -2);
158  define('FULL_FOLDER_HOLD', -1);
159   
160  // Download Modes - Attachments
161  define('INLINE_LINK', 1);
162  // This mode is only used internally to allow modders extending the attachment functionality
163  define('PHYSICAL_LINK', 2);
164   
165  // Confirm types
166  define('CONFIRM_REG', 1);
167  define('CONFIRM_LOGIN', 2);
168  define('CONFIRM_POST', 3);
169  define('CONFIRM_REPORT', 4);
170   
171  // Categories - Attachments
172  define('ATTACHMENT_CATEGORY_NONE', 0);
173  define('ATTACHMENT_CATEGORY_IMAGE', 1); // Inline Images
174  define('ATTACHMENT_CATEGORY_THUMB', 4); // Not used within the database, only while displaying posts
175   
176  // BBCode UID length
177  define('BBCODE_UID_LEN', 8);
178   
179  // Number of core BBCodes
180  define('NUM_CORE_BBCODES', 12);
181  define('NUM_PREDEFINED_BBCODES', 22);
182   
183  // BBCode IDs
184  define('BBCODE_ID_QUOTE', 0);
185  define('BBCODE_ID_B', 1);
186  define('BBCODE_ID_I', 2);
187  define('BBCODE_ID_URL', 3);
188  define('BBCODE_ID_IMG', 4);
189  define('BBCODE_ID_SIZE', 5);
190  define('BBCODE_ID_COLOR', 6);
191  define('BBCODE_ID_U', 7);
192  define('BBCODE_ID_CODE', 8);
193  define('BBCODE_ID_LIST', 9);
194  define('BBCODE_ID_EMAIL', 10);
195  define('BBCODE_ID_FLASH', 11);
196  define('BBCODE_ID_ATTACH', 12);
197   
198  // BBCode hard limit
199  define('BBCODE_LIMIT', 1511);
200   
201  // Smiley hard limit
202  define('SMILEY_LIMIT', 1000);
203   
204  // Magic url types
205  define('MAGIC_URL_EMAIL', 1);
206  define('MAGIC_URL_FULL', 2);
207  define('MAGIC_URL_LOCAL', 3);
208  define('MAGIC_URL_WWW', 4);
209   
210  // Profile Field Types
211  define('FIELD_INT', 1);
212  define('FIELD_STRING', 2);
213  define('FIELD_TEXT', 3);
214  define('FIELD_BOOL', 4);
215  define('FIELD_DROPDOWN', 5);
216  define('FIELD_DATE', 6);
217   
218  // referer validation
219  define('REFERER_VALIDATE_NONE', 0);
220  define('REFERER_VALIDATE_HOST', 1);
221  define('REFERER_VALIDATE_PATH', 2);
222   
223  // phpbb_chmod() permissions
224  @define('CHMOD_ALL', 7); // @deprecated 3.2.10
225  @define('CHMOD_READ', 4); // @deprecated 3.2.10
226  @define('CHMOD_WRITE', 2); // @deprecated 3.2.10
227  @define('CHMOD_EXECUTE', 1); // @deprecated 3.2.10
228   
229  // Captcha code length
230  define('CAPTCHA_MIN_CHARS', 4);
231  define('CAPTCHA_MAX_CHARS', 7);
232   
233  // Additional constants
234  define('VOTE_CONVERTED', 127);
235   
236  // BC global FTW
237  global $table_prefix;
238   
239  // Table names
240  define('ACL_GROUPS_TABLE',            $table_prefix . 'acl_groups');
241  define('ACL_OPTIONS_TABLE',            $table_prefix . 'acl_options');
242  define('ACL_ROLES_DATA_TABLE',        $table_prefix . 'acl_roles_data');
243  define('ACL_ROLES_TABLE',            $table_prefix . 'acl_roles');
244  define('ACL_USERS_TABLE',            $table_prefix . 'acl_users');
245  define('ATTACHMENTS_TABLE',            $table_prefix . 'attachments');
246  define('BANLIST_TABLE',                $table_prefix . 'banlist');
247  define('BBCODES_TABLE',                $table_prefix . 'bbcodes');
248  define('BOOKMARKS_TABLE',            $table_prefix . 'bookmarks');
249  define('BOTS_TABLE',                $table_prefix . 'bots');
250  if (!defined('CONFIG_TABLE'))
251  {
252      define('CONFIG_TABLE',            $table_prefix . 'config');
253  }
254  define('CONFIG_TEXT_TABLE',            $table_prefix . 'config_text');
255  define('CONFIRM_TABLE',                $table_prefix . 'confirm');
256  define('DISALLOW_TABLE',            $table_prefix . 'disallow');
257  define('DRAFTS_TABLE',                $table_prefix . 'drafts');
258  define('EXT_TABLE',                    $table_prefix . 'ext');
259  define('EXTENSIONS_TABLE',            $table_prefix . 'extensions');
260  define('EXTENSION_GROUPS_TABLE',    $table_prefix . 'extension_groups');
261  define('FORUMS_TABLE',                $table_prefix . 'forums');
262  define('FORUMS_ACCESS_TABLE',        $table_prefix . 'forums_access');
263  define('FORUMS_TRACK_TABLE',        $table_prefix . 'forums_track');
264  define('FORUMS_WATCH_TABLE',        $table_prefix . 'forums_watch');
265  define('GROUPS_TABLE',                $table_prefix . 'groups');
266  define('ICONS_TABLE',                $table_prefix . 'icons');
267  define('LANG_TABLE',                $table_prefix . 'lang');
268  define('LOG_TABLE',                    $table_prefix . 'log');
269  define('LOGIN_ATTEMPT_TABLE',        $table_prefix . 'login_attempts');
270  define('MIGRATIONS_TABLE',            $table_prefix . 'migrations');
271  define('MODERATOR_CACHE_TABLE',        $table_prefix . 'moderator_cache');
272  define('MODULES_TABLE',                $table_prefix . 'modules');
273  define('NOTIFICATION_TYPES_TABLE',    $table_prefix . 'notification_types');
274  define('NOTIFICATIONS_TABLE',        $table_prefix . 'notifications');
275  define('POLL_OPTIONS_TABLE',        $table_prefix . 'poll_options');
276  define('POLL_VOTES_TABLE',            $table_prefix . 'poll_votes');
277  define('POSTS_TABLE',                $table_prefix . 'posts');
278  define('PRIVMSGS_TABLE',            $table_prefix . 'privmsgs');
279  define('PRIVMSGS_FOLDER_TABLE',        $table_prefix . 'privmsgs_folder');
280  define('PRIVMSGS_RULES_TABLE',        $table_prefix . 'privmsgs_rules');
281  define('PRIVMSGS_TO_TABLE',            $table_prefix . 'privmsgs_to');
282  define('PROFILE_FIELDS_TABLE',        $table_prefix . 'profile_fields');
283  define('PROFILE_FIELDS_DATA_TABLE',    $table_prefix . 'profile_fields_data');
284  define('PROFILE_FIELDS_LANG_TABLE',    $table_prefix . 'profile_fields_lang');
285  define('PROFILE_LANG_TABLE',        $table_prefix . 'profile_lang');
286  define('RANKS_TABLE',                $table_prefix . 'ranks');
287  define('REPORTS_TABLE',                $table_prefix . 'reports');
288  define('REPORTS_REASONS_TABLE',        $table_prefix . 'reports_reasons');
289  define('SEARCH_RESULTS_TABLE',        $table_prefix . 'search_results');
290  define('SEARCH_WORDLIST_TABLE',        $table_prefix . 'search_wordlist');
291  define('SEARCH_WORDMATCH_TABLE',    $table_prefix . 'search_wordmatch');
292  define('SESSIONS_TABLE',            $table_prefix . 'sessions');
293  define('SESSIONS_KEYS_TABLE',        $table_prefix . 'sessions_keys');
294  define('SITELIST_TABLE',            $table_prefix . 'sitelist');
295  define('SMILIES_TABLE',                $table_prefix . 'smilies');
296  define('SPHINX_TABLE',                $table_prefix . 'sphinx');
297  define('STYLES_TABLE',                $table_prefix . 'styles');
298  define('STYLES_TEMPLATE_TABLE',        $table_prefix . 'styles_template');
299  define('STYLES_TEMPLATE_DATA_TABLE',$table_prefix . 'styles_template_data');
300  define('STYLES_THEME_TABLE',        $table_prefix . 'styles_theme');
301  define('STYLES_IMAGESET_TABLE',        $table_prefix . 'styles_imageset');
302  define('STYLES_IMAGESET_DATA_TABLE',$table_prefix . 'styles_imageset_data');
303  define('TEAMPAGE_TABLE',            $table_prefix . 'teampage');
304  define('TOPICS_TABLE',                $table_prefix . 'topics');
305  define('TOPICS_POSTED_TABLE',        $table_prefix . 'topics_posted');
306  define('TOPICS_TRACK_TABLE',        $table_prefix . 'topics_track');
307  define('TOPICS_WATCH_TABLE',        $table_prefix . 'topics_watch');
308  define('USER_GROUP_TABLE',            $table_prefix . 'user_group');
309  define('USER_NOTIFICATIONS_TABLE',    $table_prefix . 'user_notifications');
310  define('USERS_TABLE',                $table_prefix . 'users');
311  define('WARNINGS_TABLE',            $table_prefix . 'warnings');
312  define('WORDS_TABLE',                $table_prefix . 'words');
313  define('ZEBRA_TABLE',                $table_prefix . 'zebra');
314   
315  // Additional tables
316