Rev Author Line No. Line
130 kaklik 1 <?php
2 /***************************************************************************
3 * constants.php
4 * -------------------
5 * begin : Saturday', Feb 13', 2001
6 * copyright : ('C) 2001 The phpBB Group
7 * email : support@phpbb.com
8 *
9 * $Id: constants.php,v 1.47.2.6 2005/10/30 15:17:14 acydburn Exp $
10 *
11 *
12 ***************************************************************************/
13  
14 /***************************************************************************
15 *
16 * This program is free software; you can redistribute it and/or modify
17 * it under the terms of the GNU General Public License as published by
18 * the Free Software Foundation; either version 2 of the License', or
19 * ('at your option) any later version.
20 *
21 ***************************************************************************/
22  
23 if ( !defined('IN_PHPBB') )
24 {
25 die("Hacking attempt");
26 }
27  
28 // Debug Level
29 //define('DEBUG', 1); // Debugging on
30 define('DEBUG', 1); // Debugging off
31  
32  
33 // User Levels <- Do not change the values of USER or ADMIN
34 define('DELETED', -1);
35 define('ANONYMOUS', -1);
36  
37 define('USER', 0);
38 define('ADMIN', 1);
39 define('MOD', 2);
40  
41  
42 // User related
43 define('USER_ACTIVATION_NONE', 0);
44 define('USER_ACTIVATION_SELF', 1);
45 define('USER_ACTIVATION_ADMIN', 2);
46  
47 define('USER_AVATAR_NONE', 0);
48 define('USER_AVATAR_UPLOAD', 1);
49 define('USER_AVATAR_REMOTE', 2);
50 define('USER_AVATAR_GALLERY', 3);
51  
52  
53 // Group settings
54 define('GROUP_OPEN', 0);
55 define('GROUP_CLOSED', 1);
56 define('GROUP_HIDDEN', 2);
57  
58  
59 // Forum state
60 define('FORUM_UNLOCKED', 0);
61 define('FORUM_LOCKED', 1);
62  
63  
64 // Topic status
65 define('TOPIC_UNLOCKED', 0);
66 define('TOPIC_LOCKED', 1);
67 define('TOPIC_MOVED', 2);
68 define('TOPIC_WATCH_NOTIFIED', 1);
69 define('TOPIC_WATCH_UN_NOTIFIED', 0);
70  
71  
72 // Topic types
73 define('POST_NORMAL', 0);
74 define('POST_STICKY', 1);
75 define('POST_ANNOUNCE', 2);
76 define('POST_GLOBAL_ANNOUNCE', 3);
77  
78  
79 // SQL codes
80 define('BEGIN_TRANSACTION', 1);
81 define('END_TRANSACTION', 2);
82  
83  
84 // Error codes
85 define('GENERAL_MESSAGE', 200);
86 define('GENERAL_ERROR', 202);
87 define('CRITICAL_MESSAGE', 203);
88 define('CRITICAL_ERROR', 204);
89  
90  
91 // Private messaging
92 define('PRIVMSGS_READ_MAIL', 0);
93 define('PRIVMSGS_NEW_MAIL', 1);
94 define('PRIVMSGS_SENT_MAIL', 2);
95 define('PRIVMSGS_SAVED_IN_MAIL', 3);
96 define('PRIVMSGS_SAVED_OUT_MAIL', 4);
97 define('PRIVMSGS_UNREAD_MAIL', 5);
98  
99  
100 // URL PARAMETERS
101 define('POST_TOPIC_URL', 't');
102 define('POST_CAT_URL', 'c');
103 define('POST_FORUM_URL', 'f');
104 define('POST_USERS_URL', 'u');
105 define('POST_POST_URL', 'p');
106 define('POST_GROUPS_URL', 'g');
107  
108 // Session parameters
109 define('SESSION_METHOD_COOKIE', 100);
110 define('SESSION_METHOD_GET', 101);
111  
112  
113 // Page numbers for session handling
114 define('PAGE_INDEX', 0);
115 define('PAGE_LOGIN', -1);
116 define('PAGE_SEARCH', -2);
117 define('PAGE_REGISTER', -3);
118 define('PAGE_PROFILE', -4);
119 define('PAGE_VIEWONLINE', -6);
120 define('PAGE_VIEWMEMBERS', -7);
121 define('PAGE_FAQ', -8);
122 define('PAGE_POSTING', -9);
123 define('PAGE_PRIVMSGS', -10);
124 define('PAGE_GROUPCP', -11);
125 define('PAGE_TOPIC_OFFSET', 5000);
126  
127  
128 // Auth settings
129 define('AUTH_LIST_ALL', 0);
130 define('AUTH_ALL', 0);
131  
132 define('AUTH_REG', 1);
133 define('AUTH_ACL', 2);
134 define('AUTH_MOD', 3);
135 define('AUTH_ADMIN', 5);
136  
137 define('AUTH_VIEW', 1);
138 define('AUTH_READ', 2);
139 define('AUTH_POST', 3);
140 define('AUTH_REPLY', 4);
141 define('AUTH_EDIT', 5);
142 define('AUTH_DELETE', 6);
143 define('AUTH_ANNOUNCE', 7);
144 define('AUTH_STICKY', 8);
145 define('AUTH_POLLCREATE', 9);
146 define('AUTH_VOTE', 10);
147 define('AUTH_ATTACH', 11);
148  
149  
150 // Table names
151 define('CONFIRM_TABLE', $table_prefix.'confirm');
152 define('AUTH_ACCESS_TABLE', $table_prefix.'auth_access');
153 define('BANLIST_TABLE', $table_prefix.'banlist');
154 define('CATEGORIES_TABLE', $table_prefix.'categories');
155 define('CONFIG_TABLE', $table_prefix.'config');
156 define('DISALLOW_TABLE', $table_prefix.'disallow');
157 define('FORUMS_TABLE', $table_prefix.'forums');
158 define('GROUPS_TABLE', $table_prefix.'groups');
159 define('POSTS_TABLE', $table_prefix.'posts');
160 define('POSTS_TEXT_TABLE', $table_prefix.'posts_text');
161 define('PRIVMSGS_TABLE', $table_prefix.'privmsgs');
162 define('PRIVMSGS_TEXT_TABLE', $table_prefix.'privmsgs_text');
163 define('PRIVMSGS_IGNORE_TABLE', $table_prefix.'privmsgs_ignore');
164 define('PRUNE_TABLE', $table_prefix.'forum_prune');
165 define('RANKS_TABLE', $table_prefix.'ranks');
166 define('SEARCH_TABLE', $table_prefix.'search_results');
167 define('SEARCH_WORD_TABLE', $table_prefix.'search_wordlist');
168 define('SEARCH_MATCH_TABLE', $table_prefix.'search_wordmatch');
169 define('SESSIONS_TABLE', $table_prefix.'sessions');
170 define('SESSIONS_KEYS_TABLE', $table_prefix.'sessions_keys');
171 define('SMILIES_TABLE', $table_prefix.'smilies');
172 define('THEMES_TABLE', $table_prefix.'themes');
173 define('THEMES_NAME_TABLE', $table_prefix.'themes_name');
174 define('TOPICS_TABLE', $table_prefix.'topics');
175 define('TOPICS_WATCH_TABLE', $table_prefix.'topics_watch');
176 define('USER_GROUP_TABLE', $table_prefix.'user_group');
177 define('USERS_TABLE', $table_prefix.'users');
178 define('WORDS_TABLE', $table_prefix.'words');
179 define('VOTE_DESC_TABLE', $table_prefix.'vote_desc');
180 define('VOTE_RESULTS_TABLE', $table_prefix.'vote_results');
181 define('VOTE_USERS_TABLE', $table_prefix.'vote_voters');
182  
183 ?>