forked from mantisbt/mantisbt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config_defaults_inc.php
5131 lines (4602 loc) · 145 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 https://www.mantisbt.org/docs/master/
*
* @package MantisBT
* @copyright Copyright 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
* @copyright Copyright 2002 MantisBT Team - mantisbt-dev@lists.sourceforge.net
* @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';
/**
* Defines the database type. Supported types are listed below;
* the corresponding PHP extension must be enabled.
*
* RDBMS db_type PHP ext Comments
* ----- ------- ------- --------
* MySQL mysqli mysqli default
* PostgreSQL pgsql pgsql
* MS SQL Server mssqlnative sqlsrv experimental
* Oracle oci8 oci8 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 = '';
/**
* Database Table prefix.
*
* The given string is added with an underscore before the base table name,
* e.g. 'bug' => 'mantis_bug'.
* To avoid the 30-char limit on identifiers in Oracle (< 12cR2), the prefix
* should be set to blank or kept as short as possible (e.g. 'm')
*
* @global string $g_db_table_prefix
*/
$g_db_table_prefix = 'mantis';
/**
* Database Table suffix.
*
* The given string is added with an underscore after the base table name,
* e.g. 'bug' => 'bug_table'.
* To avoid the 30-char limit on identifiers in Oracle (< 12cR2), the prefix
* should be set to blank or kept as short as possible.
* @see $g_db_table_prefix for size limitation recommendation
*
* @global string $g_db_table_suffix
*/
$g_db_table_suffix = '_table';
/**
* Plugin Table prefix.
*
* The given string is added with an underscore between the table prefix and
* the base table name, and the plugin basename is added after that
* e.g. 'Example' plugin's table 'foo' => 'mantis_plugin_Example_foo_table'.
* To avoid the 30-char limit on identifiers in Oracle (< 12cR2), the prefix
* should be kept as short as possible (e.g. 'plg').
* It is strongly recommended not to use an empty string here.
*
* @see $g_db_table_prefix
* @global string $g_db_table_plugin_prefix
*/
$g_db_table_plugin_prefix = 'plugin';
####################
# 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 vendor folder for 3rd party libraries. Requires trailing / or \
* @global string $g_library_path
*/
$g_vendor_path = $g_absolute_path . 'vendor' . 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'] ) ) {
$t_protocol = http_is_protocol_https() ? 'https' : 'http';
# $_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;
}
# Prevent XSS if the path is displayed later on. This is the equivalent of
# FILTER_SANITIZE_STRING, which was deprecated in PHP 8.1:
# strip tags and null bytes, then encode quotes into HTML entities
$t_path = preg_replace( '/\x00|<[^>]*>?/', '', $_SERVER['SCRIPT_NAME'] );
$t_path = str_replace( ["'", '"'], [''', '"'], $t_path );
$t_path = dirname( $t_path );
switch( basename( $t_path ) ) {
case 'admin':
$t_path = dirname( $t_path );
break;
case 'check': # admin checks dir
case 'soap':
case 'rest':
$t_path = dirname( $t_path, 2 );
break;
case 'swagger':
$t_path = dirname( $t_path, 3 );
break;
}
$t_path = rtrim( $t_path, '/\\' ) . '/';
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;
/**
* 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 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!!
*
* @global integer $g_form_security_validation
*/
$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;
/**
* Maximum number of failed login attempts before the user's account is locked.
* Once locked, it is required to reset the password (lost password).
* The counter is reset to zero after each successful login.
* Set to OFF to disable this feature and allow unlimited failed login attempts.
* @global integer $g_max_failed_login_count
*/
$g_max_failed_login_count = 5;
/**
* 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,
* and the Workflow Graphs
* @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 = 'webmaster@example.com';
/**
* the sender email, part of 'From: ' header in emails
* @global string $g_from_email
*/
$g_from_email = 'noreply@example.com';
/**
* 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 = 'admin@example.com';
/**
* 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;
/**
* When enabled, the email notifications will send the full issue with
* a hint about the change type at the top, rather than using dedicated
* notifications that are focused on what changed. This change can be
* overridden in the database per user.
*
* @global integer $g_email_notifications_verbose
*/
$g_email_notifications_verbose = OFF;
/**
* Sets the default email notifications values for different user categories.
*
* In combination with *notify_flags* (see below), this config option controls
* who should get email notifications on different actions/statuses.
*
* 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
* 'category': category owners
* '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
*
* Examples:
* - 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;
*
* @see $g_notify_flags
* @global array $g_default_notify_flags
*/
$g_default_notify_flags = array(
'reporter' => ON,
'handler' => ON,
'monitor' => ON,
'bugnotes' => ON,
'category' => ON,
'explicit' => ON,
'threshold_min' => NOBODY,
'threshold_max' => NOBODY
);
/**
* Sets notifications overrides for specific actions/statuses.
*
* See above for detailed information. As an example of how to use this config
* option, the default setting
* - disables bugnotes notifications on new bugs (not needed in this case)
* - disables all notifications for monitoring event, except explicit
* example of how to use this config option.
* @see $g_default_notify_flags
* @global array $g_notify_flags
*/
$g_notify_flags = array(
'new' => array(
'bugnotes' => OFF,
),
'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;
/**
* Enable support for logging in by email and password, in addition to
* username and password. This will only work as long as there is a single
* user with the specified email address and the email address is not blank.
*
* @global integer $g_email_login_enabled
*/
$g_email_login_enabled = OFF;
/**
* Ensure that email addresses are unique.
*
* @global integer $g_email_ensure_unique
*/
$g_email_ensure_unique = 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
* @see $g_show_realname
* @global integer $g_show_user_realname_threshold
*/
$g_show_user_realname_threshold = NOBODY;
/**
* 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;
/**
* Enable DomainKeys Identified Mail (DKIM) Signatures (rfc6376)
* To successfully sign mails you need to enable DKIM and provide at least:
* - DKIM domain
* - DKIM private key or key file path
* - DKIM selector
* - DKIM identity
* @see $g_email_dkim_domain
* @see $g_email_dkim_private_key_file_path
* @see $g_email_dkim_private_key_string
* @see $g_email_dkim_selector
* @see $g_email_dkim_identity
* @global integer $g_email_dkim_enable
*/
$g_email_dkim_enable = OFF;
/**
* DomainKeys Identified Mail (DKIM) Signatures domain
* This is usually the same as the domain of your from email
* @see $g_from_email
* @see $g_email_dkim_enable
* @global string $g_email_dkim_domain
*/
$g_email_dkim_domain = 'example.com';
/**
* DomainKeys Identified Mail (DKIM) Signatures private key path
* Path to the private key. If $g_email_dkim_private_key_string is specified
* this setting will not be used.
* @see $g_email_dkim_private_key_string
* @see $g_email_dkim_enable
* @global string $g_email_dkim_private_key_file_path
*/
$g_email_dkim_private_key_file_path = '';
/**
* DomainKeys Identified Mail (DKIM) Signatures private key value
* This string should contain private key for signing. Leave empty
* string if you wish to load the key from the file defined with
* $g_email_dkim_private_key_file_path.
* @see $g_email_dkim_enable
* @see $g_email_dkim_private_key_file_path
* @global string $g_email_dkim_private_key_string
*/
$g_email_dkim_private_key_string = '';
/**
* DomainKeys Identified Mail (DKIM) Signatures selector
* DNS selector for the signature (rfc6376)
* DNS TXT field should have for instance:
* host mail.example._domainkey
* value v=DKIM1; t=s; n=core; k=rsa; p=[public key]
* @see $g_email_dkim_enable
* @global string $g_email_dkim_selector
*/
$g_email_dkim_selector = 'mail.example';
/**
* DomainKeys Identified Mail (DKIM) Signatures private key password
* Leave empty string if your private key does not have password
* @see $g_email_dkim_enable
* @global string $g_email_dkim_passphrase
*/
$g_email_dkim_passphrase = '';
/**
* DomainKeys Identified Mail (DKIM) Signatures identity
* Identity you are signing the mails with (rfc6376)
* This is usually the same as your from email
* @see $g_from_email
* @see $g_email_dkim_enable
* @global string $g_email_dkim_identity
*/
$g_email_dkim_identity = 'noreply@example.com';
/**
* Enable S/MIME signature.
*
* @global integer $g_email_smime_enable
*/
$g_email_smime_enable = OFF;
/**
* Path to the S/MIME certificate.
*
* The file must contain a PEM-encoded certificate.
*
* @global string $g_email_smime_cert_file
*/
$g_email_smime_cert_file = '';
/**
* Path to the S/MIME private key file.
*
* The file must contain a PEM-encoded private key matching the S/MIME certificate.
*
* @see $g_email_smime_cert_file
*
* @global string $g_email_smime_key_file
*/
$g_email_smime_key_file = '';
/**
* Password for the S/MIME private key.
*
* Leave blank if the private key is not protected by a passphrase.
* @see $g_email_smime_key_file
*
* @global string $g_email_smime_key_password
*/
$g_email_smime_key_password = '';
/**
* Optional path to S/MIME extra certificates.
*
* The file must contain one (or more) PEM-encoded certificates, which will be
* included in the signature to help the recipient verify the certificate
* specified in {@see $g_email_smime_cert_file} ("CA Chain").
*
* @global string $g_email_smime_extracerts_file
*/
$g_email_smime_extracerts_file = '';
/**
* 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;
/**
* Duration (in days) to retry failed emails before deleting them from queue.
* @global integer $g_email_retry_in_days
*/
$g_email_retry_in_days = 7;
###########################
# 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',
'basque',
'belarusian_tarask',
'breton',
'bulgarian',
'catalan',
'chinese_simplified',
'chinese_traditional',
'croatian',
'czech',
'danish',
'dutch',
'english',
'estonian',
'esperanto',
'finnish',
'french',
'galician',
'georgian',
'german',
'greek',
'hebrew',
'hindi',
'hungarian',
'icelandic',
'interlingua',
'italian',
'japanese',
'korean',
'latvian',
'lithuanian',
'luxembourgish',
'macedonian',
'norwegian_bokmal',
'norwegian_nynorsk',
'occitan',
'persian',
'polish',
'portuguese_brazil',
'portuguese_standard',
'ripoarisch',
'romanian',
'russian',
'saraiki',
'serbian',
'serbian_latin',
'slovak',
'slovene',
'spanish',
'swedish',
'swissgerman',
'tagalog',
'turkish',
'ukrainian',
'urdu',
'vietnamese',
'volapuk',
'zazaki',
);
/**
* 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',
'eu' => 'basque',
'be-tarask' => 'belarusian_tarask',
'bg' => 'bulgarian',
'br' => 'breton',
'ca' => 'catalan',
'zh-cn, zh-sg, zh' => 'chinese_simplified',
'zh-hk, zh-tw' => 'chinese_traditional',
'hr' => 'croatian',
'cs' => 'czech',
'da' => 'danish',
'nl-be, nl' => 'dutch',
'en-us, en-gb, en-au, en' => 'english',
'eo' => 'esperanto',
'et' => 'estonian',
'fi' => 'finnish',
'fr-ca, fr-be, fr-ch, fr' => 'french',
'gl' => 'galician',
'de-de, de-at, de-ch, de' => 'german',
'el' => 'greek',
'he' => 'hebrew',
'hi' => 'hindi',
'hu' => 'hungarian',
'is' => 'icelandic',
'ia' => 'interlingua',
'it-ch, it' => 'italian',
'ja' => 'japanese',
'ka' => 'georgian',
'ko' => 'korean',
'lv' => 'latvian',
'lt' => 'lithuanian',
'lb' => 'luxembourgish',
'mk' => 'macedonian',
'no' => 'norwegian_bokmal',
'nn' => 'norwegian_nynorsk',
'oc' => 'occitan',