1 rizwank 1.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.2 2002/12/21 19:09:57 psotfx 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 rizwank 1.1
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 rizwank 1.1 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 rizwank 1.1 // 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 rizwank 1.1 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 rizwank 1.1 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 rizwank 1.1
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 rizwank 1.1
149
150 // Table names
151 define('AUTH_ACCESS_TABLE', $table_prefix.'auth_access');
152 define('BANLIST_TABLE', $table_prefix.'banlist');
153 define('CATEGORIES_TABLE', $table_prefix.'categories');
154 define('CONFIG_TABLE', $table_prefix.'config');
155 define('DISALLOW_TABLE', $table_prefix.'disallow');
156 define('FORUMS_TABLE', $table_prefix.'forums');
157 define('GROUPS_TABLE', $table_prefix.'groups');
158 define('POSTS_TABLE', $table_prefix.'posts');
159 define('POSTS_TEXT_TABLE', $table_prefix.'posts_text');
160 define('PRIVMSGS_TABLE', $table_prefix.'privmsgs');
161 define('PRIVMSGS_TEXT_TABLE', $table_prefix.'privmsgs_text');
162 define('PRIVMSGS_IGNORE_TABLE', $table_prefix.'privmsgs_ignore');
163 define('PRUNE_TABLE', $table_prefix.'forum_prune');
164 define('RANKS_TABLE', $table_prefix.'ranks');
165 define('SEARCH_TABLE', $table_prefix.'search_results');
166 define('SEARCH_WORD_TABLE', $table_prefix.'search_wordlist');
167 define('SEARCH_MATCH_TABLE', $table_prefix.'search_wordmatch');
168 define('SESSIONS_TABLE', $table_prefix.'sessions');
169 rizwank 1.1 define('SMILIES_TABLE', $table_prefix.'smilies');
170 define('THEMES_TABLE', $table_prefix.'themes');
171 define('THEMES_NAME_TABLE', $table_prefix.'themes_name');
172 define('TOPICS_TABLE', $table_prefix.'topics');
173 define('TOPICS_WATCH_TABLE', $table_prefix.'topics_watch');
174 define('USER_GROUP_TABLE', $table_prefix.'user_group');
175 define('USERS_TABLE', $table_prefix.'users');
176 define('WORDS_TABLE', $table_prefix.'words');
177 define('VOTE_DESC_TABLE', $table_prefix.'vote_desc');
178 define('VOTE_RESULTS_TABLE', $table_prefix.'vote_results');
179 define('VOTE_USERS_TABLE', $table_prefix.'vote_voters');
180
181 ?>
|