Subversion Repositories Applications.papyrus

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
831 florian 1
<?php
2
 
3
////////////////////////////////////////////////////////////////////////////////
4
//                                                                            //
5
//   Copyright (C) 2006  Phorum Development Team                              //
6
//   http://www.phorum.org                                                    //
7
//                                                                            //
8
//   This program is free software. You can redistribute it and/or modify     //
9
//   it under the terms of either the current Phorum License (viewable at     //
10
//   phorum.org) or the Phorum License that was distributed with this file    //
11
//                                                                            //
12
//   This program is distributed in the hope that it will be useful,          //
13
//   but WITHOUT ANY WARRANTY, without even the implied warranty of           //
14
//   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                     //
15
//                                                                            //
16
//   You should have received a copy of the Phorum License                    //
17
//   along with this program.                                                 //
18
////////////////////////////////////////////////////////////////////////////////
19
 
20
    if(!defined("PHORUM")) return;
21
 
22
    // put constants here that are configurable
23
    // these should be things that will not be changed
24
    // very often.  Things that are likely to be changed
25
    // by most admins should go in the admin.
26
 
27
    define("PHORUM_FILE_EXTENSION", "php");
28
 
29
    // number of messages remembered as new
30
    define("PHORUM_MAX_NEW_INFO", 1000);
31
 
32
    // can moderators view email addresses
33
    define("PHORUM_MOD_EMAIL_VIEW", true);
34
 
35
    // can moderators view user's ip
36
    define("PHORUM_MOD_IP_VIEW", true);
37
 
38
    // change the author's name on deleting the user
39
    define("PHORUM_DELETE_CHANGE_AUTHOR", true);
40
 
41
    // enforce the use of only unregistered names for unregistered users
42
    define("PHORUM_ENFORCE_UNREGISTERED_NAMES",true);
43
 
44
    // maximum time in seconds for having the message editor open
45
    // this is used in determining stale attachment files
46
    define("PHORUM_MAX_EDIT_TIME", 86400);
47
 
48
    // string used to separate things like items in the title tag.
49
    define("PHORUM_SEPARATOR", " :: ");
50
 
51
    // default TTL for cache-data if not specified different
52
    define('PHORUM_CACHE_DEFAULT_TTL',3600);
53
 
54
    // split-variable for file-based cache
55
    define('PHORUM_CACHE_SPLIT',4);
56
 
57
    // the replace string for masking bad words.
58
    define('PHORUM_BADWORD_REPLACE', '@#$%&');
59
 
60
    /////////////////////////////////////////
61
    //                                     //
62
    //     DO NOT EDIT BELOW THIS AREA     //
63
    //                                     //
64
    /////////////////////////////////////////
65
 
66
    // put constants here that need to stay the same value here.
67
 
68
    define("PHORUM_UPLOADS_SELECT", 0);
69
    define("PHORUM_UPLOADS_REG", 1);
70
 
71
    define("PHORUM_MODERATE_OFF", 0);
72
    define("PHORUM_MODERATE_ON", 1);
73
 
74
    define("PHORUM_EMAIL_MODERATOR_OFF", 0);
75
    define("PHORUM_EMAIL_MODERATOR_ON", 1);
76
 
77
    define("PHORUM_STATUS_APPROVED", 2);
78
    define("PHORUM_STATUS_HOLD", -1);
79
    define("PHORUM_STATUS_HIDDEN", -2);
80
 
81
    define("PHORUM_SORT_ANNOUNCEMENT", 0);
82
    define("PHORUM_SORT_STICKY", 1);
83
    define("PHORUM_SORT_DEFAULT", 2);
84
 
85
    define("PHORUM_THREADED_DEFAULT", 0);
86
    define("PHORUM_THREADED_ON", 1);
87
    define("PHORUM_THREADED_OFF", 2);
88
 
89
    define("PHORUM_SUBSCRIPTION_MESSAGE", 0);
90
    define("PHORUM_SUBSCRIPTION_DIGEST", 1);
91
    define("PHORUM_SUBSCRIPTION_BOOKMARK", 2);
92
 
93
    define("PHORUM_REGISTER_INSTANT_ACCESS", 0);
94
    define("PHORUM_REGISTER_VERIFY_EMAIL", 1);
95
    define("PHORUM_REGISTER_VERIFY_MODERATOR", 2);
96
    define("PHORUM_REGISTER_VERIFY_BOTH", 3);
97
 
98
    define("PHORUM_USER_PENDING_BOTH", -3);
99
    define("PHORUM_USER_PENDING_EMAIL", -2);
100
    define("PHORUM_USER_PENDING_MOD", -1);
101
    define("PHORUM_USER_INACTIVE", 0);
102
    define("PHORUM_USER_ACTIVE", 1);
103
 
104
    define("PHORUM_USER_ALLOW_READ", 1);
105
    define("PHORUM_USER_ALLOW_REPLY", 2);
106
    define("PHORUM_USER_ALLOW_EDIT", 4);
107
    define("PHORUM_USER_ALLOW_NEW_TOPIC", 8);
108
    define("PHORUM_USER_ALLOW_ATTACH", 32);
109
    define("PHORUM_USER_ALLOW_MODERATE_MESSAGES", 64);
110
    define("PHORUM_USER_ALLOW_MODERATE_USERS", 128);
111
    define("PHORUM_USER_ALLOW_FORUM_PROPERTIES", 256);
112
 
113
    define("PHORUM_MODERATE_ALLOWED_ANYWHERE", -1);
114
 
115
    define("PHORUM_USER_GROUP_REMOVE", -128);
116
    define("PHORUM_USER_GROUP_SUSPENDED", -1);
117
    define("PHORUM_USER_GROUP_UNAPPROVED", 0);
118
    define("PHORUM_USER_GROUP_APPROVED", 1);
119
    define("PHORUM_USER_GROUP_MODERATOR", 2);
120
 
121
    define("PHORUM_GROUP_CLOSED", 0);
122
    define("PHORUM_GROUP_OPEN", 1);
123
    define("PHORUM_GROUP_REQUIRE_APPROVAL", 2);
124
 
125
    define("PHORUM_NEWFLAG_MSG", 0);
126
    define("PHORUM_NEWFLAG_MIN_ID", 1);
127
 
128
    define("PHORUM_LINK_USER", "user");
129
    define("PHORUM_LINK_MESSAGE", "message");
130
    define("PHORUM_LINK_EDITOR", "editor");
131
 
132
    // Definitions for the PM system.
133
    // Special folders
134
    define("PHORUM_PM_INBOX", "inbox");
135
    define("PHORUM_PM_OUTBOX", "outbox");
136
    define("PHORUM_PM_ALLFOLDERS", "allfolder");
137
    // Flag types
138
    define("PHORUM_PM_READ_FLAG", "read_flag");
139
    define("PHORUM_PM_REPLY_FLAG", "reply_flag");
140
 
141
    // constants below here do not have to have a constant value,
142
    // as long as each is unique.  They are used for enumeration.
143
    // Add to them as you wish knowing that.
144
 
145
    $i=1;
146
 
147
    define("PHORUM_BAD_IPS", $i++);
148
    define("PHORUM_BAD_NAMES", $i++);
149
    define("PHORUM_BAD_EMAILS", $i++);
150
    define("PHORUM_BAD_WORDS", $i++);
151
    define("PHORUM_BAD_USERID", $i++);
152
    define("PHORUM_BAD_SPAM_WORDS", $i++);
153
 
154
    define("PHORUM_LIST_URL", $i++);
155
    define("PHORUM_READ_URL", $i++);
156
    define("PHORUM_FOREIGN_READ_URL", $i++);
157
    define("PHORUM_REPLY_URL", $i++);
158
    define("PHORUM_POSTING_URL", $i++);
159
    define("PHORUM_REDIRECT_URL", $i++);
160
    define("PHORUM_SEARCH_URL", $i++);
161
    define("PHORUM_SEARCH_ACTION_URL", $i++);
162
    define("PHORUM_DOWN_URL", $i++);
163
    define("PHORUM_VIOLATION_URL", $i++);
164
    define("PHORUM_USER_URL", $i++);
165
    define("PHORUM_INDEX_URL", $i++);
166
    define("PHORUM_LOGIN_URL", $i++);
167
    define("PHORUM_LOGIN_ACTION_URL", $i++);
168
    define("PHORUM_REGISTER_URL", $i++);
169
    define("PHORUM_REGISTER_ACTION_URL", $i++);
170
    define("PHORUM_PROFILE_URL", $i++);
171
    define("PHORUM_SUBSCRIBE_URL", $i++);
172
    define("PHORUM_MODERATION_URL", $i++);
173
    define("PHORUM_MODERATION_ACTION_URL", $i++);
174
    define("PHORUM_CONTROLCENTER_URL", $i++);
175
    define("PHORUM_CONTROLCENTER_ACTION_URL", $i++);
176
    define("PHORUM_PM_URL", $i++);
177
    define("PHORUM_PM_ACTION_URL", $i++);
178
    define("PHORUM_FILE_URL", $i++);
179
    define("PHORUM_GROUP_MODERATION_URL", $i++);
180
    define("PHORUM_FOLLOW_URL", $i++);
181
    define("PHORUM_FOLLOW_ACTION_URL", $i++);
182
    define("PHORUM_PREPOST_URL", $i++);
183
    define("PHORUM_REPORT_URL", $i++);
184
    define("PHORUM_RSS_URL", $i++);
185
    define("PHORUM_CUSTOM_URL", $i++);
186
    define("PHORUM_BASE_URL", $i++);
187
 
188
    define("PHORUM_DELETE_MESSAGE", $i++);
189
    define("PHORUM_DELETE_TREE", $i++);
190
    define("PHORUM_MOVE_THREAD", $i++);
191
    define("PHORUM_DO_THREAD_MOVE", $i++);
192
    define("PHORUM_CLOSE_THREAD", $i++);
193
    define("PHORUM_REOPEN_THREAD", $i++);
194
    define("PHORUM_APPROVE_MESSAGE", $i++);
195
    define("PHORUM_HIDE_POST", $i++);
196
    define("PHORUM_APPROVE_MESSAGE_TREE", $i++);
197
    define("PHORUM_MERGE_THREAD", $i++);
198
    define("PHORUM_DO_THREAD_MERGE", $i++);
199
    define("PHORUM_SPLIT_THREAD", $i++);
200
    define("PHORUM_DO_THREAD_SPLIT", $i++);
201
 
202
    define("PHORUM_SANITY_OK", $i++);
203
    define("PHORUM_SANITY_WARN", $i++);
204
    define("PHORUM_SANITY_CRIT", $i++);
205
 
206
    define("PHORUM_CC_SUMMARY", "summary");
207
    define("PHORUM_CC_SUBSCRIPTION_THREADS", "subthreads");
208
    define("PHORUM_CC_SUBSCRIPTION_FORUMS", "subforums");
209
    define("PHORUM_CC_USERINFO", "user");
210
    define("PHORUM_CC_SIGNATURE", "sig");
211
    define("PHORUM_CC_MAIL", "email");
212
    define("PHORUM_CC_BOARD", "forum");
213
    define("PHORUM_CC_PASSWORD", "password");
214
    define("PHORUM_CC_UNAPPROVED", "messages");
215
    define("PHORUM_CC_FILES", "files");
216
    define("PHORUM_CC_USERS", "users");
217
    define("PHORUM_CC_PM", "pm");
218
    define("PHORUM_CC_PRIVACY", "privacy");
219
    define("PHORUM_CC_GROUP_MODERATION", "groupmod");
220
    define("PHORUM_CC_GROUP_MEMBERSHIP", "groups");
221
 
222
?>