Verzeichnisstruktur phpBB-3.1.0


Veröffentlicht
27.10.2014

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