[ Index ]

PHP Cross Reference of phpBB-3.1.10-deutsch

title

Body

[close]

/includes/ -> constants.php (source)

   1  <?php
   2  /**
   3  *
   4  * This file is part of the phpBB Forum Software package.
   5  *
   6  * @copyright (c) phpBB Limited <https://www.phpbb.com>
   7  * @license GNU General Public License, version 2 (GPL-2.0)
   8  *
   9  * For full copyright and license information, please see
  10  * the docs/CREDITS.txt file.
  11  *
  12  */
  13  
  14  /**
  15  * @ignore
  16  */
  17  if (!defined('IN_PHPBB'))
  18  {
  19      exit;
  20  }
  21  
  22  /**
  23  * valid external constants:
  24  * PHPBB_MSG_HANDLER
  25  * PHPBB_DB_NEW_LINK
  26  * PHPBB_ROOT_PATH
  27  * PHPBB_ADMIN_PATH
  28  */
  29  
  30  // phpBB Version
  31  define('PHPBB_VERSION', '3.1.10');
  32  
  33  // QA-related
  34  // define('PHPBB_QA', 1);
  35  
  36  // User related
  37  define('ANONYMOUS', 1);
  38  
  39  define('USER_ACTIVATION_NONE', 0);
  40  define('USER_ACTIVATION_SELF', 1);
  41  define('USER_ACTIVATION_ADMIN', 2);
  42  define('USER_ACTIVATION_DISABLE', 3);
  43  
  44  define('AVATAR_UPLOAD', 1);
  45  define('AVATAR_REMOTE', 2);
  46  define('AVATAR_GALLERY', 3);
  47  
  48  define('USER_NORMAL', 0);
  49  define('USER_INACTIVE', 1);
  50  define('USER_IGNORE', 2);
  51  define('USER_FOUNDER', 3);
  52  
  53  define('INACTIVE_REGISTER', 1); // Newly registered account
  54  define('INACTIVE_PROFILE', 2); // Profile details changed
  55  define('INACTIVE_MANUAL', 3); // Account deactivated by administrator
  56  define('INACTIVE_REMIND', 4); // Forced user account reactivation
  57  
  58  // ACL
  59  define('ACL_NEVER', 0);
  60  define('ACL_YES', 1);
  61  define('ACL_NO', -1);
  62  
  63  // Login error codes
  64  define('LOGIN_CONTINUE', 1);
  65  define('LOGIN_BREAK', 2);
  66  define('LOGIN_SUCCESS', 3);
  67  define('LOGIN_SUCCESS_CREATE_PROFILE', 20);
  68  define('LOGIN_SUCCESS_LINK_PROFILE', 21);
  69  define('LOGIN_ERROR_USERNAME', 10);
  70  define('LOGIN_ERROR_PASSWORD', 11);
  71  define('LOGIN_ERROR_ACTIVE', 12);
  72  define('LOGIN_ERROR_ATTEMPTS', 13);
  73  define('LOGIN_ERROR_EXTERNAL_AUTH', 14);
  74  define('LOGIN_ERROR_PASSWORD_CONVERT', 15);
  75  
  76  // Maximum login attempts
  77  // The value is arbitrary, but it has to fit into the user_login_attempts field.
  78  define('LOGIN_ATTEMPTS_MAX', 100);
  79  
  80  // Group settings
  81  define('GROUP_OPEN', 0);
  82  define('GROUP_CLOSED', 1);
  83  define('GROUP_HIDDEN', 2);
  84  define('GROUP_SPECIAL', 3);
  85  define('GROUP_FREE', 4);
  86  
  87  // Forum/Topic states
  88  define('FORUM_CAT', 0);
  89  define('FORUM_POST', 1);
  90  define('FORUM_LINK', 2);
  91  define('ITEM_UNLOCKED', 0);
  92  define('ITEM_LOCKED', 1);
  93  define('ITEM_MOVED', 2);
  94  
  95  define('ITEM_UNAPPROVED', 0); // => has not yet been approved
  96  define('ITEM_APPROVED', 1); // => has been approved, and has not been soft deleted
  97  define('ITEM_DELETED', 2); // => has been soft deleted
  98  define('ITEM_REAPPROVE', 3); // => has been edited and needs to be re-approved
  99  
 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


Generated: Sun Feb 19 19:52:41 2017 Cross-referenced by PHPXref 0.7.1