/
config_defaults_inc.php
896 lines (715 loc) · 32.2 KB
/
config_defaults_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
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
<?php
# Mantis - a php based bugtracking system
# Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
# Copyright (C) 2002 - 2003 Mantis Team - mantisbt-dev@lists.sourceforge.net
# This program is distributed under the terms and conditions of the GPL
# See the README and LICENSE files for details
# --------------------------------------------------------
# $Id: config_defaults_inc.php,v 1.64 2003-01-24 00:09:05 vboctor Exp $
# --------------------------------------------------------
###########################################################################
# CONFIGURATION VARIABLES
###########################################################################
# config_defaults_inc.php
# This file should not be changed. If you want to override any of the values
# defined here, define them in a file called custom_config_inc.php, which will
# be loaded after this file.
# In general a value of OFF means the feature is disabled and ON means the
# feature is enabled. Any other cases will have an explanation.
# Look in configuration.html for more detailed comments.
################################
# Mantis Database Settings
################################
# --- database variables ---------
# set these values to match your setup
$g_hostname = 'localhost';
$g_port = 3306; # 3306 is default
$g_db_username = 'root';
$g_db_password = '';
$g_database_name = 'bugtracker';
############################
# Mantis Path Settings
############################
# --- path variables --------------
# path to your installation as seen from the web browser
# requires trailing /
if ( isset ( $_SERVER['PHP_SELF'] ) ) {
$t_protocol = 'http';
if ( isset( $_SERVER['HTTPS'] ) && ( $_SERVER['HTTPS'] != 'off' ) ) {
$t_protocol = 'https';
}
$t_port = ':' . $_SERVER['SERVER_PORT'];
if ( ( ':80' == $t_port && 'http' == $t_protocol )
|| ( ':443' == $t_port && 'https' == $t_protocol )) {
$t_port = '';
}
if ( isset( $_SERVER['HTTP_HOST'] ) ) {
$t_host = $_SERVER['HTTP_HOST'];
} else if ( isset( $_SERVER['SERVER_NAME'] ) ) {
$t_host = $_SERVER['SERVER_NAME'] . $t_port;
} else if ( isset( $_SERVER['SERVER_ADDR'] ) ) {
$t_host = $_SERVER['SERVER_ADDR'] . $t_port;
} else {
$t_host = 'yourhostnamehere';
}
$t_path = dirname( $_SERVER['PHP_SELF'] );
if ( '/' == $t_path || '\\' == $t_path ) {
$t_path = '';
}
$g_path = $t_protocol . '://' . $t_host . $t_path . '/';
} else {
$g_path = 'http://yourhostnamehere/mantis/';
}
# path to your images directory (for icons)
# requires trailing /
$g_icon_path = $g_path . 'images/';
# absolute path to your installation. Requires trailing / or \
# Symbolic links are allowed since release 0.17.3
$g_absolute_path = dirname( __FILE__ ) . DIRECTORY_SEPARATOR;
# absolute patch to your core files. The default is usually OK,
# unless you moved the 'core' directory out of your webroot (recommended).
$g_core_path = $g_absolute_path . 'core' . DIRECTORY_SEPARATOR;
#############################
# Web Server
#############################
# Using Microsoft Internet Information Server (IIS)
$g_use_iis = OFF;
#############################
# Mantis Email Settings
#############################
# --- email variables -------------
$g_administrator_email = 'administrator@nowhere';
$g_webmaster_email = 'webmaster@nowhere';
# the 'From: ' field in emails
$g_from_email = 'noreply@nowhere';
# the 'To: ' address all emails are sent. This can be a mailing list or archive address.
# Actual users are emailed via the bcc: fields
$g_to_email = 'nobody@nowhere';
# the return address for bounced mail
$g_return_path_email = 'admin@nowhere';
# allow users to signup for their own accounts
$g_allow_signup = ON;
# if ON users will be sent their password when reset.
# if OFF the password will be set to blank.
$g_send_reset_password = ON;
# allow email notification
$g_enable_email_notification = ON;
# Associated with each action a list of flags to control who should be notified.
# The default will be used if the action is not included in $g_notify_flags or
# if the flag is not included in the specific action definition.
# The list of actions include: new, assigned, resolved, bugnote, reopened, closed, deleted, feedback
# In case you need to override the threshold for the 'admin' group in the custom_config_inc.php, use:
# $g_default_notify_flags['admin'] = OFF;
$g_default_notify_flags = array('reporter' => ON,
'handler' => ON,
'manager' => ON,
'monitor' => ON,
'admin' => ON,
'bugnotes' => ON,
'threshold' => NOBODY);
# Following is the definition of the differences between the "new" action and the default.
# In case you need to override the threshold for the new action in custom_config_inc.php, use:
# $g_notify_flags['new']['threshold'] = MANAGER;
$g_notify_flags['new'] = array('bugnotes' => OFF,
'monitor' => OFF);
# set to OFF to disable email check
$g_validate_email = ON;
$g_check_mx_record = ON;
# if ON, allow the user to omit an email field
# note if you allow users to create their own accounts, they
# must specify an email at that point, no matter what the value
# of this option is. Otherwise they wouldn't get their passwords.
$g_allow_blank_email = ON;
# Only allow and send email to addresses in the given domain
# For example:
# $g_limit_email_domain = 'users.sourceforge.net';
$g_limit_email_domain = OFF;
# This specifies the access level that is needed to get the mailto: links.
$g_show_user_email_threshold = NOBODY;
# Set to OFF to remove X-Priority header
$g_use_x_priority = ON;
# Set to OFF on Windows systems, as long as php-mail-function has its bcc-bug (~PHP 4.0.6)
$g_use_bcc = ON;
# some Mail transfer agents (MTAs) don't like bare linefeeds...
# or they take good input and create barelinefeeds
# If problems occur when sending mail through your server try turning this OFF
# more here: http://pobox.com/~djb/docs/smtplf.html
$g_mail_send_crlf = OFF;
# phpMailer instead of standard mail() function (REQUIRES PHP 4.x.x)
# Get the phpMailer-package from http://phpmailer.sourceforge.net
# The installation is very simple you only need 2 plain text php-files
# class.smtp.php
# class.phpmailer.php
# Copy these files to your php-include-dir i.e. 'c:\php\includes' or
# '/usr/lib/php/includes'
# and add this path to the 'include_path'-entry in the php.ini file.
# The installation is described in the readme and there is also a simple
# example.
# PhpMailer comes with a detailed documentation in phpdoc format.
$g_use_phpMailer = OFF;
# select the method to mail by:
# 0 - mail()
# 1 - sendmail
# 2 - SMTP
$g_phpMailer_method = 0;
# This option allows you to use a remote SMTP host. Must use the phpMailer script
# Name of smtp host, needed for phpMailer, taken from php.ini
$g_smtp_host = 'localhost';
# Specify whether e-mails should be sent with the category set or not. This is tested
# with Microsoft Outlook. More testing for this feature + other formats will be added
# in the future.
# OFF, EMAIL_CATEGORY_PROJECT_CATEGORY (format: [Project] Category)
$g_email_set_category = OFF;
# --- email separator and padding ------------
$g_email_separator1 = str_pad('', 70, '=');
$g_email_separator2 = str_pad('', 70, '-');
$g_email_padding_length = 28;
#############################
# Mantis Version String
#############################
# --- version variables -----------
$g_mantis_version = '0.18.0-CVS';
$g_show_version = ON;
################################
# Mantis Language Settings
################################
# --- language settings -----------
$g_default_language = 'english';
# list the choices that the users are allowed to choose
$g_language_choices_arr = array( 'english', 'chinese_simplified', 'chinese_traditional', 'czech', 'danish', 'dutch', 'french', 'german', 'hungarian', 'italian', 'japanese_euc', 'japanese_sjis', 'korean', 'norwegian', 'polish', 'portuguese_brazil', 'portuguese_standard', 'romanian', 'russian', 'russian_koi8', 'spanish', 'swedish', 'turkish' );
###############################
# Mantis Display Settings
###############################
# --- sitewide variables ----------
$g_window_title = 'Mantis'; # browser window title
$g_page_title = 'Mantis'; # title at top of html page
# --- project name -----------------
# show the project name in the page title
# 0 / OFF : no project name
# 1 / ON : project name and any additional
# 2 : only project name
$g_show_project_in_title = ON;
# --- advanced views --------------
# BOTH, SIMPLE_ONLY, ADVANCED_ONLY
$g_show_report = BOTH;
$g_show_update = BOTH;
$g_show_view = BOTH;
# --- footer menu -----------------
# Display another instance of the menu at the bottom. The top menu will still remain.
$g_show_footer_menu = OFF;
# --- show extra menu bar with all available projects ---
$g_show_project_menu_bar = OFF;
# --- show assigned to names ------
# This is in the view all pages
$g_show_assigned_names = ON;
# --- show priority as icon ---
# OFF: Shows priority as icon in view all bugs page
# ON: Shows priority as text in view all bugs page
$g_show_priority_text = OFF;
# --- show projects when in All Projects mode ---
$g_show_bug_project_links = ON;
# --- Position of the status colour legend, can be: STATUS_LEGEND_POSITION_*
# --- see constant_inc.php. (*: BOTTOM or TOP)
$g_status_legend_position = STATUS_LEGEND_POSITION_BOTTOM;
############################
# Mantis JPGRAPH Addon
############################
# --- jpgraph settings --- #
# Initial Version from Duncan Lisset
#
# To use the Jpgraph addon you need the JPGRAPH package from
# http://www.aditus.nu/jpgraph/index.php
# You can place the package whereever you want, but you have
# to set the var in jpgraph.php eg.
# (DEFINE('DIR_BASE','/www/mantisbt/jpgraph/');)
$g_use_jpgraph = OFF;
$g_jpgraph_path = '.' . DIRECTORY_SEPARATOR . 'jpgraph' . DIRECTORY_SEPARATOR; # dont forget the ending slash!
############################
# Mantis Time Settings
############################
# --- time varaibles --------------
# time for 'permanent' cookie to live in seconds (1 year)
$g_cookie_time_length = 30000000;
# time to delay between page redirects (in seconds)
$g_wait_time = 2;
# minutes to wait before document is stale (in minutes)
$g_content_expire = 0;
############################
# Mantis Date Settings
############################
# --- date format settings --------
# date format strings (default is 'US' formatting)
# go to http://www.php.net/manual/en/function.date.php
# for detailed instructions on date formatting
$g_short_date_format = 'm-d-y';
$g_normal_date_format = 'm-d-y H:i';
$g_complete_date_format = 'm-d-Y H:i T';
#MANUAL---------------------------------------STOPPED HERE-------------------------
############################
# Mantis News Settings
############################
# --- Limit News Items ------------
# limit by entry count or date
# BY_LIMIT - entry limit
# BY_DATE - by date
$g_news_limit_method = BY_LIMIT;
# limit by last X entries
$g_news_view_limit = 7;
# limit by days
$g_news_view_limit_days = 30;
# threshold for viewing private news
$g_private_news_threshold = DEVELOPER;
##################################
# Mantis Default Preferences
##################################
# --- signup default ---------------
# look in constant_inc.php for values
$g_default_new_account_access_level = REPORTER;
# --- viewing defaults ------------
# site defaults for viewing preferences
$g_default_limit_view = 50;
$g_default_show_changed = 6;
$g_hide_closed_default = ON;
# make sure people aren't refreshing too often
$g_min_refresh_delay = 10; # in minutes
# --- account pref defaults -------
$g_default_advanced_report = OFF;
$g_default_advanced_view = OFF;
$g_default_advanced_update = OFF;
$g_default_refresh_delay = 30; # in minutes
$g_default_redirect_delay = 2; # in seconds
$g_default_email_on_new = ON;
$g_default_email_on_assigned = ON;
$g_default_email_on_feedback = ON;
$g_default_email_on_resolved = ON;
$g_default_email_on_closed = ON;
$g_default_email_on_reopened = ON;
$g_default_email_on_bugnote = ON;
$g_default_email_on_status = 0; # @@@ Unused
$g_default_email_on_priority = 0; # @@@ Unused
# default_language - is set to site language
###############################
# Mantis Summary Settings
###############################
# how many reporters to show
# this is useful when there are hundreds of reporters
$g_reporter_summary_limit = 10;
# default space padding (increase when bug count goes over 100,000)
$g_summary_pad = 5;
# --- summary date displays -------
# date lengths to count bugs by (in days)
$g_date_partitions = array( 1, 2, 3, 7, 30, 60, 90, 180, 365);
# shows project '[project] category' when 'All Projects' is selected
# otherwise only 'category name'
$g_summary_category_include_project = OFF;
# threshold for viewing summary
$g_view_summary_threshold = VIEWER;
###############################
# Mantis Bugnote Settings
###############################
# --- bugnote ordering ------------
# change to ASC or DESC
$g_bugnote_order = 'ASC';
# --- bugnote history ordering ----
# change to ASC or DESC
$g_history_order = 'ASC';
###############################
# Mantis Reminder Settings
###############################
# are reminders stored as bugnotes
$g_store_reminders = ON;
# Automatically add recipients of reminders to monitor list, if they are not
# the handler or the reporter (since they automatically get notified, if required)
# If recipients of the reminders are below the monitor threshold, they will not be added.
$g_reminder_recipents_monitor_bug = ON;
###################################
# Mantis File Upload Settings
###################################
# --- file upload settings --------
# This is the master setting to disable *all* file uploading functionality
#
# If you want to allow file uploads, you must also make sure that they are
# enabled in php. You may need to add "file_uploads = TRUE" to your php.ini
#
# See also: $g_upload_project_file_threshold, $g_upload_bug_file_threshold,
# $g_allow_reporter_upload
$g_allow_file_upload = ON;
# Upload destination: specify actual location in project settings
# DISK, DATABASE, or FTP.
$g_file_upload_method = DATABASE;
# FTP settings, used if $g_file_upload_method = FTP
$g_file_upload_ftp_server = 'ftp.myserver.com';
$g_file_upload_ftp_user = 'readwriteuser';
$g_file_upload_ftp_pass = 'readwritepass';
# Maximum file size that can be uploaded
# Also check your PHP settings (default is usually 2MBs)
$g_max_file_size = 5000000; # 5 MB
# Files that are allowed or not allowed. Separate items by commas.
# eg. 'php,html,java,exe,pl'
# if $g_allowed_files is filled in NO other file types will be allowed.
# $g_disallowed_files takes precedence over $g_allowed_files
$g_allowed_files = '';
$g_disallowed_files = '';
############################
# Mantis HTML Settings
############################
# --- html tags -------------------
# Set this flag to automatically convert www URLs and
# email adresses into clickable links
$g_html_make_links = ON;
# do NOT include href or img tags here
# do NOT include tags that have parameters (eg. <font face="arial">)
$g_html_valid_tags = "p, li, ul, ol, br, pre, i, b, u";
# --- table tags ------------------
# this is inserted into the outermost tables ( tags like border, cellspacing, etc)
$g_primary_table_tags = '';
##########################
# Mantis HR Settings
##########################
# --- hr --------------------------
$g_hr_size = 1;
$g_hr_width = 50;
#############################
# Mantis LDAP Settings
#############################
# look in README.LDAP for details
# --- using openldap -------------
$g_ldap_server = 'ldaps://ldap.example.com.au/';
$g_ldap_port = '636';
$g_ldap_root_dn = 'dc=example,dc=com,dc=au';
#$g_ldap_organization = '(organizationname=*Traffic)'; # optional
$g_ldap_bind_dn = '';
$g_ldap_bind_passwd = '';
$g_use_ldap_email = OFF; # Should we send to the LDAP email address or what MySql tells us
############################
# Mantis Misc Settings
############################
# --- status thresholds (*_status_threshold) ---
# Bug is resolved, ready to be closed or reopened. In some custom installations a bug
# maybe considered as resolved when it is moved to a custom (FIXED OR TESTED) status.
$g_bug_resolved_status_threshold = RESOLVED;
# --- access level thresholds (*_threshold) ---
# access level needed to report a bug
$g_report_bug_threshold = REPORTER;
# access level needed to update bugs
$g_update_bug_threshold = UPDATER;
# access level needed to re-open bugs
# Look in the constant_inc.php file if you want to set a different value
$g_reopen_bug_threshold = DEVELOPER;
# access level needed to close bugs
# Look in the constant_inc.php file if you want to set a different value
$g_close_bug_threshold = DEVELOPER;
# access level needed to monitor bugs
# Look in the constant_inc.php file if you want to set a different value
$g_monitor_bug_threshold = REPORTER;
# access level needed to view private bugs
# Look in the constant_inc.php file if you want to set a different value
$g_private_bug_threshold = DEVELOPER;
# access level needed to be able to be listed in the assign to field.
$g_handle_bug_threshold = DEVELOPER;
# access level needed to view private bugnotes
# Look in the constant_inc.php file if you want to set a different value
$g_private_bugnote_threshold = DEVELOPER;
# access level needed to view attachments to bugs reported by other users.
$g_view_attachments_threshold = VIEWER;
# access level needed to send a reminder from the bug view pages
# set to NOBODY to disable the feature
$g_bug_reminder_threshold = REPORTER;
# access level needed to upload files to the project documentation section
# You can set this to NOBODY to prevent uploads to projects
# See also: $g_upload_bug_file_threshold, $g_allow_file_upload
$g_upload_project_file_threshold = MANAGER;
# access level needed to upload files to attach to a bug
# You can set this to NOBODY to prevent uploads to bugs but note that
# the reporter of the bug will still be able to upload unless you set
# $g_allow_reporter_upload or $g_allow_file_upload to OFF
# See also: $g_upload_project_file_threshold, $g_allow_file_upload,
# $g_allow_reporter_upload
$g_upload_bug_file_threshold = REPORTER;
# Add bugnote threshold
$g_add_bugnote_threshold = REPORTER;
# Update bugnote threshold (if the bugnote is not your own - users can
# always update their own bugnotes)
$g_update_bugnote_threshold = DEVELOPER;
# Add profile threshold
$g_add_profile_threshold = REPORTER;
# Threshold needed to view project documentation
$g_view_proj_doc_threshold = ANYBODY;
# Threshold needed to manage a project: add users to the project, edit project
# details (not to add/delete projects), upload documentation, news, ...etc.
$g_manage_project_threshold = MANAGER;
# --- login method ----------------
# CRYPT or CRYPT_FULL_SALT or PLAIN or MD5 or LDAP or BASIC_AUTH
# If you were using CRYPT and it now fails, try CRYPT_FULL_SALT
$g_login_method = MD5;
# --- limit reporters -------------
# Set to ON if you wish to limit reporters to only viewing bugs that they report.
$g_limit_reporters = OFF;
# --- close immediately -----------
# Allow developers and above to close bugs immediately when resolving bugs
$g_allow_close_immediately = OFF;
# --- reporter can close ----------
# Allow reporters to close the bugs they reported, after they're marked resolved.
$g_allow_reporter_close = OFF;
# --- reporter can reopen ---------
# Allow reporters to reopen the bugs they reported, after they're marked resolved.
$g_allow_reporter_reopen = ON;
# --- reporter can upload ---------
# Allow reporters to upload attachments to bugs they reported.
$g_allow_reporter_upload = ON;
# --- bug delete -----------
# Allow the specified access level and higher to delete bugs
$g_allow_bug_delete_access_level = DEVELOPER;
# --- bug note delete ------
# Specify the required access level to delete bug notes.
$g_delete_bugnote_threshold = $g_allow_bug_delete_access_level;
# --- move bugs -----------
# Allow the specified access level and higher to move bugs between projects
$g_bug_move_access_level = DEVELOPER;
# --- account delete -----------
# Allow users to delete their own accounts
$g_allow_account_delete = OFF;
# --- anonymous login -----------
# Allow anonymous login
$g_allow_anonymous_login = OFF;
$g_anonymous_account = '';
# --- CVS linking ---------------
# insert the URL to your CVSweb or ViewCVS
$g_cvs_web = 'http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/mantisbt/mantisbt/';
# --- Bug Linking ---------------
# if a number follows this tag it will create a link to a bug.
# eg. for # a link would be #45
# eg. for bug: a link would be bug:98
$g_bug_link_tag = '#';
# --- Queries --------------------
# Shows the total number/unique number of queries executed to serve the page.
$g_show_queries_count = ON;
# Automatically set status to ASSIGNED whenever a bug is assigned to a person.
# This is useful for installations where assigned status is to be used when
# the bug is in progress, rather than just put in a person's queue.
$g_auto_set_status_to_assigned = ON;
################################
# Mantis Look and Feel Variables
################################
# --- status color codes ----------
#
$g_status_colors = array('new' => '#ffffff', # white
'feedback' => '#ffc0cc', # purple
'acknowledged' => '#ff6600', # orange
'confirmed' => '#ffd850', # yellow
'assigned' => '#c8c8ff', # blue
'resolved' => '#cceedd', # blueish-green
'closed' => '#e8e8e8'); # light gray
###############################
# Mantis Cookie Variables
###############################
# --- cookie path ---------------
# set this to something more restrictive if needed
# http://www.php.net/manual/en/function.setcookie.php
$g_cookie_path = '/';
# unused
$g_cookie_domain = '';
# cookie version for view_all_page
$g_cookie_version = 'v3';
# --- cookie prefix ---------------
# set this to a unique identifier. No spaces.
$g_cookie_prefix = 'MANTIS';
# --- cookie names ----------------
$g_string_cookie = $g_cookie_prefix.'_STRING_COOKIE';
$g_project_cookie = $g_cookie_prefix.'_PROJECT_COOKIE';
$g_view_all_cookie = $g_cookie_prefix.'_VIEW_ALL_COOKIE';
$g_manage_cookie = $g_cookie_prefix.'_MANAGE_COOKIE';
# --- cookie values ---------------
#@@@ this code can be removed after full conversion to
#@@@ the gpc_api
$g_string_cookie_val = '';
$g_project_cookie_val = '0'; #use a default so we don't have to force the user to choose one
$g_view_all_cookie_val = '';
$g_manage_cookie_val = '';
if ( isset( $HTTP_COOKIE_VARS[$g_string_cookie] ) ) {
$g_string_cookie_val = $HTTP_COOKIE_VARS[$g_string_cookie];
}
if ( isset( $HTTP_COOKIE_VARS[$g_project_cookie] ) ) {
$g_project_cookie_val = $HTTP_COOKIE_VARS[$g_project_cookie];
}
if ( isset( $HTTP_COOKIE_VARS[$g_view_all_cookie] ) ) {
$g_view_all_cookie_val = $HTTP_COOKIE_VARS[$g_view_all_cookie];
}
if ( isset( $HTTP_COOKIE_VARS[$g_manage_cookie] ) ) {
$g_manage_cookie_val = $HTTP_COOKIE_VARS[$g_manage_cookie];
}
#@@@ end removable code block
#@@@
#######################################
# Mantis Database Table Variables
#######################################
# --- table prefix ----------------
# if you change this remember to reflect the changes in the database
$g_db_table_prefix = 'mantis';
# --- table names -----------------
$g_mantis_bug_file_table = $g_db_table_prefix.'_bug_file_table';
$g_mantis_bug_history_table = $g_db_table_prefix.'_bug_history_table';
$g_mantis_bug_monitor_table = $g_db_table_prefix.'_bug_monitor_table';
$g_mantis_bug_relationship_table = $g_db_table_prefix.'_bug_relationship_table';
$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_project_category_table = $g_db_table_prefix.'_project_category_table';
$g_mantis_project_file_table = $g_db_table_prefix.'_project_file_table';
$g_mantis_project_table = $g_db_table_prefix.'_project_table';
$g_mantis_project_user_list_table = $g_db_table_prefix.'_project_user_list_table';
$g_mantis_project_version_table = $g_db_table_prefix.'_project_version_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';
$g_mantis_user_print_pref_table = $g_db_table_prefix.'_user_print_pref_table';
$g_mantis_custom_field_project_table = $g_db_table_prefix.'_custom_field_project_table';
$g_mantis_custom_field_table = $g_db_table_prefix.'_custom_field_table';
$g_mantis_custom_field_string_table = $g_db_table_prefix.'_custom_field_string_table';
$g_mantis_upgrade_table = $g_db_table_prefix.'_upgrade_table';
###########################
# Mantis Enum Strings
###########################
# --- enum strings ----------------
# status from $g_status_index-1 to 79 are used for the onboard customization (if enabled)
# directly use Mantis to edit them.
$g_access_levels_enum_string = '10:viewer,25:reporter,40:updater,55:developer,70:manager,90:administrator';
$g_project_status_enum_string = '10:development,30:release,50:stable,70:obsolete';
$g_project_view_state_enum_string = '10:public,50:private';
$g_view_state_enum_string = '10:public,50:private';
$g_priority_enum_string = '10:none,20:low,30:normal,40:high,50:urgent,60:immediate';
$g_severity_enum_string = '10:feature,20:trivial,30:text,40:tweak,50:minor,60:major,70:crash,80:block';
$g_reproducibility_enum_string = '10:always,30:sometimes,50:random,70:have not tried,90:unable to duplicate,100:N/A';
$g_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,80:resolved,90:closed';
$g_resolution_enum_string = '10:open,20:fixed,30:reopened,40:unable to duplicate,50:not fixable,60:duplicate,70:not a bug,80:suspended,90:wont fix';
$g_projection_enum_string = '10:none,30:tweak,50:minor fix,70:major rework,90:redesign';
$g_eta_enum_string = '10:none,20:< 1 day,30:2-3 days,40:< 1 week,50:< 1 month,60:> 1 month';
$g_custom_field_type_enum_string = '0:string,1:numeric,2:float,3:enum,4:email';
#############################
# Mantis Page Variables
#############################
#----------------------------------
# extensions for php 3 and php 4
# set this to php for php4 or whatever your webserver needs
$g_php = '.php';
#----------------------------------
#############################
# Mantis Javascript Variables
#############################
#----------------------------------
# allow the use of Javascript?
$g_use_javascript = ON;
#----------------------------------
###########################
# Mantis Speed Optimisation
###########################
#----------------------------------
# Use compression of generated html if browser supports it
$g_compress_html = ON;
#----------------------------------
#----------------------------------
# Use persistent database connections
$g_use_persistent_connections = OFF;
#----------------------------------
###########################
# Include files
###########################
#----------------------------------
# Specify your top/bottom include file (logos, banners, etc)
$g_bottom_include_page = $g_absolute_path."";
$g_top_include_page = $g_absolute_path."";
# CSS file
$g_css_include_file = $g_path."css/default.css";
# meta tags
$g_meta_include_file = $g_absolute_path."meta_inc".$g_php;
#----------------------------------
# Internal includes
$g_bugnote_include_file = $g_absolute_path."bugnote_inc".$g_php;
$g_history_include_file = $g_absolute_path."history_inc".$g_php;
$g_print_bugnote_include_file = $g_absolute_path."print_bugnote_inc".$g_php;
$g_view_all_include_file = $g_absolute_path."view_all_inc".$g_php;
$g_bug_view_inc = $g_absolute_path."bug_view_inc".$g_php;
$g_bug_file_upload_inc = $g_absolute_path."bug_file_upload_inc".$g_php;
#----------------------------------
###########################
# Redirections
###########################
# ---------------------------------
# Specify where the user should be sent after logging out.
$g_logout_redirect_page = $g_path."login_page".$g_php;
###########################
# Headers
###########################
# ---------------------------------
# An array of headers to be sent with each page.
# For example, to allow your mantis installation to be viewed in a frame in IE 6
# when the frameset is not at the same hostname as the mantis install, you need
# to add a P3P header. You could try something like 'P3P: CP="CUR ADM"' in your
# config file, but make sure to check that the your policy actually matches with
# what you are promising. See
# http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpriv/html/ie6privacyfeature.asp
# for more information.
$g_custom_headers = array();
#$g_custom_headers[] = 'P3P: CP="CUR ADM"';
###########################
# Debugging
###########################
# --- display source code ---------
# Display a link at the bottom of the page to allow administrators to view the PHP source
# WARNING: Potential security hazard. Only turn this on when you really need it (for debugging)
$g_show_source = OFF;
# --- Timer ----------------------
# Time page loads. Shows at the bottom of the page.
$g_show_timer = OFF;
# used for development only. Leave OFF
$g_debug_timer = OFF;
# Used for debugging e-mail feature, when set to OFF the emails work as normal.
# when set to e-mail address, all e-mails are sent to this address with the
# original To, Cc, Bcc included in the message body.
$g_debug_email = OFF;
# Shows the list of all queries that are executed in chronological order from top
# to bottom. This option is only effective when $g_show_queries_count is ON.
# WARNING: Potential security hazard. Only turn this on when you really
# need it (for debugging/profiling)
$g_show_queries_list = OFF;
# --- detailed error messages -----
# Shows a list of variables and their values when an error is triggered
# Only applies to error types configured to 'halt' in $g_display_errors, below
# WARNING: Potential security hazard. Only turn this on when you really
# need it for debugging
$g_show_detailed_errors = OFF;
# --- notice display ---
# Control whether errors of level NOTICE, the lowest level of error,
# are displayed to the user. Default is OFF, but turning it ON may
# be useful while debugging
$g_show_notices = OFF;
# --- warning display ---
# Control whether errors of level WARNING, the middle level of error,
# are displayed to the user. Default is ON. Turning it OFF may
# hide useful information from the user.
$g_show_warnings = ON;
# --- debug messages ---
# If this option is turned OFF (default) page redirects will continue to
# function even if a non-fatal error occurs. For debugging purposes, you
# can set this to ON so that any non-fatal error will prevent page redirection,
# allowing you to see the errors.
# Only turn this option on for debugging
$g_stop_on_errors = OFF;
###########################
# Experimental features
###########################
# --- custom fields ---------
# allow the user / administrator to create custom fields for each project
# WARNING: this feature is in heavy development and is subject to change.
# There will be no upgrade path for this stuff as it is being developed.
# So don't enable it now unless you're developing on it.
$g_use_experimental_custom_fields = OFF;
# Threshold needed to manage custom fields
$g_manage_custom_fields = ADMINISTRATOR;
# Threshold needed to link/unlink custom field to/from a project
$g_custom_field_link_threshold = MANAGER;
# Whether to start editng a custom field immediately after creating it
$g_custom_field_edit_after_create = ON;
?>