Verzeichnisstruktur phpBB-3.2.0


Veröffentlicht
06.01.2017

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: 09.10.2024, 12:51 - Dateigröße: 10.29 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.2.0');
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_WM', 2); // Windows Media Files - Streaming - @deprecated 3.2
175  define('ATTACHMENT_CATEGORY_RM', 3); // Real Media Files - Streaming - @deprecated 3.2
176  define('ATTACHMENT_CATEGORY_THUMB', 4); // Not used within the database, only while displaying posts
177  define('ATTACHMENT_CATEGORY_FLASH', 5); // Flash/SWF files
178  define('ATTACHMENT_CATEGORY_QUICKTIME', 6); // Quicktime/Mov files - @deprecated 3.2
179   
180  // BBCode UID length
181  define('BBCODE_UID_LEN', 8);
182   
183  // Number of core BBCodes
184  define('NUM_CORE_BBCODES', 12);
185  define('NUM_PREDEFINED_BBCODES', 22);
186   
187  // BBCode IDs
188  define('BBCODE_ID_QUOTE', 0);
189  define('BBCODE_ID_B', 1);
190  define('BBCODE_ID_I', 2);
191  define('BBCODE_ID_URL', 3);
192  define('BBCODE_ID_IMG', 4);
193  define('BBCODE_ID_SIZE', 5);
194  define('BBCODE_ID_COLOR', 6);
195  define('BBCODE_ID_U', 7);
196  define('BBCODE_ID_CODE', 8);
197  define('BBCODE_ID_LIST', 9);
198  define('BBCODE_ID_EMAIL', 10);
199  define('BBCODE_ID_FLASH', 11);
200  define('BBCODE_ID_ATTACH', 12);
201   
202  // BBCode hard limit
203  define('BBCODE_LIMIT', 1511);
204   
205  // Smiley hard limit
206  define('SMILEY_LIMIT', 1000);
207   
208  // Magic url types
209  define('MAGIC_URL_EMAIL', 1);
210  define('MAGIC_URL_FULL', 2);
211  define('MAGIC_URL_LOCAL', 3);
212  define('MAGIC_URL_WWW', 4);
213   
214  // Profile Field Types
215  define('FIELD_INT', 1);
216  define('FIELD_STRING', 2);
217  define('FIELD_TEXT', 3);
218  define('FIELD_BOOL', 4);
219  define('FIELD_DROPDOWN', 5);
220  define('FIELD_DATE', 6);
221   
222  // referer validation
223  define('REFERER_VALIDATE_NONE', 0);
224  define('REFERER_VALIDATE_HOST', 1);
225  define('REFERER_VALIDATE_PATH', 2);
226   
227  // phpbb_chmod() permissions
228  @define('CHMOD_ALL', 7);
229  @define('CHMOD_READ', 4);
230  @define('CHMOD_WRITE', 2);
231  @define('CHMOD_EXECUTE', 1);
232   
233  // Captcha code length
234  define('CAPTCHA_MIN_CHARS', 4);
235  define('CAPTCHA_MAX_CHARS', 7);
236   
237  // Additional constants
238  define('VOTE_CONVERTED', 127);
239   
240  // BC global FTW
241  global $table_prefix;
242   
243  // Table names
244  define('ACL_GROUPS_TABLE',            $table_prefix . 'acl_groups');
245  define('ACL_OPTIONS_TABLE',            $table_prefix . 'acl_options');
246  define('ACL_ROLES_DATA_TABLE',        $table_prefix . 'acl_roles_data');
247  define('ACL_ROLES_TABLE',            $table_prefix . 'acl_roles');
248  define('ACL_USERS_TABLE',            $table_prefix . 'acl_users');
249  define('ATTACHMENTS_TABLE',            $table_prefix . 'attachments');
250  define('BANLIST_TABLE',                $table_prefix . 'banlist');
251  define('BBCODES_TABLE',                $table_prefix . 'bbcodes');
252  define('BOOKMARKS_TABLE',            $table_prefix . 'bookmarks');
253  define('BOTS_TABLE',                $table_prefix . 'bots');
254  @define('CONFIG_TABLE',                $table_prefix . 'config');
255  define('CONFIG_TEXT_TABLE',            $table_prefix . 'config_text');
256  define('CONFIRM_TABLE',                $table_prefix . 'confirm');
257  define('DISALLOW_TABLE',            $table_prefix . 'disallow');
258  define('DRAFTS_TABLE',                $table_prefix . 'drafts');
259  define('EXT_TABLE',                    $table_prefix . 'ext');
260  define('EXTENSIONS_TABLE',            $table_prefix . 'extensions');
261  define('EXTENSION_GROUPS_TABLE',    $table_prefix . 'extension_groups');
262  define('FORUMS_TABLE',                $table_prefix . 'forums');
263  define('FORUMS_ACCESS_TABLE',        $table_prefix . 'forums_access');
264  define('FORUMS_TRACK_TABLE',        $table_prefix . 'forums_track');
265  define('FORUMS_WATCH_TABLE',        $table_prefix . 'forums_watch');
266  define('GROUPS_TABLE',                $table_prefix . 'groups');
267  define('ICONS_TABLE',                $table_prefix . 'icons');
268  define('LANG_TABLE',                $table_prefix . 'lang');
269  define('LOG_TABLE',                    $table_prefix . 'log');
270  define('LOGIN_ATTEMPT_TABLE',        $table_prefix . 'login_attempts');
271  define('MIGRATIONS_TABLE',            $table_prefix . 'migrations');
272  define('MODERATOR_CACHE_TABLE',        $table_prefix . 'moderator_cache');
273  define('MODULES_TABLE',                $table_prefix . 'modules');
274  define('NOTIFICATION_TYPES_TABLE',    $table_prefix . 'notification_types');
275  define('NOTIFICATIONS_TABLE',        $table_prefix . 'notifications');
276  define('POLL_OPTIONS_TABLE',        $table_prefix . 'poll_options');
277  define('POLL_VOTES_TABLE',            $table_prefix . 'poll_votes');
278  define('POSTS_TABLE',                $table_prefix . 'posts');
279  define('PRIVMSGS_TABLE',            $table_prefix . 'privmsgs');
280  define('PRIVMSGS_FOLDER_TABLE',        $table_prefix . 'privmsgs_folder');
281  define('PRIVMSGS_RULES_TABLE',        $table_prefix . 'privmsgs_rules');
282  define('PRIVMSGS_TO_TABLE',            $table_prefix . 'privmsgs_to');
283  define('PROFILE_FIELDS_TABLE',        $table_prefix . 'profile_fields');
284  define('PROFILE_FIELDS_DATA_TABLE',    $table_prefix . 'profile_fields_data');
285  define('PROFILE_FIELDS_LANG_TABLE',    $table_prefix . 'profile_fields_lang');
286  define('PROFILE_LANG_TABLE',        $table_prefix . 'profile_lang');
287  define('RANKS_TABLE',                $table_prefix . 'ranks');
288  define('REPORTS_TABLE',                $table_prefix . 'reports');
289  define('REPORTS_REASONS_TABLE',        $table_prefix . 'reports_reasons');
290  define('SEARCH_RESULTS_TABLE',        $table_prefix . 'search_results');
291  define('SEARCH_WORDLIST_TABLE',        $table_prefix . 'search_wordlist');
292  define('SEARCH_WORDMATCH_TABLE',    $table_prefix . 'search_wordmatch');
293  define('SESSIONS_TABLE',            $table_prefix . 'sessions');
294  define('SESSIONS_KEYS_TABLE',        $table_prefix . 'sessions_keys');
295  define('SITELIST_TABLE',            $table_prefix . 'sitelist');
296  define('SMILIES_TABLE',                $table_prefix . 'smilies');
297  define('SPHINX_TABLE',                $table_prefix . 'sphinx');
298  define('STYLES_TABLE',                $table_prefix . 'styles');
299  define('STYLES_TEMPLATE_TABLE',        $table_prefix . 'styles_template');
300  define('STYLES_TEMPLATE_DATA_TABLE',$table_prefix . 'styles_template_data');
301  define('STYLES_THEME_TABLE',        $table_prefix . 'styles_theme');
302  define('STYLES_IMAGESET_TABLE',        $table_prefix . 'styles_imageset');
303  define('STYLES_IMAGESET_DATA_TABLE',$table_prefix . 'styles_imageset_data');
304  define('TEAMPAGE_TABLE',            $table_prefix . 'teampage');
305  define('TOPICS_TABLE',                $table_prefix . 'topics');
306  define('TOPICS_POSTED_TABLE',        $table_prefix . 'topics_posted');
307  define('TOPICS_TRACK_TABLE',        $table_prefix . 'topics_track');
308  define('TOPICS_WATCH_TABLE',        $table_prefix . 'topics_watch');
309  define('USER_GROUP_TABLE',            $table_prefix . 'user_group');
310  define('USER_NOTIFICATIONS_TABLE',    $table_prefix . 'user_notifications');
311  define('USERS_TABLE',                $table_prefix . 'users');
312  define('WARNINGS_TABLE',            $table_prefix . 'warnings');
313  define('WORDS_TABLE',                $table_prefix . 'words');
314  define('ZEBRA_TABLE',                $table_prefix . 'zebra');
315   
316  // Additional tables
317