-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdcsetup.example.php
More file actions
223 lines (187 loc) · 8.66 KB
/
dcsetup.example.php
File metadata and controls
223 lines (187 loc) · 8.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
<?php
//////////////////////////////////////////////////////////////////////////
//
// dcsetup.php
//
// DCForum+ Version 1.27
// September 30, 2009
//
//
// This file is part of DCForum+
//
// DCForum+ is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// DCForum+ is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with DCForum+; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
//
//
// MODIFICATION HISTORY
//
// Dec 03, 2002 - V1.003 release
// Nov 17, 2002 - V1.002 release
// Nov 7, 2002 - V1.001 release
// Oct 30, 2002 - V1.000 release
// Sept 1, 2002 - v1.0 beta released
//
//
// $Id: dcsetup.php,v 1.8 2005/04/03 02:52:13 david Exp $
//
//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////
// Define configuration constants
//////////////////////////////////////////////////////////////////////////
// Define database-specific constants
// DB_HOST is the hostname of your dB...if your db resides on the same
// server as the web server, then it is localhost
const DB_HOST = "localhost";
// database name
const DB_NAME = "db_name";
// database username
const DB_USERNAME = "db_username";
// database password
const DB_PASSWORD = "db_password";
// URL of ROOT_DIR - defined in dcboard and dcadmin.php
// It is the URL of DCF+ folder (default, dc)
const ROOT_URL = "http://dcforum.test/";
// Cookie domain - this is your root domain name without "www"
// Note the "." in front of yourdomain
const COOKIE_DOMAIN = ".dcforum.test";
// Forum title as it will appear in the title bar of the browser
const DCFTITLE = "Forum title";
// Define backup directory - not implemented in 1.0x
// THIS DIRECTORY MUST BE SET TO 777
// AND MUST NOT BE VIEWABLE VIA BROWSER
// PUT IT IN A DIRECTORY WHERE YOU CAN ONLY ACCESS VIA FTP
// FOR EXAMPLE, cgi-bin. If your cgi-bin allows
// browsing of files, then rename backup directory
// so that no one can guess it
const BACKUP_DIR = "path to backup dir";
// Next three paramters, OLD_USER_INFO, OLD_MAIN_DIR, and OLD_PRIVATE_DIR
// is only needed if you need to
// import from DCF 6.2x data
// MUST SPECIFY FULL DIRECTORY PATH
// User_info directory
const OLD_USER_INFO = "old User_info directory";
// maindir
const OLD_MAIN_DIR = "old maindir directory";
// private_forums
const OLD_PRIVATE_DIR = "old private forums directory";
// DCForum+ Version variable
const DCFV = "DCForum+ Version 1.27.1-php8.1";
// DCForum+ Version variable
const DCCOPYRIGHT = "Powered by <a href='https://github.com/DCForum/dcforum' target='_blank'>" . DCFV . "</a> <br />Copyright 1997-2003 DCScripts.com";
// You many need to specify $root_dir if PhP's getcwd() doesn't work
// This is the main /dc directory location
$root_dir = getcwd();
define("ROOT_DIR", $root_dir);
///////////////////////////////////////////////////////////////
//
// DO NOT EDIT ANYTHING BELOW
//
///////////////////////////////////////////////////////////////
// If your server displays warning messages,
// try uncommenting following line
error_reporting(E_ERROR);
// define dcboard and dcadmin file constants
const DCF = "dcboard.php";
const DCA = "dcadmin.php";
const LIB_DIR = ROOT_DIR . "/lib";
const ADMIN_LIB_DIR = ROOT_DIR . "/admin_lib";
const INCLUDE_DIR = ROOT_DIR . "/include";
const TEMPLATE_DIR = ROOT_DIR . "/templates";
// User directory - this directory must be set to 777
const USER_DIR = ROOT_DIR . "/user_files";
const USER_URL = ROOT_URL . "/user_files";
// Temp directory - this directory must set to 777
const TEMP_DIR = ROOT_DIR . "/temp_files";
// DB directory / TODO what is this
//define("DB_DIR",MYSQL_DB_DIR . "/" . DB_NAME);
// define Image URL
const IMAGE_DIR = ROOT_DIR . "/images";
// define Image URL
const IMAGE_URL = "./images";
// define Image URL
const AVATAR_DIR = IMAGE_DIR . "/avatars";
// define Image URL
const AVATAR_URL = IMAGE_URL . "/avatars";
// Define cookie duration - make it very long
// This value is in days - default is 2 years
const COOKIE_DURATION = 730;
// database table names
const DB_SETUP = "dcsetup"; // configuration table
const DB_FORUM = "dcforum"; // forum table
const DB_MODERATOR = "dcmoderator"; // forum moderator table
const DB_GROUP = "dcgroup"; // user group table
const DB_FORUM_TYPE = "dcforumtype"; // forum type table
const DB_USER = "dcuser"; // user table
const DB_USER_RATING = "dcuserrating"; // user rating
const DB_MESG_ROOT = "mesg"; // message table root
const DB_TOPIC_RATING = "dctopicrating"; // topic rating table
const DB_FORUM_SUB = "dcforumsub"; // forum subscription table
const DB_TOPIC_SUB = "dctopicsub"; // topic subscription table
const DB_INBOX = "dcinbox"; // private inbox table
const DB_BOOKMARK = "dcbookmark"; // bookmark table
const DB_BUDDY = "dcbuddy"; // buddy list table
const DB_NOTE = "dcnote"; // notes table
const DB_USER_TIME_MARK = "dcusertimemark"; // user time mark
const DB_LOG = "dclog"; // forum log table
const DB_SESSION = "dcsession"; // sessions table
const DB_FAQ = "dcfaq"; // faq/help table
const DB_FAQ_TYPE = "dcfaqtype"; // faq/help table type
const DB_TIME = "dctime"; // time log table
const DB_UPLOAD = "dcupload"; // Upload file log table
const DB_NOTICE = "dcnotice"; // table for various notice texts
const DB_PRIVATE_FORUM_LIST = "dcpflist"; // Private Forum Access List
const DB_ANNOUNCEMENT = "dcannouncement"; // table for various notice texts
const DB_SEARCH_CACHE = "dcsearchcache"; // table for storing cached result
const DB_SEARCH_PARAM = "dcsearchparam"; // table for storing search parameters
const DB_POLL_CHOICES = "dcpollchoices"; // table for storing search parameters
const DB_POLL_VOTES = "dcpollvotes"; // table for storing search parameters
const DB_IP = "dcip"; // table for keeping IP addresses
const DB_SECURITY = "dcsecurity"; // table for keeping security errors
const DB_BAD_IP = "dcbadip"; // table for bad ip address
const DB_TASK = "dctask"; // table for keeping track of tasks
// following is added for DCF+ 1.1 - calendar tables
const DB_EVENT = "dcevent"; // table for keeping track of tasks
const DB_EVENT_TYPE = "dceventtype"; // table for keeping track of tasks
const DB_EVENT_REPEAT = "dceventrepeat"; // table for keeping track of tasks
// define cookie name
// This is a compressed cookie
const DC_COOKIE = "dccookie";
// define temporary session cookie name
// this cookie is persistent only for the duration of the session
const DC_TEMP_COOKIE = "dctempcookie";
// Various cookies set in dcsession// some of these are set in the forum settings
const DC_SESSION_KEY = "dcsk"; // Sesssion key, index of session db
const DC_SESSION_ID = "dcsi"; // unique session id
const DC_LAST_VISIT = "dclv"; // last visit time stamp
const DC_CURRENT_SESSION = "dccs"; // current session time stamp
const DC_TIME_STAMP = "dcts"; // time stamp for current browse
const DC_SORT_BY = "dcsb"; // topic sort field
const DC_DISCUSSION_MODE = "dcdm"; // discussion mode - linear or threaded
const DC_LIST_MODE = "dclm"; // list mode - collapsed or
const DC_MESSAGE_STYLE = "dcms"; // message style
const DC_DATE_LIMIT = "dcdl"; // date limit
const DC_TIME_ZONE = "dctz"; // time zone
const DC_USE_MARK = "dcum"; // use mark
const DC_POST_COOKIE = "dcpc";
const DC_EXPANDED_TOPICS = "dcet";
const DC_GUEST_NAME = "dcgn";
// added for 1.2
const DB_INBOX_LOG = "dcinboxlog"; // private inbox time log table
const LANG_DIR = ROOT_DIR . "/lang"; // language directory
const DC_LANGUAGE = "dcla"; // default language cookie
const DC_LIST_STYLE = "dcls"; // default list style mode
const DC_CONFERENCE_LIST_STYLE = "dccl"; // default list style mode
// added for 1.25+ (After 1.25)
const DC_SORT_BY_ORDER = "dcsbod"; // topic sort field
const DC_DAYLIGHT_SAVINGS = "dcds"; // daylight savings field