source: branches/posledni/forum/includes/constants.php

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