[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/includes/ -> constants.php (source)

   1  <?php
   2  /**
   3  *
   4  * @package phpBB3
   5  * @version $Id$
   6  * @copyright (c) 2005 phpBB Group
   7  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
   8  *
   9  */
  10  
  11  /**
  12  * @ignore
  13  */
  14  if (!defined('IN_PHPBB'))
  15  {
  16      exit;
  17  }
  18  
  19  /**
  20  * valid external constants:
  21  * PHPBB_MSG_HANDLER
  22  * PHPBB_DB_NEW_LINK
  23  * PHPBB_ROOT_PATH
  24  * PHPBB_ADMIN_PATH
  25  */
  26  
  27  // phpBB Version
  28  define('PHPBB_VERSION', '3.0.12');
  29  
  30  // QA-related
  31  // define('PHPBB_QA', 1);
  32  
  33  // User related
  34  define('ANONYMOUS', 1);
  35  
  36  define('USER_ACTIVATION_NONE', 0);
  37  define('USER_ACTIVATION_SELF', 1);
  38  define('USER_ACTIVATION_ADMIN', 2);
  39  define('USER_ACTIVATION_DISABLE', 3);
  40  
  41  define('AVATAR_UPLOAD', 1);
  42  define('AVATAR_REMOTE', 2);
  43  define('AVATAR_GALLERY', 3);
  44  
  45  define('USER_NORMAL', 0);
  46  define('USER_INACTIVE', 1);
  47  define('USER_IGNORE', 2);
  48  define('USER_FOUNDER', 3);
  49  
  50  define('INACTIVE_REGISTER', 1);
  51  define('INACTIVE_PROFILE', 2);
  52  define('INACTIVE_MANUAL', 3);
  53  define('INACTIVE_REMIND', 4);
  54  
  55  // ACL
  56  define('ACL_NEVER', 0);
  57  define('ACL_YES', 1);
  58  define('ACL_NO', -1);
  59  
  60  // Login error codes
  61  define('LOGIN_CONTINUE', 1);
  62  define('LOGIN_BREAK', 2);
  63  define('LOGIN_SUCCESS', 3);
  64  define('LOGIN_SUCCESS_CREATE_PROFILE', 20);
  65  define('LOGIN_ERROR_USERNAME', 10);
  66  define('LOGIN_ERROR_PASSWORD', 11);
  67  define('LOGIN_ERROR_ACTIVE', 12);
  68  define('LOGIN_ERROR_ATTEMPTS', 13);
  69  define('LOGIN_ERROR_EXTERNAL_AUTH', 14);
  70  define('LOGIN_ERROR_PASSWORD_CONVERT', 15);
  71  
  72  // Maximum login attempts
  73  // The value is arbitrary, but it has to fit into the user_login_attempts field.
  74  define('LOGIN_ATTEMPTS_MAX', 100);
  75  
  76  // Group settings
  77  define('GROUP_OPEN', 0);
  78  define('GROUP_CLOSED', 1);
  79  define('GROUP_HIDDEN', 2);
  80  define('GROUP_SPECIAL', 3);
  81  define('GROUP_FREE', 4);
  82  
  83  // Forum/Topic states
  84  define('FORUM_CAT', 0);
  85  define('FORUM_POST', 1);
  86  define('FORUM_LINK', 2);
  87  define('ITEM_UNLOCKED', 0);
  88  define('ITEM_LOCKED', 1);
  89  define('ITEM_MOVED', 2);
  90  
  91  // Forum Flags
  92  define('FORUM_FLAG_LINK_TRACK', 1);
  93  define('FORUM_FLAG_PRUNE_POLL', 2);
  94  define('FORUM_FLAG_PRUNE_ANNOUNCE', 4);
  95  define('FORUM_FLAG_PRUNE_STICKY', 8);
  96  define('FORUM_FLAG_ACTIVE_TOPICS', 16);
  97  define('FORUM_FLAG_POST_REVIEW', 32);
  98  define('FORUM_FLAG_QUICK_REPLY', 64);
  99  
 100  // Forum Options... sequential order. Modifications should begin at number 10 (number 29 is maximum)
 101  define('FORUM_OPTION_FEED_NEWS', 1);
 102  define('FORUM_OPTION_FEED_EXCLUDE', 2);
 103  
 104  // Optional text flags
 105  define('OPTION_FLAG_BBCODE', 1);
 106  define('OPTION_FLAG_SMILIES', 2);
 107  define('OPTION_FLAG_LINKS', 4);
 108  
 109  // Topic types
 110  define('POST_NORMAL', 0);
 111  define('POST_STICKY', 1);
 112  define('POST_ANNOUNCE', 2);
 113  define('POST_GLOBAL', 3);
 114  
 115  // Lastread types
 116  define('TRACK_NORMAL', 0);
 117  define('TRACK_POSTED', 1);
 118  
 119  // Notify methods
 120  define('NOTIFY_EMAIL', 0);
 121  define('NOTIFY_IM', 1);
 122  define('NOTIFY_BOTH', 2);
 123  
 124  // Notify status
 125  define('NOTIFY_YES', 0);
 126  define('NOTIFY_NO', 1);
 127  
 128  // Email Priority Settings
 129  define('MAIL_LOW_PRIORITY', 4);
 130  define('MAIL_NORMAL_PRIORITY', 3);
 131  define('MAIL_HIGH_PRIORITY', 2);
 132  
 133  // Log types
 134  define('LOG_ADMIN', 0);
 135  define('LOG_MOD', 1);
 136  define('LOG_CRITICAL', 2);
 137  define('LOG_USERS', 3);
 138  
 139  // Private messaging - Do NOT change these values
 140  define('PRIVMSGS_HOLD_BOX', -4);
 141  define('PRIVMSGS_NO_BOX', -3);
 142  define('PRIVMSGS_OUTBOX', -2);
 143  define('PRIVMSGS_SENTBOX', -1);
 144  define('PRIVMSGS_INBOX', 0);
 145  
 146  // Full Folder Actions
 147  define('FULL_FOLDER_NONE', -3);
 148  define('FULL_FOLDER_DELETE', -2);
 149  define('FULL_FOLDER_HOLD', -1);
 150  
 151  // Download Modes - Attachments
 152  define('INLINE_LINK', 1);
 153  // This mode is only used internally to allow modders extending the attachment functionality
 154  define('PHYSICAL_LINK', 2);
 155  
 156  // Confirm types
 157  define('CONFIRM_REG', 1);
 158  define('CONFIRM_LOGIN', 2);
 159  define('CONFIRM_POST', 3);
 160  define('CONFIRM_REPORT', 4);
 161  
 162  // Categories - Attachments
 163  define('ATTACHMENT_CATEGORY_NONE', 0);
 164  define('ATTACHMENT_CATEGORY_IMAGE', 1); // Inline Images
 165  define('ATTACHMENT_CATEGORY_WM', 2); // Windows Media Files - Streaming
 166  define('ATTACHMENT_CATEGORY_RM', 3); // Real Media Files - Streaming
 167  define('ATTACHMENT_CATEGORY_THUMB', 4); // Not used within the database, only while displaying posts
 168  define('ATTACHMENT_CATEGORY_FLASH', 5); // Flash/SWF files
 169  define('ATTACHMENT_CATEGORY_QUICKTIME', 6); // Quicktime/Mov files
 170  
 171  // BBCode UID length
 172  define('BBCODE_UID_LEN', 8);
 173  
 174  // Number of core BBCodes
 175  define('NUM_CORE_BBCODES', 12);
 176  
 177  // BBCode hard limit
 178  define('BBCODE_LIMIT', 1511);
 179  
 180  // Smiley hard limit
 181  define('SMILEY_LIMIT', 1000);
 182  
 183  // Magic url types
 184  define('MAGIC_URL_EMAIL', 1);
 185  define('MAGIC_URL_FULL', 2);
 186  define('MAGIC_URL_LOCAL', 3);
 187  define('MAGIC_URL_WWW', 4);
 188  
 189  // Profile Field Types
 190  define('FIELD_INT', 1);
 191  define('FIELD_STRING', 2);
 192  define('FIELD_TEXT', 3);
 193  define('FIELD_BOOL', 4);
 194  define('FIELD_DROPDOWN', 5);
 195  define('FIELD_DATE', 6);
 196  
 197  // referer validation
 198  define('REFERER_VALIDATE_NONE', 0);
 199  define('REFERER_VALIDATE_HOST', 1);
 200  define('REFERER_VALIDATE_PATH', 2);
 201  
 202  // phpbb_chmod() permissions
 203  @define('CHMOD_ALL', 7);
 204  @define('CHMOD_READ', 4);
 205  @define('CHMOD_WRITE', 2);
 206  @define('CHMOD_EXECUTE', 1);
 207  
 208  // Captcha code length
 209  define('CAPTCHA_MIN_CHARS', 4);
 210  define('CAPTCHA_MAX_CHARS', 7);
 211  
 212  // Additional constants
 213  define('VOTE_CONVERTED', 127);
 214  
 215  // Table names
 216  define('ACL_GROUPS_TABLE',            $table_prefix . 'acl_groups');
 217  define('ACL_OPTIONS_TABLE',            $table_prefix . 'acl_options');
 218  define('ACL_ROLES_DATA_TABLE',        $table_prefix . 'acl_roles_data');
 219  define('ACL_ROLES_TABLE',            $table_prefix . 'acl_roles');
 220  define('ACL_USERS_TABLE',            $table_prefix . 'acl_users');
 221  define('ATTACHMENTS_TABLE',            $table_prefix . 'attachments');
 222  define('BANLIST_TABLE',                $table_prefix . 'banlist');
 223  define('BBCODES_TABLE',                $table_prefix . 'bbcodes');
 224  define('BOOKMARKS_TABLE',            $table_prefix . 'bookmarks');
 225  define('BOTS_TABLE',                $table_prefix . 'bots');
 226  define('CONFIG_TABLE',                $table_prefix . 'config');
 227  define('CONFIRM_TABLE',                $table_prefix . 'confirm');
 228  define('DISALLOW_TABLE',            $table_prefix . 'disallow');
 229  define('DRAFTS_TABLE',                $table_prefix . 'drafts');
 230  define('EXTENSIONS_TABLE',            $table_prefix . 'extensions');
 231  define('EXTENSION_GROUPS_TABLE',    $table_prefix . 'extension_groups');
 232  define('FORUMS_TABLE',                $table_prefix . 'forums');
 233  define('FORUMS_ACCESS_TABLE',        $table_prefix . 'forums_access');
 234  define('FORUMS_TRACK_TABLE',        $table_prefix . 'forums_track');
 235  define('FORUMS_WATCH_TABLE',        $table_prefix . 'forums_watch');
 236  define('GROUPS_TABLE',                $table_prefix . 'groups');
 237  define('ICONS_TABLE',                $table_prefix . 'icons');
 238  define('LANG_TABLE',                $table_prefix . 'lang');
 239  define('LOG_TABLE',                    $table_prefix . 'log');
 240  define('LOGIN_ATTEMPT_TABLE',        $table_prefix . 'login_attempts');
 241  define('MODERATOR_CACHE_TABLE',        $table_prefix . 'moderator_cache');
 242  define('MODULES_TABLE',                $table_prefix . 'modules');
 243  define('POLL_OPTIONS_TABLE',        $table_prefix . 'poll_options');
 244  define('POLL_VOTES_TABLE',            $table_prefix . 'poll_votes');
 245  define('POSTS_TABLE',                $table_prefix . 'posts');
 246  define('PRIVMSGS_TABLE',            $table_prefix . 'privmsgs');
 247  define('PRIVMSGS_FOLDER_TABLE',        $table_prefix . 'privmsgs_folder');
 248  define('PRIVMSGS_RULES_TABLE',        $table_prefix . 'privmsgs_rules');
 249  define('PRIVMSGS_TO_TABLE',            $table_prefix . 'privmsgs_to');
 250  define('PROFILE_FIELDS_TABLE',        $table_prefix . 'profile_fields');
 251  define('PROFILE_FIELDS_DATA_TABLE',    $table_prefix . 'profile_fields_data');
 252  define('PROFILE_FIELDS_LANG_TABLE',    $table_prefix . 'profile_fields_lang');
 253  define('PROFILE_LANG_TABLE',        $table_prefix . 'profile_lang');
 254  define('RANKS_TABLE',                $table_prefix . 'ranks');
 255  define('REPORTS_TABLE',                $table_prefix . 'reports');
 256  define('REPORTS_REASONS_TABLE',        $table_prefix . 'reports_reasons');
 257  define('SEARCH_RESULTS_TABLE',        $table_prefix . 'search_results');
 258  define('SEARCH_WORDLIST_TABLE',        $table_prefix . 'search_wordlist');
 259  define('SEARCH_WORDMATCH_TABLE',    $table_prefix . 'search_wordmatch');
 260  define('SESSIONS_TABLE',            $table_prefix . 'sessions');
 261  define('SESSIONS_KEYS_TABLE',        $table_prefix . 'sessions_keys');
 262  define('SITELIST_TABLE',            $table_prefix . 'sitelist');
 263  define('SMILIES_TABLE',                $table_prefix . 'smilies');
 264  define('STYLES_TABLE',                $table_prefix . 'styles');
 265  define('STYLES_TEMPLATE_TABLE',        $table_prefix . 'styles_template');
 266  define('STYLES_TEMPLATE_DATA_TABLE',$table_prefix . 'styles_template_data');
 267  define('STYLES_THEME_TABLE',        $table_prefix . 'styles_theme');
 268  define('STYLES_IMAGESET_TABLE',        $table_prefix . 'styles_imageset');
 269  define('STYLES_IMAGESET_DATA_TABLE',$table_prefix . 'styles_imageset_data');
 270  define('TOPICS_TABLE',                $table_prefix . 'topics');
 271  define('TOPICS_POSTED_TABLE',        $table_prefix . 'topics_posted');
 272  define('TOPICS_TRACK_TABLE',        $table_prefix . 'topics_track');
 273  define('TOPICS_WATCH_TABLE',        $table_prefix . 'topics_watch');
 274  define('USER_GROUP_TABLE',            $table_prefix . 'user_group');
 275  define('USERS_TABLE',                $table_prefix . 'users');
 276  define('WARNINGS_TABLE',            $table_prefix . 'warnings');
 277  define('WORDS_TABLE',                $table_prefix . 'words');
 278  define('ZEBRA_TABLE',                $table_prefix . 'zebra');
 279  
 280  // Additional tables
 281  
 282  
 283  ?>


Generated: Wed Oct 2 15:03:47 2013 Cross-referenced by PHPXref 0.7.1