/
config_inc.php
277 lines (223 loc) · 9.67 KB
/
config_inc.php
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
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
<?
# Mantis - a php based bugtracking system
# Copyright (C) 2000 Kenzaburo Ito - kenito@300baud.org
# This program is distributed under the terms and conditions of the GPL
# See the files README and LICENSE for details
###########################################################################
### CONFIGURATION VARIABLES ###
###########################################################################
#--------------------
# database variables
$g_hostname = "localhost"; # set this
$g_port = 3306; # set this if not default
$g_db_username = "root"; # set this
$g_db_password = ""; # set this
$g_database_name = "bugtracker"; # set this
#--------------------
#--------------------
# path to your installation as seen from the web browser
$g_path = "/mantis/"; # requires trailing /
#--------------------
#--------------------
# extensions for php 3 and php 4
# set this to php for php4 or whatever your webserver needs
$g_php = ".php3";
#--------------------
#--------------------
# table name prefix
# if you change this remember to reflect the changes in the database
$g_db_table_prefix = "mantis";
#--------------------
#--------------------
# email variables
$g_administrator_email = "administrator@mydomain.com"; # set this
$g_webmaster_email = "webmaster@mydomain.com"; # set this
#--------------------
#--------------------
# sitewide titles
$g_window_title = "Mantis"; # browser window title
$g_page_title = "Mantis"; # title at top of html page
#--------------------
#--------------------
# toggling advanced interfaces # 1 to enable - 0 to disable
$g_show_advanced_report = 1;
$g_show_advanced_update = 1;
$g_show_version = 0;
# display a link at the bottom of the page to show the PHP source
# requires PHP4
# 0 = disabled; 1 = admin only; 2 = anyone
$g_show_source = 0;
# set to 0 to disable the logged in user and time info
$g_show_login_date_info = 1;
# change to language you want... choices are:
# english
$g_language = "english";
#--------------------
#--------------------
# time for coookie to live in seconds
$g_time_length = 30000000; # 1 year
# time to delay between page redirects
$g_wait_time = 1; # in seconds
#--------------------
#--------------------
# limit the number of news items to be displayed on the main page
$g_news_view_limit = 5;
#--------------------
#--------------------
# defaults for viewing preferences
$g_default_limit_view = 50;
$g_default_show_changed = 6;
$g_default_advanced_report = ""; # set to on to enable
$g_default_advanced_view = ""; # set to on to enable
#--------------------
#--------------------
# bugnote ordering
# change to ASC or DESC
$g_bugnote_order = "ASC";
#--------------------
#--------------------
# date lengths to count bugs by
# folows the english required by strtotime()
$g_date_partitions = array("1 day","3 days","1 week","1 month","1 year");
#--------------------
#--------------------
# html table appearance variables
$g_primary_table_tags = "";
#--------------------
#--------------------
# color values
$g_white_color = "#ffffff"; # white
$g_primary_color_dark = "#d8d8d8"; # gray
$g_primary_color_light = "#e8e8e8"; # light gray
$g_primary_border_color = "#aaaaaa"; # dark gray
$g_category_title_color = "#c8c8e8"; # bluish
$g_category_title_color2 = "#c0c0c8"; # gray bluish
$g_table_title_color = "#ffffff"; # white
$g_required_field_color = "#aa0000"; # redish
$g_new_color = "#ffa0a0"; # red
$g_feedback_color = "#ff50a8"; # purple
$g_acknowledged_color = "#ffd850"; # orange
$g_confirmed_color = "#ffffb0"; # yellow
$g_assigned_color = "#c8c8ff"; # blue
$g_resolved_color = "#ffffff"; # not used in default
#--------------------
#--------------------
# set this to a unique identifier
$g_cookie_prefix = "MANTIS";
# cookie names
$g_string_cookie = $g_cookie_prefix."_STRING_COOKIE";
# cookie values
$g_string_cookie_val = $HTTP_COOKIE_VARS[$g_string_cookie];
#--------------------
#--------------------
# database table names
$g_mantis_bug_table = $g_db_table_prefix."_bug_table";
$g_mantis_bug_text_table = $g_db_table_prefix."_bug_text_table";
$g_mantis_bugnote_table = $g_db_table_prefix."_bugnote_table";
$g_mantis_bugnote_text_table = $g_db_table_prefix."_bugnote_text_table";
$g_mantis_news_table = $g_db_table_prefix."_news_table";
$g_mantis_user_table = $g_db_table_prefix."_user_table";
$g_mantis_user_profile_table = $g_db_table_prefix."_user_profile_table";
$g_mantis_user_pref_table = $g_db_table_prefix."_user_pref_table";
#--------------------
#--------------------
# core file variables
$g_core_API_file = "core_API.php";
$g_meta_include_file = "meta_inc.php";
$g_menu_include_file = "menu_inc.php";
#--------------------
#--------------------
# bugnote includes
$g_bugnote_include_file = "bugnote_inc.php";
$g_bugnote_add_include_file = "bugnote_add_inc.php";
#--------------------
#--------------------
# css
$g_css_include_file = "css_inc.php";
#--------------------
#--------------------
# page names
$g_index = "index".$g_php;
$g_main_page = "main_page".$g_php;
# bug view/update
$g_view_bug_all_page = "view_bug_all_page".$g_php;
$g_view_bug_page = "view_bug_page".$g_php;
$g_view_bug_advanced_page = "view_bug_advanced_page".$g_php;
$g_bug_delete_page = "bug_delete_page".$g_php;
$g_bug_delete = "bug_delete".$g_php;
$g_bug_update_page = "bug_update_page".$g_php;
$g_bug_update_advanced_page = "bug_update_advanced_page".$g_php;
$g_bug_update = "bug_update".$g_php;
$g_bug_reopen_page = "bug_reopen_page".$g_php;
$g_bug_resolve_page = "bug_resolve_page".$g_php;
$g_bug_resolve_page2 = "bug_resolve_page2".$g_php;
# vote
$g_bug_vote_add = "bug_vote_add".$g_php;
# bugnote
$g_bugnote_add_page = "bugnote_add_page".$g_php;
$g_bugnote_add = "bugnote_add".$g_php;
$g_bugnote_delete = "bugnote_delete".$g_php;
# report bug
$g_report_bug_page = "report_bug_page".$g_php;
$g_report_bug_advanced_page = "report_bug_advanced_page".$g_php;
$g_report_add = "report_add".$g_php;
# summary
$g_summary_page = "summary_page".$g_php;
# user feedback
$g_view_user_reported_bug_page = "view_user_reported_bug_page".$g_php;
$g_view_user_assigned_bug_page = "view_user_assigned_bug_page".$g_php;
# account
$g_account_page = "account_page".$g_php;
$g_account_update = "account_update".$g_php;
$g_account_delete_page = "account_delete_page".$g_php;
$g_account_delete = "account_delete".$g_php;
$g_account_profile_manage_page = "account_profile_manage_page".$g_php;
$g_account_profile_add = "account_profile_add".$g_php;
$g_account_profile_edit_page = "account_profile_edit_page".$g_php;
$g_account_profile_update = "account_profile_update".$g_php;
$g_account_profile_delete = "account_profile_delete".$g_php;
$g_account_profile_make_default = "account_profile_make_default".$g_php;
$g_account_prefs_page = "account_prefs_page".$g_php;
$g_account_prefs_update = "account_prefs_update".$g_php;
$g_account_prefs_reset = "account_prefs_reset".$g_php;
# site management
$g_manage_page = "manage_page".$g_php;
$g_manage_create_new_user = "manage_create_new_user".$g_php;
$g_manage_create_user_page = "manage_create_user_page".$g_php;
$g_manage_user_page = "manage_user_page".$g_php;
$g_manage_user_update = "manage_user_update".$g_php;
$g_manage_user_reset = "manage_user_reset".$g_php;
$g_manage_user_delete_page = "manage_user_delete_page".$g_php;
$g_manage_user_delete = "manage_user_delete".$g_php;
$g_documentation_page = "documentation_page".$g_php;
# category management
$g_manage_category_page = "manage_category_page".$g_php;
$g_manage_category_update = "manage_category_update".$g_php;
$g_manage_product_versions_page = "manage_product_versions_page".$g_php;
$g_manage_product_versions_update = "manage_product_versions_update".$g_php;
# news
$g_news_menu_page = "news_menu_page".$g_php;
$g_news_edit_page = "news_edit_page".$g_php;
$g_news_add = "news_add".$g_php;
$g_news_update = "news_update".$g_php;
$g_news_delete_page = "news_delete_page".$g_php;
$g_news_delete = "news_delete".$g_php;
# userland documentation
$g_usage_doc_page = "documentation.html";
# login
$g_login = "login".$g_php;
$g_login_page = "login_page".$g_php;
$g_login_error_page = "login_error_page".$g_php;
$g_login_success_page = "index".$g_php;
$g_logout_page = "logout_page".$g_php;
$g_logout_redirect_page = ".";
# debug only
$g_show_source_page = "show_source_page".$g_php;
# errors
$g_mysql_error_page = "mysql_error_page".$g_php;
#--------------------
#--------------------
#version
$g_mantis_version = "0.13.0";
#--------------------
?>