/
config_defaults_inc.php
1340 lines (1066 loc) · 48.1 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
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
# Mantis - a php based bugtracking system
# Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
# Copyright (C) 2002 - 2004 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.197 2004-08-14 15:26:20 thraxisp 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 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.
# For more details see http://manual.mantisbt.org/
################################
# 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';
$g_db_type = 'mysql';
############################
# 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'] ) && ( strtolower( $_SERVER['HTTPS'] ) != 'off' ) ) {
$t_protocol = 'https';
}
# $_SERVER['SERVER_PORT'] is not defined in case of php-cgi.exe
if ( isset( $_SERVER['SERVER_PORT'] ) ) {
$t_port = ':' . $_SERVER['SERVER_PORT'];
if ( ( ':80' == $t_port && 'http' == $t_protocol )
|| ( ':443' == $t_port && 'https' == $t_protocol )) {
$t_port = '';
}
} else {
$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 = 'www.example.com';
}
$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://www.example.com/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;
# Used to link to manual for User Documentation.
$g_manual_url = 'http://manual.mantisbt.org/';
#############################
# Web Server
#############################
# Using Microsoft Internet Information Server (IIS)
if ( isset( $_SERVER['SERVER_SOFTWARE'] ) ) { # SERVER_SOFTWARE not defined in case of php-cgi.exe
$g_use_iis = ( strstr( $_SERVER['SERVER_SOFTWARE'], 'IIS' ) !== false ) ? ON : OFF;
} else {
$g_use_iis = OFF;
}
#############################
# Signup and Lost Password
#############################
# --- signup ----------------------
# allow users to signup for their own accounts.
# Mail settings must be correctly configured in order for this to work
$g_allow_signup = ON;
# Max. attempts to login using a wrong password before lock the account.
# When locked, it's required to reset the password (lost password)
# Value resets to zero at each successfully login
# Set to OFF to disable this control
$g_max_failed_login_count = OFF;
# access level required to be notified when a new user has been created using the "signup form"
$g_notify_new_user_created_threshold_min = ADMINISTRATOR;
# if ON users will be sent their password when reset.
# if OFF the password will be set to blank. If set to ON, mail settings must be
# correctly configured.
$g_send_reset_password = ON;
# String used to generate the confirm_hash for the 'lost password' feature and captcha code for 'signup'
# ATTENTION: CHANGE IT TO WHATEVER VALUE YOU PREFER
$g_password_confirm_hash_magic_string = 'blowfish';
# --- captcha image ---------------
# use captcha image to validate subscription it requires GD library installed
$g_signup_use_captcha = OFF;
# absolute path (with trailing slash!) to folder which contains your TrueType-Font files
# used to create the captcha image
$g_system_font_folder = 'c:/winnt/fonts/';
# font name used to create the captcha image. i.e. arial.ttf
# (the font file has to exist in the system_font_folder)
$g_font_per_captcha = 'arial.ttf';
# --- lost password -------------
# Setting to disable the 'lost your password' feature.
$g_lost_password_feature = ON;
# Max. simultaneous requests of 'lost password'
# When this value is reached, it's no longer possible to request new password reset
# Value resets to zero at each successfully login
$g_max_lost_password_in_progress_count = 3;
#############################
# Mantis Email Settings
#############################
# --- email variables -------------
$g_administrator_email = 'administrator@example.com';
$g_webmaster_email = 'webmaster@example.com';
# the 'From: ' field in emails
$g_from_email = 'noreply@example.com';
# 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@example.com';
# the return address for bounced mail
$g_return_path_email = 'admin@example.com';
# allow email notification
$g_enable_email_notification = ON;
# The following two config options allow you to control who should get email
# notifications on different actions/statuses. The first option (default_notify_flags)
# sets the default values for different user categories. The user categories
# are:
#
# 'reporter': the reporter of the bug
# 'handler': the handler of the bug
# 'monitor': users who are monitoring a bug
# 'bugnotes': users who have added a bugnote to the bug
# 'threshold_max': all users with access <= max
# 'threshold_min': ..and with access >= min
#
# The second config option (notify_flags) sets overrides for specific actions/statuses.
# If a user category is not listed for an action, the default from the config
# option above is used. The possible actions are:
#
# 'new': a new bug has been added
# 'assigned': a bug has been assigned
# 'reopened': a bug has been reopened
# 'deleted': a bug has been deleted
# 'updated': a bug has been updated
# 'bugnote': a bugnote has been added to a bug
# 'status_<status>': eg: 'status_resolved', 'status_closed', 'status_feedback', 'status_acknowledged', ...etc.
#
# If you wanted to have all developers get notified of new bugs you might add
# the following lines to your config file:
#
# $g_notify_flags['new']['threshold_min'] = DEVELOPER;
# $g_notify_flags['new']['threshold_max'] = DEVELOPER;
#
# You might want to do something similar so all managers are notified when a
# bug is closed. If you didn't want reporters to be notified when a bug is
# closed (only when it is resolved) you would use:
#
# $g_notify_flags['closed']['reporter'] = OFF;
$g_default_notify_flags = array('reporter' => ON,
'handler' => ON,
'monitor' => ON,
'bugnotes' => ON,
'threshold_min' => NOBODY,
'threshold_max' => NOBODY);
# We don't need to send these notifications on new bugs
# (see above for info on this config option)
#@@@ (though I'm not sure they need to be turned off anymore
# - there just won't be anyone in those categories)
# I guess it serves as an example and a placeholder for this
# config option
$g_notify_flags['new'] = array('bugnotes' => OFF,
'monitor' => OFF);
# Whether user's should receive emails for their own actions
$g_email_receive_own = OFF;
# set to OFF to disable email check
$g_validate_email = ON;
$g_check_mx_record = OFF; # Not supported under Windows.
# 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;
# If use_x_priority is set to ON, what should the value be?
# Urgent = 1, Not Urgent = 5, Disable = 0
# Note: some MTAs interpret X-Priority = 0 to mean 'Very Urgent'
$g_mail_priority = 3;
# Set to OFF on Windows systems, as long as php-mail-function has its bcc-bug (~PHP 4.0.6)
$g_use_bcc = ON;
# 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';
# These options allow you to use SMTP Authentication when you use a remote
# SMTP host with phpMailer. If smtp_username is not '' then the username
# and password will be used when logging in to the SMTP server.
$g_smtp_username = '';
$g_smtp_password = '';
# 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.19.0-CVS';
$g_show_version = ON;
################################
# Mantis Language Settings
################################
# --- language settings -----------
# If the language is set to 'auto', the actual
# language is determined by the user agent (web browser)
# language preference.
$g_default_language = 'english';
# list the choices that the users are allowed to choose
$g_language_choices_arr = array(
'auto', 'english', 'chinese_simplified', 'chinese_traditional', 'czech',
'danish', 'dutch', 'estonian', 'french', 'german', 'hungarian',
'italian', 'japanese_euc', 'japanese_sjis', 'japanese_utf8', 'korean',
'lithuanian', 'norwegian', 'polish', 'portuguese_brazil', 'portuguese_standard',
'romanian', 'russian', 'russian_koi8', 'serbian', 'slovak', 'slovene',
'spanish', 'swedish', 'turkish' );
# Browser language mapping for 'auto' language selection
$g_language_auto_map = array(
'en-us, en-gb, en-au, en' => 'english',
'zh-cn, zh-sg, zh' => 'chinese_simplified',
'zh-hk, zh-tw' => 'chinese_traditional',
'cs' => 'czech',
'da' => 'danish',
'nl-be, nl' => 'dutch',
'et' => 'estonian',
'fr-be, fr-ca, fr-ch, fr' => 'french',
'de-de, de-at, de-ch, de' => 'german',
'hu' => 'hungarian',
'it-ch, it' => 'italian',
'ja' => 'japanese_sjis',
'ko' => 'korean',
'lt' => 'lithuanian',
'no' => 'norwegian',
'pl' => 'polish',
'pt-br' => 'portugese_brazil',
'pt' => 'portugese_standard',
'ro-mo, ro' => 'romanian',
'ru-mo, ru' => 'russian',
'sr' => 'serbian',
'sk' => 'slovak',
'sl' => 'slovene',
'es-mx, es-co, es-ar, es-cl, es-pr, es' => 'spanish',
'sv-fi, sv' => 'swedish',
'tr' => 'turkish'
);
# Fallback for automatic language selection
$g_fallback_language = 'english';
###############################
# Mantis Display Settings
###############################
# --- sitewide variables ----------
$g_window_title = 'Mantis'; # browser window title
$g_page_title = 'Mantis'; # title at top of html page
# --- advanced views --------------
# BOTH, SIMPLE_ONLY, ADVANCED_ONLY
$g_show_report = BOTH;
$g_show_update = BOTH;
$g_show_view = BOTH;
# --- top menu items --------------
# Specifies whether to enable support for project documents or not.
$g_enable_project_documentation = ON;
# --- 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;
# --- show product versions in create, view and update screens
# ON forces display even if none are defined
# OFF suppresses display
# AUTO suppresses the display if there are no versions defined for the project
$g_show_product_version = AUTO;
# -- show users with their real name or not
$g_show_realname = OFF;
$g_differentiate_duplicates = OFF; # leave off for now
############################
# 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;
# The time (in seconds) to allow for page execution during long processes
# such as upgrading your database.
# The default value of 0 indicates that the page should be allowed to
# execute until it is finished.
$g_long_process_timeout = 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';
############################
# 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;
# Default Bug View Status (VS_PUBLIC or VS_PRIVATE)
$g_default_bug_view_status = VS_PUBLIC;
# Default Bugnote View Status (VS_PUBLIC or VS_PRIVATE)
$g_default_bugnote_view_status = VS_PUBLIC;
# Default bug severity when reporting a new bug
$g_default_bug_severity = MINOR;
# Default bug priority when reporting a new bug
$g_default_bug_priority = NORMAL;
# --- viewing defaults ------------
# site defaults for viewing preferences
$g_default_limit_view = 50;
$g_default_show_changed = 6;
$g_hide_status_default = CLOSED;
# 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_bugnote_order = 'ASC';
$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
$g_default_email_on_new_minimum_severity = 'any';
$g_default_email_on_assigned_minimum_severity = 'any';
$g_default_email_on_feedback_minimum_severity = 'any';
$g_default_email_on_resolved_minimum_severity = 'any';
$g_default_email_on_closed_minimum_severity = 'any';
$g_default_email_on_reopened_minimum_severity = 'any';
$g_default_email_on_bugnote_minimum_severity = 'any';
$g_default_email_on_status_minimum_severity = 'any'; # @@@ Unused
$g_default_email_on_priority_minimum_severity = 'any'; # @@@ Unused
$g_default_email_bugnote_limit = 0;
# 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;
# --- 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 = 'DESC';
################################
# Mantis Bug History Settings
################################
# --- bug history visible by default when you view a bug ----
# change to ON or OFF
$g_history_default_visible = ON;
# --- bug 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;
# Default Reminder View Status (VS_PUBLIC or VS_PRIVATE)
$g_default_reminder_view_status = VS_PUBLIC;
###################################
# Mantis Sponsorship Settings
###################################
# Whether to enable/disable the whole issue sponsorship feature
$g_enable_sponsorship = OFF;
# Currency used for all sponsorships.
$g_sponsorship_currency = 'US$';
# Access level threshold needed to view the total sponsorship for an issue by all users.
$g_view_sponsorship_total_threshold = VIEWER;
# Access level threshold needed to view the users sponsoring an issue and the sponsorship
# amount for each.
$g_view_sponsorship_details_threshold = VIEWER;
# Access level threshold needed to allow user to sponsor issues.
$g_sponsor_threshold = REPORTER;
# Access level required to be able to handle sponsored issues.
$g_handle_sponsored_bugs_threshold = DEVELOPER;
# Access level required to be able to assign a sponsored issue to a user with access level
# greater or equal to 'handle_sponsored_bugs_threshold'.
$g_assign_sponsored_bugs_threshold = MANAGER;
# Minimum sponsorship amount. If the user enters a value less than this, an error will be prompted.
$g_minimum_sponsorship_amount = 5;
###################################
# 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 = '';
# prefix to be used for the file system names of files uploaded to projects.
# Eg: doc-001-myprojdoc.zip
$g_document_files_prefix = 'doc';
############################
# 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';
##########################
# 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 = ''; # e.g. '(organizationname=*Traffic)'
$g_ldap_uid_field = 'uid'; # Use 'sAMAccountName' for Active Directory
$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
############################
# Status Settings
############################
# Status to assign to the bug when submitted.
$g_bug_submit_status = NEW_;
# Status to assign to the bug when assigned.
$g_bug_assigned_status = ASSIGNED;
# Status to assign to the bug when reopened.
$g_bug_reopen_status = FEEDBACK;
# Resolution to assign to the bug when reopened.
$g_bug_reopen_resolution = REOPENED;
# --- status thresholds (*_status_threshold) ---
# Bug becomes readonly if its status is >= this status. The bug becomes read/write again if re-opened and its
# status becomes less than this threshold.
$g_bug_readonly_status_threshold = RESOLVED;
# 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;
# 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;
# 'status_enum_workflow' defines the workflow, and reflects a simple
# 2-dimensional matrix. For each existing status, you define which
# statuses you can go to from that status, e.g. from NEW_ you might list statuses
# '10:new,20:feedback,30:acknowledged' but not higher ones.
# The following example can be transferred to config_inc.php
# $g_status_enum_workflow[NEW_]='10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,80:resolved';
# $g_status_enum_workflow[FEEDBACK] ='10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,80:resolved';
# $g_status_enum_workflow[ACKNOWLEDGED] ='20:feedback,30:acknowledged,40:confirmed,50:assigned,80:resolved';
# $g_status_enum_workflow[CONFIRMED] ='20:feedback,40:confirmed,50:assigned,80:resolved';
# $g_status_enum_workflow[ASSIGNED] ='20:feedback,50:assigned,80:resolved,90:closed';
# $g_status_enum_workflow[RESOLVED] ='50:assigned,80:resolved,90:closed';
# $g_status_enum_workflow[CLOSED] ='50:assigned';
$g_status_enum_workflow = array();
############################
# Bug Attachments Settings
############################
# Specifies the maximum size below which an attachment is previewed in the bug
# view pages. To disable this feature, set max size to 0.
# This feature applies to: bmp, png, gif, jpg
$g_preview_attachments_inline_max_size = 0;
# --- Show an attachment indicator on bug list ---
# Show a clickable attachment indicator on the bug
# list page if the bug has one or more files attached.
# Note: This option is disabled by default since it adds
# 1 database query per bug listed and thus might slow
# down the page display.
$g_show_attachment_indicator = OFF;
# access level needed to view bugs attachments. View means to see the file names
# sizes, and timestamps of the attachments.
$g_view_attachments_threshold = VIEWER;
# access level needed to download bug attachments
$g_download_attachments_threshold = VIEWER;
# access level needed to delete bug attachments
$g_delete_attachments_threshold = DEVELOPER;
# allow users to view attachments uploaded by themselves even if their access
# level is below view_attachments_threshold.
$g_allow_view_own_attachments = ON;
# allow users to download attachments uploaded by themselves even if their access
# level is below download_attachments_threshold.
$g_allow_download_own_attachments = ON;
# allow users to delete attachments uploaded by themselves even if their access
# level is below delete_attachments_threshold.
$g_allow_delete_own_attachments = OFF;
############################
# Mantis Misc Settings
############################
# --- access level thresholds (*_threshold) ---
# access level needed to report a bug
$g_report_bug_threshold = REPORTER;
# access level needed to update bugs (i.e., the update_bug_page)
$g_update_bug_threshold = UPDATER;
# 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 handler in bug reports and notification email
# @@@ yarick123: now it is implemented for notification email only
$g_view_handler_threshold = VIEWER;
# access level needed to view history in bug reports and notification email
# @@@ yarick123: now it is implemented for notification email only
$g_view_history_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)
$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: edit project
# details (not to add/delete projects), upload documentation, ...etc.
$g_manage_project_threshold = MANAGER;
# Threshold needed to add/delete/modify news
$g_manage_news_threshold = MANAGER;
# Threshold required to delete a project
$g_delete_project_threshold = ADMINISTRATOR;
# Threshold needed to create a new project
$g_create_project_threshold = ADMINISTRATOR;
# Threshold needed to be automatically included in private projects
$g_private_project_threshold = ADMINISTRATOR;
# Threshold needed to manage user access to a project
$g_project_user_threshold = MANAGER;
# Threshold needed to manage user accounts
$g_manage_user_threshold = ADMINISTRATOR;
# Delete bug threshold
$g_delete_bug_threshold = DEVELOPER;
# Delete bugnote threshold
$g_delete_bugnote_threshold = $g_delete_bug_threshold;
# Are users allowed to change and delete their own bugnotes?
$g_bugnote_allow_user_edit_delete = ON;
# Move bug threshold
$g_move_bug_threshold = DEVELOPER;
# Threshold needed to set the view status while reporting a bug or a bug note.
$g_set_view_status_threshold = REPORTER;
# Threshold needed to update the view status while updating a bug or a bug note.
# This threshold should be greater or equal to $g_set_view_status_threshold.
$g_change_view_status_threshold = UPDATER;
# --- Threshold needed to show the list of users montoring a bug on the bug view pages.
$g_show_monitor_list_threshold = DEVELOPER;
# Threshold needed to be able to use stored queries
$g_stored_query_use_threshold = REPORTER;
# Threshold needed to be able to create stored queries
$g_stored_query_create_threshold = DEVELOPER;
# Threshold needed to be able to create shared stored queries
$g_stored_query_create_shared_threshold = MANAGER;
# Threshold needed to update readonly bugs. Readonly bugs are identified via
# $g_bug_readonly_status_threshold.
$g_update_readonly_bug_threshold = MANAGER;
# threshold for viewing changelog
$g_view_changelog_threshold = VIEWER;
# status change thresholds
$g_update_bug_status_threshold = DEVELOPER;
# this array sets the access thresholds needed to enter each status listed.
# if a status is not listed, it falls back to $g_update_bug_status_threshold
# example: $g_set_status_threshold = array( ACKNOWLEDGED => MANAGER, CONFIRMED => DEVELOPER, CLOSED => MANAGER );
$g_set_status_threshold = array();
# --- login method ----------------
# CRYPT or PLAIN or MD5 or LDAP or BASIC_AUTH
# You can simply change this at will. Mantis will try to figure out how the passwords were encrypted.
$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;
# --- 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
# eg: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/mantisbt/mantisbt/
$g_cvs_web = '';
# --- Source Control Integration ------
# For open source projects it is expected that the notes be public, however,
# for non-open source it will probably be VS_PRIVATE.
$g_source_control_notes_view_status = VS_PRIVATE;
# Account to be used by the source control script. The account must be enabled
# and must have the appropriate access level to add notes to all issues even
# private ones (DEVELOPER access recommended).
$g_source_control_account = '';
# If set to a status, then after a checkin, the issue status is set to the
# specified status, otherwise if set to OFF, the issue status is not affected.
$g_source_control_set_status_to = OFF;
# Regular expression used to detect issue ids within checkin comments.
# see preg_match_all() documentation at
# http://www.php.net/manual/en/function.preg-match-all.php
$g_source_control_regexp = "/\bissue [#]{0,1}(\d+)\b/i";
# --- 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 = '#';
# --- Bug Count Linking ----------
# this is the prefix to use when creating links to bug views from bug counts (eg. on the main
# page and the summary page).
# $g_bug_count_hyperlink_prefix = 'view_all_set.php?type=1'; # permanently change the filter
$g_bug_count_hyperlink_prefix = 'view_all_set.php?type=1&temporary=y'; # only change the filter this time
# --- Queries --------------------
# Shows the total number/unique number of queries executed to serve the page.
$g_show_queries_count = ON;
# The regular expression to use when validating new user login names
# The default regular expression allows a-z, A-z, 0-9, as well as space and
# underscore. If you change this, you may want to update the
# ERROR_USER_NAME_INVALID string in the language files to explain
# the rules you are using on your site
$g_user_login_valid_regex = '/^[\w \-]+$/';
# Default user name prefix used to filter the list of users in
# manage_user_page.php. Change this to 'A' (or any other
# letter) if you have a lot of users in the system and loading
# the manage users page takes a long time.
$g_default_manage_user_prefix = 'ALL';
################################
# Mantis Look and Feel Variables
################################
# --- status color codes ----------
#