forked from mantisbt/mantisbt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config_defaults_inc.php
4722 lines (4217 loc) · 132 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
# MantisBT - A PHP based bugtracking system
# MantisBT 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.
#
# MantisBT 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 MantisBT. If not, see <http://www.gnu.org/licenses/>.
/**
* Default Configuration Variables
*
* This file should not be changed. If you want to override any of the values
* defined here, define them in a file called config/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://www.mantisbt.org/docs/master-1.2.x/
*
* @package MantisBT
* @copyright Copyright 2000 - 2002 Kenzaburo Ito - [email protected]
* @copyright Copyright 2002 MantisBT Team - [email protected]
* @link http://www.mantisbt.org
*/
##############################
# MantisBT Database Settings #
##############################
/**
* hostname should be either a hostname or connection string to supply to adodb.
* For example, if you would like to connect to a database server on the local machine,
* set hostname to 'localhost'
* If you need to supply a port to connect to, set hostname as 'localhost:3306'.
* @global string $g_hostname
*/
$g_hostname = 'localhost';
/**
* User name to use for connecting to the database. The user needs to have
* read/write access to the MantisBT database. The default user name is "root".
* @global string $g_db_username
*/
$g_db_username = 'root';
/**
* Password for the specified user name. The default password is empty.
* @global string $g_db_password
*/
$g_db_password = '';
/**
* Name of database that contains MantisBT tables.
* The default database name is "bugtracker".
* @global string $g_database_name
*/
$g_database_name = 'bugtracker';
/**
* Database Schema Name - used in the case of db2.
* @global string $g_db_schema
*/
$g_db_schema = '';
/**
* Defines the database type. Supported types are listed below;
* the corresponding PHP extension must be enabled.
*
* RDBMS db_type PHP ext Comments
* ----- ------- ------- --------
* MySQL mysql mysql
* mysqli mysqli default
* PostgreSQL pgsql pgsql
* MS SQL Server mssqlnative sqlsrv experimental
* Oracle oci8 oci8 experimental
* DB2 db2 ibm-db2 experimental
*
* @global string $g_db_type
*/
$g_db_type = 'mysqli';
/**
* adodb Data Source Name
* This is an EXPERIMENTAL field.
* If the above database settings, do not provide enough flexibility, it is
* possible to specify a dsn for the database connection. For further details,
* currently, you need to see the adodb manual at
* http://phplens.com/adodb/code.initialization.html#dsnsupport. For example,
* if db_type is odbc_mssql. The following is an example dsn:
* "Driver={SQL Server Native Client 10.0};SERVER=.\sqlexpress;DATABASE=bugtracker;UID=mantis;PWD=password;"
* NOTE: the installer does not yet fully support the use of dsn's
*/
$g_dsn = '';
####################
# Folder Locations #
####################
/**
* Path to root MantisBT folder. Requires trailing / or \
* @global string $g_absolute_path
*/
$g_absolute_path = dirname( __FILE__ ) . DIRECTORY_SEPARATOR;
/**
* Path to core folder. The default is usually OK,
* unless you moved the 'core' directory out of your webroot (recommended).
* @global string $g_core_path
*/
$g_core_path = $g_absolute_path . 'core' . DIRECTORY_SEPARATOR;
/**
* Path to classes folder. Requires trailing / or \
* @global string $g_class_path
*/
$g_class_path = $g_core_path . 'classes' . DIRECTORY_SEPARATOR;
/**
* Path to library folder for 3rd party libraries. Requires trailing / or \
* @global string $g_library_path
*/
$g_library_path = $g_absolute_path . 'library' . DIRECTORY_SEPARATOR;
/**
* Path to lang folder for language files. Requires trailing / or \
* @global string $g_language_path
*/
$g_language_path = $g_absolute_path . 'lang' . DIRECTORY_SEPARATOR;
/**
* Path to custom configuration folder. Requires trailing / or \
* If MANTIS_CONFIG_FOLDER environment variable is set, it will be used.
* This allows Apache vhost to be used to setup multiple instances serviced by
* same code by multiple configs.
* @global string $g_config_path
*/
$t_local_config = getenv( 'MANTIS_CONFIG_FOLDER' );
if( $t_local_config && is_dir( $t_local_config ) ) {
$g_config_path = $t_local_config;
} else {
$g_config_path = $g_absolute_path . 'config' . DIRECTORY_SEPARATOR;
}
unset( $t_local_config );
##########################
# MantisBT Path Settings #
##########################
$t_protocol = 'http';
$t_host = 'localhost';
if( isset ( $_SERVER['SCRIPT_NAME'] ) ) {
if( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) ) {
$t_protocol= $_SERVER['HTTP_X_FORWARDED_PROTO'];
} else if( !empty( $_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_X_FORWARDED_HOST'] ) ) { # Support ProxyPass
$t_hosts = explode( ',', $_SERVER['HTTP_X_FORWARDED_HOST'] );
$t_host = $t_hosts[0];
} else 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;
}
if( !isset( $_SERVER['SCRIPT_NAME'] )) {
echo 'Invalid server configuration detected. Please set $g_path manually in ' . $g_config_path . 'config_inc.php.';
if( isset( $_SERVER['SERVER_SOFTWARE'] ) && ( stripos($_SERVER['SERVER_SOFTWARE'], 'nginx') !== false ) )
echo ' Please try to add "fastcgi_param SCRIPT_NAME $fastcgi_script_name;" to the nginx server configuration.';
die;
}
$t_self = filter_var( $_SERVER['SCRIPT_NAME'], FILTER_SANITIZE_STRING );
$t_path = str_replace( basename( $t_self ), '', $t_self );
switch( basename( $t_path ) ) {
case 'admin':
$t_path = rtrim( dirname( $t_path ), '/\\' ) . '/';
break;
case 'check': # admin checks dir
case 'soap':
$t_path = rtrim( dirname( dirname( $t_path ) ), '/\\' ) . '/';
break;
case '':
$t_path = '/';
break;
}
if( strpos( $t_path, '&#' ) ) {
echo 'Can not safely determine $g_path. Please set $g_path manually in ' . $g_config_path . 'config_inc.php';
die;
}
} else {
$t_path = 'mantisbt/';
}
/**
* path to your installation as seen from the web browser
* requires trailing /
* @global string $g_path
*/
$g_path = $t_protocol . '://' . $t_host . $t_path;
/**
* path to your images directory (for icons)
* requires trailing /
* @global string $g_icon_path
*/
$g_icon_path = '%path%images/';
/**
* Short web path without the domain name
* requires trailing /
* @global string $g_short_path
*/
$g_short_path = $t_path;
/**
* Used to link to manual for User Documentation.
* This can be either a full URL or a relative path to the MantisBT root.
* If a relative path does not exist, the link will fall back to the online
* documentation at http://www.mantisbt.org. No check is performed on URLs.
* @global string $g_manual_url
*/
$g_manual_url = 'doc/en-US/Admin_Guide/html-desktop/';
##############
# Web Server #
##############
/**
* Session handler. Possible values:
* 'php' -> Default PHP filesystem sessions
* 'adodb' -> Database storage sessions
* 'memcached' -> Memcached storage sessions
* @global string $g_session_handler
*/
$g_session_handler = 'php';
/**
* Session save path. If false, uses default value as set by session handler.
* @global bool $g_session_save_path
*/
$g_session_save_path = false;
/**
* Session validation
* WARNING: Disabling this could be a potential security risk!!
* @global integer $g_session_validation
*/
$g_session_validation = ON;
/**
* Form security validation.
* This protects against Cross-Site Request Forgery, but some proxy servers may
* not correctly work with this option enabled because they cache pages
* incorrectly.
* WARNING: Disabling this is a security risk!!
*/
$g_form_security_validation = ON;
#############################
# Security and Cryptography #
#############################
/**
* Master salt value used for cryptographic hashing throughout MantisBT. This
* value must be kept secret at all costs. You must generate a unique and
* random salt value for each installation of MantisBT you control. The
* minimum length of this string must be at least 16 characters.
*
* The value you select for this salt should be a long string generated using
* a secure random number generator. An example for Linux systems is:
* cat /dev/urandom | head -c 64 | base64
* Note that the number of bits of entropy per byte of output from /dev/urandom
* is not 8. If you're particularly paranoid and don't mind waiting a long
* time, you could use /dev/random to get much closer to 8 bits of entropy per
* byte. Moving the mouse (if possible) while generating entropy via
* /dev/random will greatly improve the speed at which /dev/random produces
* entropy.
*
* WARNING: This configuration option has a profound impact on the security of
* your MantisBT installation. Failure to set this configuration option
* correctly could lead to your MantisBT installation being compromised. Ensure
* that this value remains secret. Treat it with the same security that you'd
* treat the password to your MantisDB database.
*
* This setting is blank by default. MantisBT will not operate in this state.
* Hence you are forced to change the value of this configuration option.
*
* @global string $g_crypto_master_salt
*/
$g_crypto_master_salt = '';
############################
# Signup and Lost Password #
############################
/**
* Allow users to signup for their own accounts.
* If ON, then $g_send_reset_password must be ON as well, and mail settings
* must be correctly configured
* @see $g_send_reset_password
* @global integer $g_allow_signup
*/
$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
* @global integer $g_max_failed_login_count
*/
$g_max_failed_login_count = OFF;
/**
* access level required to be notified when a new user has been created using
* the "signup form"
* @global integer $g_notify_new_user_created_threshold_min
*/
$g_notify_new_user_created_threshold_min = ADMINISTRATOR;
/**
* If ON, users will be sent their password when their account is created
* or password reset (this requires mail settings to be correctly configured).
* If OFF, then the Administrator will have to provide a password when
* creating new accounts, and the password will be set to blank when reset.
* @global integer $g_send_reset_password
*/
$g_send_reset_password = ON;
/**
* use captcha image to validate subscription it requires GD library installed
* @global integer $g_signup_use_captcha
*/
$g_signup_use_captcha = ON;
/**
* absolute path (with trailing slash!) to folder which contains your
* TrueType-Font files used for the Relationship Graphs,
* the Workflow Graphs and the MantisGraph plugin
* @global string $g_system_font_folder
*/
$g_system_font_folder = '';
/**
* Setting to disable the 'lost your password' feature.
* @global integer $g_lost_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
* @global integer $g_max_lost_password_in_progress_count
*/
$g_max_lost_password_in_progress_count = 3;
#############
# Anti-Spam #
#############
/**
* Max number of events to allow for users with default access level when signup is enabled.
* Use 0 for no limit.
* @var integer
* @see $g_default_new_account_access_level
*/
$g_antispam_max_event_count = 10;
/**
* Time window to enforce max events within. Default is 3600 seconds (1 hour).
* @var integer
*/
$g_antispam_time_window_in_seconds = 3600;
###########################
# MantisBT Email Settings #
###########################
/**
* Webmaster email address. This is shown publicly at the bottom of each page
* and thus may be susceptible to being detected by spam email harvesters.
* @global string $g_webmaster_email
*/
$g_webmaster_email = '[email protected]';
/**
* the sender email, part of 'From: ' header in emails
* @global string $g_from_email
*/
$g_from_email = '[email protected]';
/**
* the sender name, part of 'From: ' header in emails
* @global string $g_from_name
*/
$g_from_name = 'Mantis Bug Tracker';
/**
* the return address for bounced mail
* @global string $g_return_path_email
*/
$g_return_path_email = '[email protected]';
/**
* Allow email notification.
* Set to ON to enable email notifications, OFF to disable them. Note that
* disabling email notifications has no effect on emails generated as part
* of the user signup process. When set to OFF, the password reset feature
* is disabled. Additionally, notifications of administrators updating
* accounts are not sent to users.
* @global integer $g_enable_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
* 'explicit': users who are explicitly specified by the code based on the
* action (e.g. user added to monitor list).
* '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
* 'owner': a bug has been assigned to a new owner
* '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
* 'sponsor': sponsorship has changed on this bug
* 'relation': a relationship has changed on this bug
* 'monitor': an issue is monitored.
* '<status>': eg: 'resolved', 'closed', 'feedback', 'acknowledged', etc.
* this list corresponds to $g_status_enum_string
*
* 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 did not want reporters to be notified when a bug is
* closed (only when it is resolved) you would use:
*
* $g_notify_flags['closed']['reporter'] = OFF;
*
* @global array $g_default_notify_flags
*/
$g_default_notify_flags = array(
'reporter' => ON,
'handler' => ON,
'monitor' => ON,
'bugnotes' => ON,
'explicit' => 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)
* @todo (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
* @see $g_default_notify_flags
* @global array $g_notify_flags
*/
$g_notify_flags['new'] = array(
'bugnotes' => OFF,
'monitor' => OFF
);
$g_notify_flags['monitor'] = array(
'reporter' => OFF,
'handler' => OFF,
'monitor' => OFF,
'bugnotes' => OFF,
'explicit' => ON,
'threshold_min' => NOBODY,
'threshold_max' => NOBODY
);
/**
* Whether user's should receive emails for their own actions
* @global integer $g_email_receive_own
*/
$g_email_receive_own = OFF;
/**
* Email addresses validation
*
* Determines whether email addresses are validated.
* - When ON (default), validation is performed using the pattern given by the
* HTML5 specification for 'email' type form input elements
* {@link http://www.w3.org/TR/html5/forms.html#valid-e-mail-address}
* - When OFF, validation is disabled.
*
* NOTE: Regardless of how this option is set, validation is never performed
* when using LDAP email (i.e. when $g_use_ldap_email = ON), as we assume that
* it is handled by the directory.
* @see $g_use_ldap_email
*
* @global integer $g_validate_email
*/
$g_validate_email = ON;
/**
* set to OFF to disable email check
* @global integer $g_check_mx_record
*/
$g_check_mx_record = OFF;
/**
* 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 would not get their passwords.
* @global integer $g_allow_blank_email
*/
$g_allow_blank_email = OFF;
/**
* Only allow and send email to addresses in the given domain(s)
* For example:
* $g_limit_email_domains = array( 'users.sourceforge.net', 'sourceforge.net' );
* @global array $g_limit_email_domains
*/
$g_limit_email_domains = array();
/**
* This specifies the access level that is needed to get the mailto: links.
* @global integer $g_show_user_email_threshold
*/
$g_show_user_email_threshold = NOBODY;
/**
* This specifies the access level that is needed to see realnames on user view
* page
* @global integer $g_show_user_realname_threshold
*/
$g_show_user_realname_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'
* @global integer $g_mail_priority
*/
$g_mail_priority = 3;
/**
* select the method to mail by:
* PHPMAILER_METHOD_MAIL - mail()
* PHPMAILER_METHOD_SENDMAIL - sendmail
* PHPMAILER_METHOD_SMTP - SMTP
* @global integer $g_phpMailer_method
*/
$g_phpMailer_method = PHPMAILER_METHOD_MAIL;
/**
* Remote SMTP Host(s)
* Either a single hostname or multiple semicolon-delimited hostnames.
* You can specify for each host a port other than the default, using format:
* [hostname:port] (e.g. "smtp1.example.com:25;smtp2.example.com").
* Hosts will be tried in the given order.
* NOTE: This is only used with PHPMAILER_METHOD_SMTP.
* @see $g_smtp_port
* @global string $g_smtp_host
*/
$g_smtp_host = 'localhost';
/**
* SMTP Server Authentication user
* NOTE: must be set to '' if the SMTP host does not require authentication.
* @see $g_smtp_password
* @global string $g_smtp_username
*/
$g_smtp_username = '';
/**
* SMTP Server Authentication password
* Not used when $g_smtp_username = ''
* @see $g_smtp_username
* @global string $g_smtp_password
*/
$g_smtp_password = '';
/**
* Allow secure connection to the SMTP server
* Valid values are '' (no encryption), 'ssl' or 'tls'
* @global string $g_smtp_connection_mode
*/
$g_smtp_connection_mode = '';
/**
* Default SMTP port
* Typical ports are 25 and 587.
* This can be overridden individually for specific hosts.
* @see $g_smtp_host
* @global integer $g_smtp_port
*/
$g_smtp_port = 25;
/**
* It is recommended to use a cronjob or a scheduler task to send emails. The
* cronjob should typically run every 5 minutes. If no cronjob is used,then
* user will have to wait for emails to be sent after performing an action
* which triggers notifications. This slows user performance.
* @global integer $g_email_send_using_cronjob
*/
$g_email_send_using_cronjob = OFF;
/**
* email separator and padding
* @global string $g_email_separator1
*/
$g_email_separator1 = str_pad('', 70, '=');
/**
* email separator and padding
* @global string $g_email_separator2
*/
$g_email_separator2 = str_pad('', 70, '-');
/**
* email separator and padding
* @global integer $g_email_padding_length
*/
$g_email_padding_length = 28;
###########################
# MantisBT Version String #
###########################
/**
* Set to off by default to not expose version to users
* @global integer $g_show_version
*/
$g_show_version = OFF;
/**
* String appended to the MantisBT version when displayed to the user
* @global string $g_version_suffix
*/
$g_version_suffix = '';
/**
* Custom copyright and licensing statement shown at the footer of each page.
* Can contain HTML elements that are valid children of the <address> element.
* This string is treated as raw HTML and thus you must use & instead of &.
* @global string $g_copyright_statement
*/
$g_copyright_statement = '';
##############################
# MantisBT Language Settings #
##############################
/**
* If the language is set to 'auto', the actual language is determined by the
* user agent (web browser) language preference.
* @global string $g_default_language
*/
$g_default_language = 'auto';
/**
* list the choices that the users are allowed to choose
* @global array $g_language_choices_arr
*/
$g_language_choices_arr = array(
'auto',
'afrikaans',
'amharic',
'arabic',
'arabicegyptianspoken',
'asturian',
'belarusian_tarask',
'breton',
'bulgarian',
'catalan',
'chinese_simplified',
'chinese_traditional',
'croatian',
'czech',
'danish',
'dutch',
'english',
'estonian',
'finnish',
'french',
'galician',
'german',
'greek',
'hebrew',
'hungarian',
'icelandic',
'interlingua',
'italian',
'japanese',
'korean',
'latvian',
'lithuanian',
'macedonian',
'norwegian_bokmal',
'norwegian_nynorsk',
'occitan',
'polish',
'portuguese_brazil',
'portuguese_standard',
'ripoarisch',
'romanian',
'russian',
'serbian',
'slovak',
'slovene',
'spanish',
'swissgerman',
'swedish',
'tagalog',
'turkish',
'ukrainian',
'urdu',
'vietnamese',
'volapuk',
);
/**
* Browser language mapping for 'auto' language selection
* @global array $g_language_auto_map
*/
$g_language_auto_map = array(
'af' => 'afrikaans',
'am' => 'amharic',
'ar' => 'arabic',
'arz' => 'arabicegyptianspoken',
'ast' => 'asturian',
'be-tarask' => 'belarusian_tarask',
'bg' => 'bulgarian',
'br' => 'breton',
'ca' => 'catalan',
'zh-cn, zh-sg, zh' => 'chinese_simplified',
'zh-hk, zh-tw' => 'chinese_traditional',
'cs' => 'czech',
'da' => 'danish',
'nl-be, nl' => 'dutch',
'en-us, en-gb, en-au, en' => 'english',
'et' => 'estonian',
'fi' => 'finnish',
'fr-ca, fr-be, fr-ch, fr' => 'french',
'gl' => 'galician',
'gsw' => 'swissgerman',
'de-de, de-at, de-ch, de' => 'german',
'he' => 'hebrew',
'hu' => 'hungarian',
'hr' => 'croatian',
'is' => 'icelandic',
'ia' => 'interlingua',
'it-ch, it' => 'italian',
'ja' => 'japanese',
'ko' => 'korean',
'ksh' => 'ripoarisch',
'lt' => 'lithuanian',
'lv' => 'latvian',
'mk' => 'macedonian',
'no' => 'norwegian_bokmal',
'nn' => 'norwegian_nynorsk',
'oc' => 'occitan',
'pl' => 'polish',
'pt-br' => 'portuguese_brazil',
'pt' => 'portuguese_standard',
'ro-mo, ro' => 'romanian',
'ru-mo, ru-ru, ru-ua, ru' => 'russian',
'sr' => 'serbian',
'sk' => 'slovak',
'sl' => 'slovene',
'es-mx, es-co, es-ar, es-cl, es-pr, es' => 'spanish',
'sv-fi, sv' => 'swedish',
'tl' => 'tagalog',
'tr' => 'turkish',
'uk' => 'ukrainian',
'vi' => 'vietnamese',
'vo' => 'volapuk',
);
/**
* Fallback for automatic language selection
* @global string $g_fallback_language
*/
$g_fallback_language = 'english';
#############################
# MantisBT Display Settings #
#############################
/**
* browser window title
* @global string $g_window_title
*/
$g_window_title = 'MantisBT';
/**
* Check for admin directory, database upgrades, etc.
* @global integer $g_admin_checks
*/
$g_admin_checks = ON;
/**
* Favicon image
* @global string $g_favicon_image
*/
$g_favicon_image = 'images/favicon.ico';
/**
* Logo
* @global string $g_logo_image
*/
$g_logo_image = 'images/mantis_logo.png';
/**
* Logo URL link
* @global string $g_logo_url
*/
$g_logo_url = '%default_home_page%';
/**
* Specifies whether to enable support for project documents or not.
* This feature is deprecated and is expected to be moved to a plugin
* in the future.
* @see $g_view_proj_doc_threshold
* @see $g_upload_project_file_threshold
* @global integer $g_enable_project_documentation
*/
$g_enable_project_documentation = OFF;
/**
* Display another instance of the menu at the bottom. The top menu will still
* remain.
* @global integer $g_show_footer_menu
*/
$g_show_footer_menu = OFF;
/**
* show extra menu bar with all available projects
* @global integer $g_show_project_menu_bar
*/
$g_show_project_menu_bar = OFF;
/**
* show assigned to names
* This is in the view all pages
* @global integer $g_show_assigned_names
*/
$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
* @global integer $g_show_priority_text
*/
$g_show_priority_text = OFF;
/**
* Define the priority level at which a bug becomes significant. Significant
* bugs are displayed with emphasis. Set this value to -1 to disable the
* feature.
* @global integer $g_priority_significant_threshold
*/
$g_priority_significant_threshold = HIGH;
/**
* Define the severity level at which a bug becomes significant.
* Significant bugs are displayed with emphasis. Set this value to -1 to
* disable the feature.
* @global integer $g_severity_significant_threshold
*/
$g_severity_significant_threshold = MAJOR;
/**
* The default columns to be included in the View Issues Page.
* This can be overriden using Manage -> Manage Configuration -> Manage Columns
* Also each user can configure their own columns using My Account -> Manage
* Columns. Some of the columns specified here can be removed automatically if
* they conflict with other configuration. Or if the current user doesn't have
* the necessary access level to view them. For example, sponsorship_total will
* be removed if sponsorships are disabled. To include custom field 'xyz',
* include the column name as 'custom_xyz'.
*
* Standard Column Names (i.e. names to choose from):
* id, project_id, reporter_id, handler_id, duplicate_id, priority, severity,
* reproducibility, status, resolution, category_id, date_submitted, last_updated,
* os, os_build, platform, version, fixed_in_version, target_version, view_state,
* summary, sponsorship_total, due_date, description, steps_to_reproduce,
* additional_info, attachment_count, bugnotes_count, selection, edit,
* overdue
*
* @global array $g_view_issues_page_columns
*/
$g_view_issues_page_columns = array (
'selection', 'edit', 'priority', 'id', 'sponsorship_total',
'bugnotes_count', 'attachment_count', 'category_id', 'severity', 'status',
'last_updated', 'summary'
);
/**
* The default columns to be included in the Print Issues Page. This can be
* overridden using Manage -> Manage Configuration -> Manage Columns. Also each
* user can configure their own columns using My Account -> Manage Columns.
* @global array $g_print_issues_page_columns
*/
$g_print_issues_page_columns = array (
'selection', 'priority', 'id', 'sponsorship_total', 'bugnotes_count',
'attachment_count', 'category_id', 'severity', 'status', 'last_updated',
'summary'
);
/**
* The default columns to be included in the CSV export. This can be overridden
* using Manage -> Manage Configuration -> Manage Columns. Also each user can
* configure their own columns using My Account -> Manage Columns.
* @global array $g_csv_columns
*/
$g_csv_columns = array (
'id', 'project_id', 'reporter_id', 'handler_id', 'priority',
'severity', 'reproducibility', 'version', 'projection', 'category_id',
'date_submitted', 'eta', 'os', 'os_build', 'platform', 'view_state',
'last_updated', 'summary', 'status', 'resolution', 'fixed_in_version'
);
/**
* The default columns to be included in the Excel export. This can be
* overridden using Manage -> Manage Configuration -> Manage Columns. Also each
* user can configure their own columns using My Account -> Manage Columns
* @global array $g_excel_columns
*/
$g_excel_columns = array (
'id', 'project_id', 'reporter_id', 'handler_id', 'priority', 'severity',
'reproducibility', 'version', 'projection', 'category_id',
'date_submitted', 'eta', 'os', 'os_build', 'platform', 'view_state',
'last_updated', 'summary', 'status', 'resolution', 'fixed_in_version'
);
/**
* show projects when in All Projects mode
* @global integer $g_show_bug_project_links
*/
$g_show_bug_project_links = ON;
/**
* Position of the status color legend
* Allowed values are:
* - STATUS_LEGEND_POSITION_NONE - do not display the legend at all
* - STATUS_LEGEND_POSITION_TOP
* - STATUS_LEGEND_POSITION_BOTTOM (default)
* - STATUS_LEGEND_POSITION_BOTH
* @global integer $g_status_legend_position
*/
$g_status_legend_position = STATUS_LEGEND_POSITION_BOTTOM;
/**
* Show a legend with percentage of bug status
* x% of all bugs are new, y% of all bugs are assigned and so on.
* If set to ON it will printed below the status colour legend.
* @global integer $g_status_percentage_legend
*/
$g_status_percentage_legend = OFF;