2 # MantisBT - A PHP based bugtracking system
4 # MantisBT is free software: you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation, either version 2 of the License, or
7 # (at your option) any later version.
9 # MantisBT is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with MantisBT. If not, see <http://www.gnu.org/licenses/>.
18 * Default Configuration Variables
20 * This file should not be changed. If you want to override any of the values
21 * defined here, define them in a file called config_inc.php, which will
22 * be loaded after this file.
24 * In general a value of OFF means the feature is disabled and ON means the
25 * feature is enabled. Any other cases will have an explanation.
27 * For more details see http://www.mantisbt.org/docs/master-1.2.x/
30 * @copyright Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
31 * @copyright Copyright (C) 2002 - 2010 MantisBT Team - mantisbt-dev@lists.sourceforge.net
32 * @link http://www.mantisbt.org
35 /******************************
36 * MantisBT Database Settings *
37 ******************************/
40 * hostname should be either a hostname or connection string to supply to adodb.
41 * For example, if you would like to connect to a database server on the local machine,
42 * set hostname to 'localhost'
43 * If you need to supply a port to connect to, set hostname as 'localhost:3306'.
44 * @global string $g_hostname
46 $g_hostname = 'localhost';
48 * User name to use for connecting to the database. The user needs to have
49 * read/write access to the MantisBT database. The default user name is "root".
50 * @global string $g_db_username
52 $g_db_username = 'root';
54 * Password for the specified user name. The default password is empty.
55 * @global string $g_db_password
59 * Name of database that contains MantisBT tables.
60 * The default database name is "bugtracker".
61 * @global string $g_database_name
63 $g_database_name = 'bugtracker';
66 * Database Schema Name - used in the case of db2.
67 * @global string $g_db_schema
72 * Defines the database type. The supported default is 'mysql'.
73 * Supported types: 'mysql' or 'mysqli' for MySQL, 'pgsql' for PostgreSQL,
74 * 'odbc_mssql', 'mssql' for MS SQL Server, 'oci8' for Oracle, and 'db2' for
76 * @global string $g_db_type
81 * adodb Data Source Name
82 * This is an EXPERIMENTAL field.
83 * If the above database settings, do not provide enough flexibilty, it is
84 * possible to specify a dsn for the database connection. For further details,
85 * currently, you need to see the adodb manual at
86 * http://phplens.com/adodb/code.initialization.html#dsnsupport. For example,
87 * if db_type is odbc_mssql. The following is an example dsn:
88 * "Driver={SQL Server Native Client 10.0};SERVER=.\sqlexpress;DATABASE=bugtracker2;UID=mantis;PWD=passwd;"
89 * NOTE: the installer does not yet fully support the use of dsn's
93 /**************************
94 * MantisBT Path Settings *
95 **************************/
97 if ( isset ( $_SERVER['SCRIPT_NAME'] ) ) {
99 if ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) ) {
100 $t_protocol= $_SERVER['HTTP_X_FORWARDED_PROTO'];
101 } else if ( isset( $_SERVER['HTTPS'] ) && ( strtolower( $_SERVER['HTTPS'] ) != 'off' ) ) {
102 $t_protocol = 'https';
105 # $_SERVER['SERVER_PORT'] is not defined in case of php-cgi.exe
106 if ( isset( $_SERVER['SERVER_PORT'] ) ) {
107 $t_port = ':' . $_SERVER['SERVER_PORT'];
108 if ( ( ':80' == $t_port && 'http' == $t_protocol )
109 ||
( ':443' == $t_port && 'https' == $t_protocol )) {
116 if ( isset( $_SERVER['HTTP_X_FORWARDED_HOST'] ) ) { // Support ProxyPass
117 $t_hosts = explode( ',', $_SERVER['HTTP_X_FORWARDED_HOST'] );
118 $t_host = $t_hosts[0];
119 } else if ( isset( $_SERVER['HTTP_HOST'] ) ) {
120 $t_host = $_SERVER['HTTP_HOST'];
121 } else if ( isset( $_SERVER['SERVER_NAME'] ) ) {
122 $t_host = $_SERVER['SERVER_NAME'] . $t_port;
123 } else if ( isset( $_SERVER['SERVER_ADDR'] ) ) {
124 $t_host = $_SERVER['SERVER_ADDR'] . $t_port;
126 $t_host = 'www.example.com';
129 // Get server root to compare with path to this file
130 if( !isset( $_SERVER['DOCUMENT_ROOT'] ) ) {
131 if( isset( $_SERVER['SCRIPT_FILENAME'] ) ) {
132 $_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr( $_SERVER['SCRIPT_FILENAME'], 0, 0 - strlen( $_SERVER['SCRIPT_NAME'] ) ) );
136 if( !isset( $_SERVER['DOCUMENT_ROOT'] ) ) {
137 if( isset( $_SERVER['PATH_TRANSLATED'] ) ) {
138 $_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr( str_replace( '\\\\', '\\', $_SERVER['PATH_TRANSLATED'] ), 0, 0 - strlen( $_SERVER['SCRIPT_NAME'] ) ) );
142 $t_docroot = rtrim( $_SERVER['DOCUMENT_ROOT'], '/' );
143 $t_file_path = str_replace( DIRECTORY_SEPARATOR
, '/', __FILE__
);
145 // Extract the unique directory path of this file relative to the server's documunt root
146 if ( preg_match( '@' . preg_quote( $t_docroot ) . '(.*)@', $t_file_path, $t_matches ) ) {
147 $t_path = dirname( strip_tags( $t_matches[1] ) );
149 $t_path = dirname( strip_tags( $_SERVER['SCRIPT_NAME'] ) );
150 if ( '/' == $t_path ||
'\\' == $t_path ) {
154 $t_path = rtrim($t_path, '/');
156 $inc_files = get_included_files();
158 $t_relative_path = str_replace( dirname($t_file_path), '', str_replace( DIRECTORY_SEPARATOR
, '/', dirname($inc_files[0])));
159 $t_path = str_replace( $t_relative_path, '', $t_path );
161 $t_url = $t_protocol . '://' . $t_host . $t_path.'/';
169 * path to your installation as seen from the web browser
170 * requires trailing /
171 * @global string $g_path
173 $g_path = isset( $t_url ) ?
$t_url : 'http://www.example.com/mantisbt/';
176 * path to your images directory (for icons)
177 * requires trailing /
178 * @global string $g_icon_path
180 $g_icon_path = '%path%images/';
183 * Short web path without the domain name
184 * requires trailing /
185 * @global string $g_short_path
187 $g_short_path = $t_path . '/';
190 * absolute path to your installation. Requires trailing / or \
191 * @global string $g_absolute_path
193 $g_absolute_path = dirname( __FILE__
) . DIRECTORY_SEPARATOR
;
196 * absolute patch to your core files. The default is usually OK,
197 * unless you moved the 'core' directory out of your webroot (recommended).
198 * @global string $g_core_path
200 $g_core_path = $g_absolute_path . 'core' . DIRECTORY_SEPARATOR
;
203 * absolute path to class files. Requires trailing / or \
204 * @global string $g_class_path
206 $g_class_path = $g_core_path . 'classes' . DIRECTORY_SEPARATOR
;
209 * absolute path to library files. Requires trailing / or \
210 * @global string $g_library_path
212 $g_library_path = $g_absolute_path . 'library' . DIRECTORY_SEPARATOR
;
215 * Used to link to manual for User Documentation.
216 * @global string $g_manual_url
218 $g_manual_url = 'http://www.mantisbt.org/docs/master-1.2.x/';
224 if ( isset( $_SERVER['SERVER_SOFTWARE'] ) ) {
225 // SERVER_SOFTWARE not defined in case of php-cgi.exe
226 $t_use_iis = ( strstr( $_SERVER['SERVER_SOFTWARE'], 'IIS' ) !== false ) ? ON
: OFF
;
231 * Using Microsoft Internet Information Server (IIS)
233 * @global int $g_use_iis
235 $g_use_iis = $t_use_iis;
238 * Session handler. Possible values:
239 * 'php' -> Default PHP filesystem sessions
240 * 'adodb' -> Database storage sessions
241 * 'memcached' -> Memcached storage sessions
242 * @global string $g_session_handler
244 $g_session_handler = 'php';
247 * Session key name. Should be unique between multiple installations to prevent
249 * @global string $g_session_key
251 $g_session_key = 'MantisBT';
254 * Session save path. If false, uses default value as set by session handler.
255 * @global bool $g_session_save_path
257 $g_session_save_path = false;
261 * WARNING: Disabling this could be a potential security risk!!
262 * @global int $g_session_validation
264 $g_session_validation = ON
;
267 * Form security validation.
268 * This protects against Cross-Site Request Forgery, but some proxy servers may
269 * not correctly work with this option enabled because they cache pages
271 * WARNING: Disabling this is a security risk!!
273 $g_form_security_validation = ON
;
275 /****************************
276 * Signup and Lost Password *
277 ****************************/
280 * allow users to signup for their own accounts.
281 * Mail settings must be correctly configured in order for this to work
282 * @global int $g_allow_signup
284 $g_allow_signup = ON
;
287 * Max. attempts to login using a wrong password before lock the account.
288 * When locked, it's required to reset the password (lost password)
289 * Value resets to zero at each successfully login
290 * Set to OFF to disable this control
291 * @global int $g_max_failed_login_count
293 $g_max_failed_login_count = OFF
;
296 * access level required to be notified when a new user has been created using
298 * @global int $g_notify_new_user_created_threshold_min
300 $g_notify_new_user_created_threshold_min = ADMINISTRATOR
;
303 * if ON users will be sent their password when reset.
304 * if OFF the password will be set to blank. If set to ON, mail settings must be
305 * correctly configured.
306 * @global int $g_send_reset_password
308 $g_send_reset_password = ON
;
311 * String used to generate the confirm_hash for the 'lost password' feature and
312 * captcha code for 'signup'
313 * ATTENTION: CHANGE IT TO WHATEVER VALUE YOU PREFER
314 * @global int $g_password_confirm_hash_magic_string
315 * @todo randomize + admin check
317 $g_password_confirm_hash_magic_string = 'blowfish';
320 * use captcha image to validate subscription it requires GD library installed
321 * @global int $g_signup_use_captcha
323 $g_signup_use_captcha = ON
;
326 * absolute path (with trailing slash!) to folder which contains your
327 * TrueType-Font files used to create the captcha image and since 0.19.3 for
328 * the Relationship Graphs
329 * @global string $g_system_font_folder
331 $g_system_font_folder = '';
334 * font name used to create the captcha image. i.e. arial.ttf
335 * (the font file has to exist in the system_font_folder)
336 * @global string $g_font_per_captcha
338 $g_font_per_captcha = 'arial.ttf';
341 * Setting to disable the 'lost your password' feature.
342 * @global int $g_lost_password_feature
344 $g_lost_password_feature = ON
;
347 * Max. simultaneous requests of 'lost password'
348 * When this value is reached, it's no longer possible to request new password
349 * reset. Value resets to zero at each successfully login
350 * @global int $g_max_lost_password_in_progress_count
352 $g_max_lost_password_in_progress_count = 3;
354 /***************************
355 * MantisBT Email Settings *
356 ***************************/
359 * Administrator Email address
360 * @global string $g_administrator_email
362 $g_administrator_email = 'administrator@example.com';
366 * @global string $g_webmaster_email
368 $g_webmaster_email = 'webmaster@example.com';
371 * the sender email, part of 'From: ' header in emails
372 * @global string $g_from_email
374 $g_from_email = 'noreply@example.com';
377 * the sender name, part of 'From: ' header in emails
378 * @global string $g_from_name
380 $g_from_name = 'Mantis Bug Tracker';
383 * the return address for bounced mail
384 * @global string $g_return_path_email
386 $g_return_path_email = 'admin@example.com';
389 * Allow email notification.
390 * Set to ON to enable email notifications, OFF to disable them. Note that
391 * disabling email notifications has no effect on emails generated as part
392 * of the user signup process. When set to OFF, the password reset feature
393 * is disabled. Additionally, notifications of administrators updating
394 * accounts are not sent to users.
395 * @global int $g_enable_email_notification
397 $g_enable_email_notification = ON
;
401 * The following two config options allow you to control who should get email
402 * notifications on different actions/statuses. The first option
403 * (default_notify_flags) sets the default values for different user
404 * categories. The user categories are:
406 * 'reporter': the reporter of the bug
407 * 'handler': the handler of the bug
408 * 'monitor': users who are monitoring a bug
409 * 'bugnotes': users who have added a bugnote to the bug
410 * 'explicit': users who are explicitly specified by the code based on the
411 * action (e.g. user added to monitor list).
412 * 'threshold_max': all users with access <= max
413 * 'threshold_min': ..and with access >= min
415 * The second config option (notify_flags) sets overrides for specific
416 * actions/statuses. If a user category is not listed for an action, the
417 * default from the config option above is used. The possible actions are:
419 * 'new': a new bug has been added
420 * 'owner': a bug has been assigned to a new owner
421 * 'reopened': a bug has been reopened
422 * 'deleted': a bug has been deleted
423 * 'updated': a bug has been updated
424 * 'bugnote': a bugnote has been added to a bug
425 * 'sponsor': sponsorship has changed on this bug
426 * 'relation': a relationship has changed on this bug
427 * 'monitor': an issue is monitored.
428 * '<status>': eg: 'resolved', 'closed', 'feedback', 'acknowledged', etc.
429 * this list corresponds to $g_status_enum_string
431 * If you wanted to have all developers get notified of new bugs you might add
432 * the following lines to your config file:
434 * $g_notify_flags['new']['threshold_min'] = DEVELOPER;
435 * $g_notify_flags['new']['threshold_max'] = DEVELOPER;
437 * You might want to do something similar so all managers are notified when a
438 * bug is closed. If you didn't want reporters to be notified when a bug is
439 * closed (only when it is resolved) you would use:
441 * $g_notify_flags['closed']['reporter'] = OFF;
443 * @global array $g_default_notify_flags
446 $g_default_notify_flags = array(
452 'threshold_min' => NOBODY
,
453 'threshold_max' => NOBODY
457 * We don't need to send these notifications on new bugs
458 * (see above for info on this config option)
459 * @todo (though I'm not sure they need to be turned off anymore
460 * - there just won't be anyone in those categories)
461 * I guess it serves as an example and a placeholder for this
463 * @see $g_default_notify_flags
464 * @global array $g_notify_flags
466 $g_notify_flags['new'] = array(
471 $g_notify_flags['monitor'] = array(
477 'threshold_min' => NOBODY
,
478 'threshold_max' => NOBODY
482 * Whether user's should receive emails for their own actions
483 * @global int $g_email_receive_own
485 $g_email_receive_own = OFF
;
488 * set to OFF to disable email check
489 * @global int $g_validate_email
491 $g_validate_email = ON
;
494 * set to OFF to disable email check
495 * @global int $g_check_mx_record
497 $g_check_mx_record = OFF
;
500 * if ON, allow the user to omit an email field
501 * note if you allow users to create their own accounts, they
502 * must specify an email at that point, no matter what the value
503 * of this option is. Otherwise they wouldn't get their passwords.
504 * @global int $g_allow_blank_email
506 $g_allow_blank_email = OFF
;
509 * Only allow and send email to addresses in the given domain
511 * $g_limit_email_domain = 'users.sourceforge.net';
512 * @global string|int $g_limit_email_domain
514 $g_limit_email_domain = OFF
;
517 * This specifies the access level that is needed to get the mailto: links.
518 * @global int $g_show_user_email_threshold
520 $g_show_user_email_threshold = NOBODY
;
523 * This specifies the access level that is needed to see realnames on user view
525 * @global int $g_show_user_realname_threshold
527 $g_show_user_realname_threshold = NOBODY
;
530 * If use_x_priority is set to ON, what should the value be?
531 * Urgent = 1, Not Urgent = 5, Disable = 0
532 * Note: some MTAs interpret X-Priority = 0 to mean 'Very Urgent'
533 * @global int $g_mail_priority
535 $g_mail_priority = 3;
538 * select the method to mail by:
539 * PHPMAILER_METHOD_MAIL - mail()
540 * PHPMAILER_METHOD_SENDMAIL - sendmail
541 * PHPMAILER_METHOD_SMTP - SMTP
542 * @global int $g_phpMailer_method
544 $g_phpMailer_method = PHPMAILER_METHOD_MAIL
;
547 * This option allows you to use a remote SMTP host. Must use the phpMailer script
548 * One or more hosts, separated by a semicolon, can be listed.
549 * You can also specify a different port for each host by using this
550 * format: [hostname:port] (e.g. "smtp1.example.com:25;smtp2.example.com").
551 * Hosts will be tried in order.
552 * @global string $g_smtp_host
554 $g_smtp_host = 'localhost';
557 * These options allow you to use SMTP Authentication when you use a remote
558 * SMTP host with phpMailer. If smtp_username is not '' then the username
559 * and password will be used when logging in to the SMTP server.
560 * @global string $g_smtp_username
562 $g_smtp_username = '';
565 * SMTP Server Authentication password
566 * @global string $g_smtp_password
568 $g_smtp_password = '';
571 * This control the connection mode to SMTP server. Can be 'ssl' or 'tls'
572 * @global string $g_smtp_connection_mode
574 $g_smtp_connection_mode = '';
577 * The smtp port to use. The typical SMTP ports are 25 and 587. The port to
578 * use will depend on the SMTP server configuration and hence others may be
580 * @global int $g_smtp_port
585 * It is recommended to use a cronjob or a scheduler task to send emails. The
586 * cronjob should typically run every 5 minutes. If no cronjob is used,then
587 * user will have to wait for emails to be sent after performing an action
588 * which triggers notifications. This slows user performance.
589 * @global int $g_email_send_using_cronjob
591 $g_email_send_using_cronjob = OFF
;
594 * Specify whether e-mails should be sent with the category set or not. This
595 * is tested with Microsoft Outlook. More testing for this feature + other
596 * formats will be added in the future.
597 * OFF, EMAIL_CATEGORY_PROJECT_CATEGORY (format: [Project] Category)
598 * @global int $g_email_set_category
600 $g_email_set_category = OFF
;
603 * email separator and padding
604 * @global string $g_email_separator1
606 $g_email_separator1 = str_pad('', 70, '=');
608 * email separator and padding
609 * @global string $g_email_separator2
611 $g_email_separator2 = str_pad('', 70, '-');
613 * email separator and padding
614 * @global int $g_email_padding_length
616 $g_email_padding_length = 28;
618 /***************************
619 * MantisBT Version String *
620 ***************************/
623 * Set to off by default to not expose version to users
624 * @global int $g_show_version
626 $g_show_version = OFF
;
629 * String appended to the MantisBT version when displayed to the user
630 * @global string $g_version_suffix
632 $g_version_suffix = '';
634 /******************************
635 * MantisBT Language Settings *
636 ******************************/
639 * If the language is set to 'auto', the actual language is determined by the
640 * user agent (web browser) language preference.
641 * @global string $g_default_language
643 $g_default_language = 'english';
646 * list the choices that the users are allowed to choose
647 * @global array $g_language_choices_arr
649 $g_language_choices_arr = array(
654 'arabicegyptianspoken',
658 'chinese_simplified',
659 'chinese_traditional',
685 'portuguese_standard',
703 * Browser language mapping for 'auto' language selection
704 * @global array $g_language_auto_map
706 $g_language_auto_map = array(
710 'arz' => 'arabicegyptianspoken',
714 'zh-cn, zh-sg, zh' => 'chinese_simplified',
715 'zh-hk, zh-tw' => 'chinese_traditional',
718 'nl-be, nl' => 'dutch',
719 'en-us, en-gb, en-au, en' => 'english',
722 'fr-ca, fr-be, fr-ch, fr' => 'french',
724 'gsw' => 'swissgerman',
725 'de-de, de-at, de-ch, de' => 'german',
730 'it-ch, it' => 'italian',
733 'ksh' => 'ripoarisch',
734 'lt' => 'lithuanian',
736 'mk' => 'macedonian',
737 'no' => 'norwegian_bokmal',
738 'nn' => 'norwegian_nynorsk',
741 'pt-br' => 'portuguese_brazil',
742 'pt' => 'portuguese_standard',
743 'ro-mo, ro' => 'romanian',
744 'ru-mo, ru-ru, ru-ua, ru' => 'russian',
748 'es-mx, es-co, es-ar, es-cl, es-pr, es' => 'spanish',
749 'sv-fi, sv' => 'swedish',
757 * Fallback for automatic language selection
758 * @global string $g_fallback_language
760 $g_fallback_language = 'english';
762 /*****************************
763 * MantisBT Display Settings *
764 *****************************/
767 * browser window title
768 * @global string $g_window_title
770 $g_window_title = 'MantisBT';
773 * title at top of html page (empty by default, since there is a logo now)
774 * @global string $g_page_title
779 * Check for admin directory, database upgrades, etc.
780 * @global int $g_admin_checks
782 $g_admin_checks = ON
;
786 * @global string $g_favicon_image
788 $g_favicon_image = 'images/favicon.ico';
792 * @global string $g_logo_image
794 $g_logo_image = 'images/mantis_logo.gif';
798 * @global string $g_logo_url
800 $g_logo_url = '%default_home_page%';
803 * Re-authentication required for admin areas
804 * @global int $g_reauthentication
806 $g_reauthentication = ON
;
810 * @global int $g_reauthentication_expiry
812 $g_reauthentication_expiry = TOKEN_EXPIRY_AUTHENTICATED
;
815 * Specifies whether to enable support for project documents or not.
816 * This feature is deprecated and is expected to be moved to a plugin
818 * @global int $g_enable_project_documentation
820 $g_enable_project_documentation = OFF
;
823 * Display another instance of the menu at the bottom. The top menu will still
825 * @global int $g_show_footer_menu
827 $g_show_footer_menu = OFF
;
830 * show extra menu bar with all available projects
831 * @global int $g_show_project_menu_bar
833 $g_show_project_menu_bar = OFF
;
836 * show assigned to names
837 * This is in the view all pages
838 * @global int $g_show_assigned_names
840 $g_show_assigned_names = ON
;
843 * show priority as icon
844 * OFF: Shows priority as icon in view all bugs page
845 * ON: Shows priority as text in view all bugs page
846 * @global int $g_show_priority_text
848 $g_show_priority_text = OFF
;
851 * Define the priority level at which a bug becomes significant. Significant
852 * bugs are displayed with emphasis. Set this value to -1 to disable the
854 * @global int $g_priority_significant_threshold
856 $g_priority_significant_threshold = HIGH
;
859 * Define the severity level at which a bug becomes significant.
860 * Significant bugs are displayed with emphasis. Set this value to -1 to
861 * disable the feature.
862 * @global int $g_severity_significant_threshold
864 $g_severity_significant_threshold = MAJOR
;
867 * The default columns to be included in the View Issues Page.
868 * This can be overriden using Manage -> Manage Configuration -> Manage Columns
869 * Also each user can configure their own columns using My Account -> Manage
870 * Columns. Some of the columns specified here can be removed automatically if
871 * they conflict with other configuration. Or if the current user doesn't have
872 * the necessary access level to view them. For example, sponsorship_total will
873 * be removed if sponsorships are disabled. To include custom field 'xyz',
874 include the column name as 'custom_xyz'.
876 * Standard Column Names (i.e. names to choose from):
877 * selection, edit, id, project_id, reporter_id, handler_id, priority,
878 * reproducibility, projection, eta, resolution, fixed_in_version, view_state,
879 * os, os_build, build (for product build), platform, version, date_submitted,
880 * attachment, category, sponsorship_total, severity, status, last_updated,
881 * summary, bugnotes_count, description, steps_to_reproduce,
882 * additional_information
884 * @global array $g_view_issues_page_columns
886 $g_view_issues_page_columns = array (
887 'selection', 'edit', 'priority', 'id', 'sponsorship_total',
888 'bugnotes_count', 'attachment', 'category_id', 'severity', 'status',
889 'last_updated', 'summary'
893 * The default columns to be included in the Print Issues Page. This can be
894 * overriden using Manage -> Manage Configuration -> Manage Columns. Also each
895 * user can configure their own columns using My Account -> Manage Columns.
896 * @global array $g_print_issues_page_columns
898 $g_print_issues_page_columns = array (
899 'selection', 'priority', 'id', 'sponsorship_total', 'bugnotes_count',
900 'attachment', 'category_id', 'severity', 'status', 'last_updated', 'summary'
904 * The default columns to be included in the CSV export. This can be overriden
905 * using Manage -> Manage Configuration -> Manage Columns. Also each user can
906 * configure their own columns using My Account -> Manage Columns.
907 * @global array $g_csv_columns
909 $g_csv_columns = array (
910 'id', 'project_id', 'reporter_id', 'handler_id', 'priority',
911 'severity', 'reproducibility', 'version', 'projection', 'category_id',
912 'date_submitted', 'eta', 'os', 'os_build', 'platform', 'view_state',
913 'last_updated', 'summary', 'status', 'resolution', 'fixed_in_version'
917 * The default columns to be included in the Excel export. This can be
918 * overriden using Manage -> Manage Configuration -> Manage Columns. Also each
919 * user can configure their own columns using My Account -> Manage Columns
920 * @global array $g_excel_columns
922 $g_excel_columns = array (
923 'id', 'project_id', 'reporter_id', 'handler_id', 'priority', 'severity',
924 'reproducibility', 'version', 'projection', 'category_id',
925 'date_submitted', 'eta', 'os', 'os_build', 'platform', 'view_state',
926 'last_updated', 'summary', 'status', 'resolution', 'fixed_in_version'
930 * show projects when in All Projects mode
931 * @global int $g_show_bug_project_links
933 $g_show_bug_project_links = ON
;
936 * Position of the status colour legend, can be: POSITION_*
937 * see constant_inc.php. (*: TOP , BOTTOM , or BOTH)
938 * @global int $g_status_legend_position
940 $g_status_legend_position = STATUS_LEGEND_POSITION_BOTTOM
;
943 * Show a legend with percentage of bug status
944 * x% of all bugs are new, y% of all bugs are assigned and so on.
945 * If set to ON it will printed below the status colour legend.
946 * @global int $g_status_percentage_legend
948 $g_status_percentage_legend = OFF
;
951 * Position of the filter box, can be: POSITION_*
952 * POSITION_TOP, POSITION_BOTTOM, or POSITION_NONE for none.
953 * @global int $g_filter_position
955 $g_filter_position = FILTER_POSITION_TOP
;
958 * Position of action buttons when viewing issues.
959 * Can be: POSITION_TOP, POSITION_BOTTOM, or POSITION_BOTH.
960 * @global int $g_action_button_position
962 $g_action_button_position = POSITION_BOTTOM
;
965 * show product versions in create, view and update screens
966 * ON forces display even if none are defined
967 * OFF suppresses display
968 * AUTO suppresses the display if there are no versions defined for the project
969 * @global int $g_show_product_version
971 $g_show_product_version = AUTO
;
974 * The access level threshold at which users will see the date of release
975 * for product versions. Dates will be shown next to the product version,
976 * target version and fixed in version fields. Set this threshold to NOBODY
977 * to disable the feature.
978 * @global int $g_show_version_dates_threshold
980 $g_show_version_dates_threshold = NOBODY
;
983 * show users with their real name or not
984 * @global int $g_show_realname
986 $g_show_realname = OFF
;
990 * @global int $g_differentiate_duplicates
992 $g_differentiate_duplicates = OFF
;
995 * sorting for names in dropdown lists. If turned on, "Jane Doe" will be sorted
997 * @global int $g_sort_by_last_name
999 $g_sort_by_last_name = OFF
;
1002 * Show user avatar. The current implementation is based on
1003 * http://www.gravatar.com. Users will need to register there the same address
1004 * used in this MantisBT installation to have their avatar shown. Please note:
1005 * upon registration or avatar change, it takes some time for the updated
1006 * gravatar images to show on sites
1007 * @global int $g_show_avatar
1009 $g_show_avatar = OFF
;
1012 * Only users above this threshold will have their avatar shown
1013 * @global int $g_show_avatar_threshold
1015 $g_show_avatar_threshold = DEVELOPER
;
1018 * Default avatar for users without a gravatar account
1019 * @global string $g_default_avatar
1021 $g_default_avatar = "%path%images/no_avatar.png";
1024 * Show release dates on changelog
1025 * @global int $g_show_changelog_dates
1027 $g_show_changelog_dates = ON
;
1030 * Show release dates on roadmap
1031 * @global int $g_show_roadmap_dates
1033 $g_show_roadmap_dates = ON
;
1035 /**************************
1036 * MantisBT Time Settings *
1037 **************************/
1040 * time for 'permanent' cookie to live in seconds (1 year)
1041 * @global int $g_cookie_time_length
1043 $g_cookie_time_length = 30000000;
1046 * minutes to wait before document is stale (in minutes)
1047 * @global int $g_content_expire
1049 $g_content_expire = 0;
1052 * The time (in seconds) to allow for page execution during long processes
1053 * such as upgrading your database.
1054 * The default value of 0 indicates that the page should be allowed to
1055 * execute until it is finished.
1056 * @global int $g_long_process_timeout
1058 $g_long_process_timeout = 0;
1060 /**************************
1061 * MantisBT Date Settings *
1062 **************************/
1065 * date format strings defaults to ISO 8601 formatting
1066 * go to http://www.php.net/manual/en/function.date.php
1067 * for detailed instructions on date formatting
1068 * @global string $g_short_date_format
1070 $g_short_date_format = 'Y-m-d';
1073 * date format strings defaults to ISO 8601 formatting
1074 * go to http://www.php.net/manual/en/function.date.php
1075 * for detailed instructions on date formatting
1076 * @global string $g_normal_date_format
1078 $g_normal_date_format = 'Y-m-d H:i';
1081 * date format strings defaults to ISO 8601 formatting
1082 * go to http://www.php.net/manual/en/function.date.php
1083 * for detailed instructions on date formatting
1084 * @global string $g_complete_date_format
1086 $g_complete_date_format = 'Y-m-d H:i T';
1089 * jscalendar date format string
1090 * go to http://www.php.net/manual/en/function.date.php
1091 * for detailed instructions on date formatting
1092 * @global string $g_calendar_js_date_format
1094 $g_calendar_js_date_format = '\%Y-\%m-\%d \%H:\%M';
1097 * jscalendar date format string
1098 * go to http://www.php.net/manual/en/function.date.php
1099 * for detailed instructions on date formatting
1100 * @global string $g_calendar_date_format
1102 $g_calendar_date_format = 'Y-m-d H:i';
1104 /**************************
1105 * MantisBT TimeZone Settings *
1106 **************************/
1109 * Default timezone to use in MantisBT.
1110 * See http://us.php.net/manual/en/timezones.php
1111 * for a list of valid timezones.
1112 * Note: if this is left blank, we use the result of
1113 * date_default_timezone_get() i.e. in order:
1114 * 1. Reading the TZ environment variable (if non empty)
1115 * 2. Reading the value of the date.timezone php.ini option (if set)
1116 * 3. Querying the host operating system (if supported and allowed by the OS)
1117 * 4. If none of the above succeed, will return a default timezone of UTC.
1118 * @global string $g_default_timezone
1120 $g_default_timezone = '';
1122 /**************************
1123 * MantisBT News Settings *
1124 **************************/
1127 * Indicates whether the news feature should be enabled or disabled.
1128 * This feature is deprecated and is expected to be moved to a plugin
1131 $g_news_enabled = OFF
;
1135 * limit by entry count or date
1136 * BY_LIMIT - entry limit
1138 * @global int $g_news_limit_method
1140 $g_news_limit_method = BY_LIMIT
;
1143 * limit by last X entries
1144 * @global int $g_news_view_limit
1146 $g_news_view_limit = 7;
1150 * @global int $g_news_view_limit_days
1152 $g_news_view_limit_days = 30;
1155 * threshold for viewing private news
1156 * @global int $g_private_news_threshold
1158 $g_private_news_threshold = DEVELOPER
;
1160 /********************************
1161 * MantisBT Default Preferences *
1162 ********************************/
1166 * look in constant_inc.php for values
1167 * @global int $g_default_new_account_access_level
1169 $g_default_new_account_access_level = REPORTER
;
1172 * Default Bug View Status (VS_PUBLIC or VS_PRIVATE)
1173 * @global int $g_default_bug_view_status
1175 $g_default_bug_view_status = VS_PUBLIC
;
1178 * Default value for steps to reproduce field.
1179 * @global string $g_default_bug_steps_to_reproduce
1181 $g_default_bug_steps_to_reproduce = '';
1184 * Default value for addition information field.
1185 * @global string $g_default_bug_additional_info
1187 $g_default_bug_additional_info = '';
1190 * Default Bugnote View Status (VS_PUBLIC or VS_PRIVATE)
1191 * @global int $g_default_bugnote_view_status
1193 $g_default_bugnote_view_status = VS_PUBLIC
;
1196 * Default bug resolution when reporting a new bug
1197 * @global int $g_default_bug_resolution
1199 $g_default_bug_resolution = OPEN
;
1202 * Default bug severity when reporting a new bug
1203 * @global int $g_default_bug_severity
1205 $g_default_bug_severity = MINOR
;
1208 * Default bug priority when reporting a new bug
1209 * @global int $g_default_bug_priority
1211 $g_default_bug_priority = NORMAL
;
1214 * Default bug reproducibility when reporting a new bug
1215 * @global int $g_default_bug_reproducibility
1217 $g_default_bug_reproducibility = REPRODUCIBILITY_HAVENOTTRIED
;
1220 * Default bug projection when reporting a new bug
1221 * @global int $g_default_bug_projection
1223 $g_default_bug_projection = PROJECTION_NONE
;
1226 * Default bug ETA when reporting a new bug
1227 * @global int $g_default_bug_eta
1229 $g_default_bug_eta = ETA_NONE
;
1233 * @global int $g_default_limit_view
1235 $g_default_limit_view = 50;
1239 * @global int $g_default_show_changed
1241 $g_default_show_changed = 6;
1245 * @global int $g_hide_status_default
1247 $g_hide_status_default = CLOSED
;
1251 * @global string $g_show_sticky_issues
1253 $g_show_sticky_issues = ON
;
1256 * make sure people aren't refreshing too often
1258 * @global int $g_min_refresh_delay
1260 $g_min_refresh_delay = 10;
1264 * @global int $g_default_refresh_delay
1266 $g_default_refresh_delay = 30;
1270 * @global int $g_default_redirect_delay
1272 $g_default_redirect_delay = 2;
1276 * @global string $g_default_bugnote_order
1278 $g_default_bugnote_order = 'ASC';
1282 * @global int $g_default_email_on_new
1284 $g_default_email_on_new = ON
;
1288 * @global int $g_default_email_on_assigned
1290 $g_default_email_on_assigned = ON
;
1294 * @global int $g_default_email_on_feedback
1296 $g_default_email_on_feedback = ON
;
1300 * @global int $g_default_email_on_resolved
1302 $g_default_email_on_resolved = ON
;
1306 * @global int $g_default_email_on_closed
1308 $g_default_email_on_closed = ON
;
1312 * @global int $g_default_email_on_reopened
1314 $g_default_email_on_reopened = ON
;
1318 * @global int $g_default_email_on_bugnote
1320 $g_default_email_on_bugnote = ON
;
1324 * @global int $g_default_email_on_status
1326 $g_default_email_on_status = 0;
1330 * @global int $g_default_email_on_priority
1332 $g_default_email_on_priority = 0;
1336 * @global int $g_default_email_on_new_minimum_severity
1338 $g_default_email_on_new_minimum_severity = OFF
;
1342 * @global int $g_default_email_on_assigned_minimum_severity
1344 $g_default_email_on_assigned_minimum_severity = OFF
;
1348 * @global int $g_default_email_on_feedback_minimum_severity
1350 $g_default_email_on_feedback_minimum_severity = OFF
;
1354 * @global int $g_default_email_on_resolved_minimum_severity
1356 $g_default_email_on_resolved_minimum_severity = OFF
;
1360 * @global int $g_default_email_on_closed_minimum_severity
1362 $g_default_email_on_closed_minimum_severity = OFF
;
1366 * @global int $g_default_email_on_reopened_minimum_severity
1368 $g_default_email_on_reopened_minimum_severity = OFF
;
1372 * @global int $g_default_email_on_bugnote_minimum_severity
1374 $g_default_email_on_bugnote_minimum_severity = OFF
;
1378 * @global int $g_default_email_on_status_minimum_severity
1380 $g_default_email_on_status_minimum_severity = OFF
;
1384 * @global int $g_default_email_on_priority_minimum_severity
1386 $g_default_email_on_priority_minimum_severity = OFF
;
1390 * @global int $g_default_email_bugnote_limit
1392 $g_default_email_bugnote_limit = 0;
1394 /*****************************
1395 * MantisBT Summary Settings *
1396 *****************************/
1399 * how many reporters to show
1400 * this is useful when there are hundreds of reporters
1401 * @global int $g_reporter_summary_limit
1403 $g_reporter_summary_limit = 10;
1406 * summary date displays
1407 * date lengths to count bugs by (in days)
1408 * @global array $g_date_partitions
1410 $g_date_partitions = array( 1, 2, 3, 7, 30, 60, 90, 180, 365);
1413 * shows project '[project] category' when 'All Projects' is selected
1414 * otherwise only 'category name'
1415 * @global int $g_summary_category_include_project
1417 $g_summary_category_include_project = OFF
;
1420 * threshold for viewing summary
1421 * @global int $g_view_summary_threshold
1423 $g_view_summary_threshold = MANAGER
;
1426 * Define the multipliers which are used to determine the effectiveness
1427 * of reporters based on the severity of bugs. Higher multipliers will
1428 * result in an increase in reporter effectiveness.
1429 * @global array $g_severity_multipliers
1431 $g_severity_multipliers = array(
1443 * Define the resolutions which are used to determine the effectiveness
1444 * of reporters based on the resolution of bugs. Higher multipliers will
1445 * result in a decrease in reporter effectiveness. The only resolutions
1446 * that need to be defined here are those which match or exceed
1447 * $g_bug_resolution_not_fixed_threshold.
1448 * @global array $g_resolution_multipliers
1450 $g_resolution_multipliers = array(
1451 UNABLE_TO_DUPLICATE
=> 2,
1459 /*****************************
1460 * MantisBT Bugnote Settings *
1461 *****************************/
1465 * change to ASC or DESC
1466 * @global string $g_bugnote_order
1468 $g_bugnote_order = 'DESC';
1470 /*********************************
1471 * MantisBT Bug History Settings *
1472 *********************************/
1475 * bug history visible by default when you view a bug
1476 * change to ON or OFF
1477 * @global int $g_history_default_visible
1479 $g_history_default_visible = ON
;
1482 * bug history ordering
1483 * change to ASC or DESC
1484 * @global string $g_history_order
1486 $g_history_order = 'ASC';
1488 /******************************
1489 * MantisBT Reminder Settings *
1490 ******************************/
1493 * are reminders stored as bugnotes
1494 * @global int $g_store_reminders
1496 $g_store_reminders = ON
;
1499 * Automatically add recipients of reminders to monitor list, if they are not
1500 * the handler or the reporter (since they automatically get notified, if required)
1501 * If recipients of the reminders are below the monitor threshold, they will not be added.
1502 * @global int $g_reminder_recipients_monitor_bug
1504 $g_reminder_recipients_monitor_bug = ON
;
1507 * Default Reminder View Status (VS_PUBLIC or VS_PRIVATE)
1508 * @global int $g_default_reminder_view_status
1510 $g_default_reminder_view_status = VS_PUBLIC
;
1513 * The minimum access level required to show up in the list of users who can receive a reminder.
1514 * The access level is that of the project to which the issue belongs.
1515 * @global int $g_reminder_receive_threshold
1517 $g_reminder_receive_threshold = DEVELOPER
;
1519 /*********************************
1520 * MantisBT Sponsorship Settings *
1521 *********************************/
1524 * Whether to enable/disable the whole issue sponsorship feature
1525 * @global int $g_enable_sponsorship
1527 $g_enable_sponsorship = OFF
;
1530 * Currency used for all sponsorships.
1531 * @global string $g_sponsorship_currency
1533 $g_sponsorship_currency = 'US$';
1536 * Access level threshold needed to view the total sponsorship for an issue by
1538 * @global int $g_view_sponsorship_total_threshold
1540 $g_view_sponsorship_total_threshold = VIEWER
;
1543 * Access level threshold needed to view the users sponsoring an issue and the
1544 * sponsorship amount for each.
1545 * @global int $g_view_sponsorship_details_threshold
1547 $g_view_sponsorship_details_threshold = VIEWER
;
1550 * Access level threshold needed to allow user to sponsor issues.
1551 * @global int $g_sponsor_threshold
1553 $g_sponsor_threshold = REPORTER
;
1556 * Access level required to be able to handle sponsored issues.
1557 * @global int $g_handle_sponsored_bugs_threshold
1559 $g_handle_sponsored_bugs_threshold = DEVELOPER
;
1562 * Access level required to be able to assign a sponsored issue to a user with
1563 * access level greater or equal to 'handle_sponsored_bugs_threshold'.
1564 * @global int $g_assign_sponsored_bugs_threshold
1566 $g_assign_sponsored_bugs_threshold = MANAGER
;
1569 * Minimum sponsorship amount. If the user enters a value less than this, an
1570 * error will be prompted.
1571 * @global int $g_minimum_sponsorship_amount
1573 $g_minimum_sponsorship_amount = 5;
1575 /*********************************
1576 * MantisBT File Upload Settings *
1577 *********************************/
1580 * --- file upload settings --------
1581 * This is the master setting to disable *all* file uploading functionality
1583 * If you want to allow file uploads, you must also make sure that they are
1584 * enabled in php. You may need to add 'file_uploads = TRUE' to your php.ini
1586 * See also: $g_upload_project_file_threshold, $g_upload_bug_file_threshold,
1587 * $g_allow_reporter_upload
1588 * @global int $g_allow_file_upload
1590 $g_allow_file_upload = ON
;
1593 * Upload destination: specify actual location in project settings
1594 * DISK, DATABASE, or FTP.
1595 * @global int $g_file_upload_method
1597 $g_file_upload_method = DATABASE
;
1600 * When using FTP or DISK for storing uploaded files, this setting control
1601 * the access permissions they will have on the web server: with the default
1602 * value (0400) files will be read-only, and accessible only by the user
1603 * running the apache process (probably "apache" in Linux and "Administrator"
1605 * For more details on unix style permissions:
1606 * http://www.perlfect.com/articles/chmod.shtml
1607 * @global int $g_attachments_file_permissions
1609 $g_attachments_file_permissions = 0400;
1612 * FTP settings, used if $g_file_upload_method = FTP
1613 * @global string $g_file_upload_ftp_server
1615 $g_file_upload_ftp_server = 'ftp.myserver.com';
1619 * @global string $g_file_upload_ftp_user
1621 $g_file_upload_ftp_user = 'readwriteuser';
1625 * @global string $g_file_upload_ftp_pass
1627 $g_file_upload_ftp_pass = 'readwritepass';
1630 * Maximum file size that can be uploaded
1631 * Also check your PHP settings (default is usually 2MBs)
1632 * @global int $g_max_file_size
1634 $g_max_file_size = 5000000;
1637 * Files that are allowed or not allowed. Separate items by commas.
1638 * eg. 'php,html,java,exe,pl'
1639 * if $g_allowed_files is filled in NO other file types will be allowed.
1640 * $g_disallowed_files takes precedence over $g_allowed_files
1641 * @global string $g_allowed_files
1643 $g_allowed_files = '';
1647 * @global string $g_disallowed_files
1649 $g_disallowed_files = '';
1652 * prefix to be used for the file system names of files uploaded to projects.
1653 * Eg: doc-001-myprojdoc.zip
1654 * @global string $g_document_files_prefix
1656 $g_document_files_prefix = 'doc';
1659 * absolute path to the default upload folder. Requires trailing / or \
1660 * @global string $g_absolute_path_default_upload_folder
1662 $g_absolute_path_default_upload_folder = '';
1665 * Enable support for sending files to users via a more efficient X-Sendfile
1666 * method. HTTP server software supporting this technique includes Lighttpd,
1667 * Cherokee, Apache with mod_xsendfile and nginx. You may need to set the
1668 * proceeding file_download_xsendfile_header_name option to suit the server you
1670 * @global int $g_file_download_method
1672 $g_file_download_xsendfile_enabled = OFF
;
1675 * The name of the X-Sendfile header to use. Each server tends to implement
1676 * this functionality in a slightly different way and thus the naming
1677 * conventions for the header differ between each server. Lighttpd from v1.5,
1678 * Apache with mod_xsendfile and Cherokee web servers use X-Sendfile. nginx
1679 * uses X-Accel-Redirect and Lighttpd v1.4 uses X-LIGHTTPD-send-file.
1680 * @global string $g_file_download_xsendfile_header_name
1682 $g_file_download_xsendfile_header_name = 'X-Sendfile';
1684 /**************************
1685 * MantisBT HTML Settings *
1686 **************************/
1690 * Set this flag to automatically convert www URLs and
1691 * email adresses into clickable links
1692 * @global int $g_html_make_links
1694 $g_html_make_links = ON
;
1697 * These are the valid html tags for multi-line fields (e.g. description)
1698 * do NOT include href or img tags here
1699 * do NOT include tags that have parameters (eg. <font face="arial">)
1700 * @global string $g_html_valid_tags
1702 $g_html_valid_tags = 'p, li, ul, ol, br, pre, i, b, u, em';
1705 * These are the valid html tags for single line fields (e.g. issue summary).
1706 * do NOT include href or img tags here
1707 * do NOT include tags that have parameters (eg. <font face="arial">)
1708 * @global string $g_html_valid_tags_single_line
1710 $g_html_valid_tags_single_line = 'i, b, u, em';
1713 * maximum length of the description in a dropdown menu (for search)
1714 * set to 0 to disable truncations
1715 * @global int $g_max_dropdown_length
1717 $g_max_dropdown_length = 40;
1720 * This flag conntrolls whether pre-formatted text (delimited by <pre> tags
1721 * is wrapped to a maximum linelength (defaults to 100 chars in strings_api)
1722 * If turned off, the display may be wide when viewing the text
1723 * @global int $g_wrap_in_preformatted_text
1725 $g_wrap_in_preformatted_text = ON
;
1727 /************************
1728 * MantisBT HR Settings *
1729 ************************/
1732 * Horizontal Rule Size
1733 * @global int $g_hr_size
1738 * Horizontal Rule Width
1739 * @global int $g_hr_width
1743 /**************************
1744 * MantisBT LDAP Settings *
1745 **************************/
1749 * @global string $g_ldap_server
1751 $g_ldap_server = 'ldaps://ldap.example.com.au/';
1755 * @global string $g_ldap_root_dn
1757 $g_ldap_root_dn = 'dc=example,dc=com,dc=au';
1760 * e.g. '(organizationname=*Traffic)'
1761 * @global string $g_ldap_organization
1763 $g_ldap_organization = '';
1766 * Use 'sAMAccountName' for Active Directory
1767 * @global string $g_ldap_uid_field
1769 $g_ldap_uid_field = 'uid';
1772 * The LDAP field for real name (i.e. common name).
1773 * @global string $g_ldap_uid_field
1775 $g_ldap_realname_field = 'cn';
1778 * The distinguished of the user account to use for binding to the LDAP server.
1779 * For example, 'CN=ldap,OU=Administrators,DC=example,DC=com'.
1781 * @global string $g_ldap_bind_dn
1783 $g_ldap_bind_dn = '';
1786 * The password for the service account to be used for connecting to the LDAP server.
1788 * @global string $g_ldap_bind_passwd
1790 $g_ldap_bind_passwd = '';
1793 * Should we send to the LDAP email address or what MySql tells us
1794 * @global int $g_use_ldap_email
1796 $g_use_ldap_email = OFF
;
1799 * Whether or not to pull the real name from LDAP.
1800 * ON from LDAP, OFF from database.
1801 * @global int $g_use_ldap_realname
1803 $g_use_ldap_realname = OFF
;
1806 * The LDAP Protocol Version, if 0, then the protocol version is not set. For
1807 * Active Directory use version 3.
1809 * @global int $g_ldap_protocol_version
1811 $g_ldap_protocol_version = 0;
1814 * Determines whether the LDAP library automatically follows referrals returned
1815 * by LDAP servers or not. This maps to LDAP_OPT_REFERRALS ldap library option.
1816 * For Active Directory, this should be set to OFF.
1818 * @global int $g_ldap_follow_referrals
1820 $g_ldap_follow_referrals = ON
;
1823 * For development purposes, this is a configuration option that allows
1824 * replacing the LDAP communication with a comma separated text file. The text
1825 * file has a line per user. Each line includes: user name, user real name,
1826 * email, password. For production systems this option should be set to ''.
1828 $g_ldap_simulation_file_path = '';
1830 /*******************
1832 *******************/
1835 * Status to assign to the bug when submitted.
1836 * @global int $g_bug_submit_status
1838 $g_bug_submit_status = NEW_
;
1841 * Status to assign to the bug when assigned.
1842 * @global int $g_bug_assigned_status
1844 $g_bug_assigned_status = ASSIGNED
;
1847 * Status to assign to the bug when reopened.
1848 * @global int $g_bug_reopen_status
1850 $g_bug_reopen_status = FEEDBACK
;
1853 * Status to assign to the bug when feedback is required from the issue
1854 * reporter. Once the reporter adds a note the status moves back from feedback
1855 * to $g_bug_assigned_status or $g_bug_submit_status.
1856 * @global int $g_bug_feedback_status
1858 $g_bug_feedback_status = FEEDBACK
;
1861 * Resolution to assign to the bug when reopened.
1862 * @global int $g_bug_reopen_resolution
1864 $g_bug_reopen_resolution = REOPENED
;
1867 * Bug becomes readonly if its status is >= this status. The bug becomes
1868 * read/write again if re-opened and its status becomes less than this
1870 * @global int $g_bug_readonly_status_threshold
1872 $g_bug_readonly_status_threshold = RESOLVED
;
1875 * Bug is resolved, ready to be closed or reopened. In some custom
1876 * installations a bug may be considered as resolved when it is moved to a
1877 * custom (FIXED or TESTED) status.
1878 * @global int $g_bug_resolved_status_threshold
1880 $g_bug_resolved_status_threshold = RESOLVED
;
1883 * Threshold resolution which denotes that a bug has been resolved and
1884 * successfully fixed by developers. Resolutions above this threshold
1885 * and below $g_bug_resolution_not_fixed_threshold are considered to be
1886 * resolved successfully.
1887 * @global int $g_bug_resolution_fixed_threshold
1889 $g_bug_resolution_fixed_threshold = FIXED
;
1892 * Threshold resolution which denotes that a bug has been resolved without
1893 * being successfully fixed by developers. Resolutions above this
1894 * threshold are considered to be resolved in an unsuccessful way.
1895 * @global int $g_bug_resolution_not_fixed_threshold
1897 $g_bug_resolution_not_fixed_threshold = UNABLE_TO_DUPLICATE
;
1900 * Bug is closed. In some custom installations a bug may be considered as
1901 * closed when it is moved to a custom (COMPLETED or IMPLEMENTED) status.
1902 * @global int $g_bug_closed_status_threshold
1904 $g_bug_closed_status_threshold = CLOSED
;
1907 * Automatically set status to ASSIGNED whenever a bug is assigned to a person.
1908 * This is useful for installations where assigned status is to be used when
1909 * the bug is in progress, rather than just put in a person's queue.
1910 * @global int $g_auto_set_status_to_assigned
1912 $g_auto_set_status_to_assigned = ON
;
1915 * 'status_enum_workflow' defines the workflow, and reflects a simple
1916 * 2-dimensional matrix. For each existing status, you define which
1917 * statuses you can go to from that status, e.g. from NEW_ you might list statuses
1918 * '10:new,20:feedback,30:acknowledged' but not higher ones.
1919 * The following example can be transferred to config_inc.php
1920 * $g_status_enum_workflow[NEW_]='20:feedback,30:acknowledged,40:confirmed,50:assigned,80:resolved';
1921 * $g_status_enum_workflow[FEEDBACK] ='10:new,30:acknowledged,40:confirmed,50:assigned,80:resolved';
1922 * $g_status_enum_workflow[ACKNOWLEDGED] ='20:feedback,40:confirmed,50:assigned,80:resolved';
1923 * $g_status_enum_workflow[CONFIRMED] ='20:feedback,50:assigned,80:resolved';
1924 * $g_status_enum_workflow[ASSIGNED] ='20:feedback,80:resolved,90:closed';
1925 * $g_status_enum_workflow[RESOLVED] ='50:assigned,90:closed';
1926 * $g_status_enum_workflow[CLOSED] ='50:assigned';
1927 * @global array $g_status_enum_workflow
1929 $g_status_enum_workflow = array();
1931 /****************************
1932 * Bug Attachments Settings *
1933 ****************************/
1936 * Specify the filename of the magic database file. This is used by
1937 * PHP 5.3.0 (or earlier versions with the fileinfo PECL extension) to
1938 * guess what the MIME type of a file is. Usually it is safe to leave this
1939 * setting as the default (blank) as PHP is usually able to find this file
1941 * @global string $g_fileinfo_magic_db_file
1943 $g_fileinfo_magic_db_file = '';
1946 * Specifies the maximum size (in bytes) below which an attachment is
1947 * previewed in the bug view pages.
1948 * To disable the previewing of attachments, set max size to 0.
1949 * @global int $g_preview_attachments_inline_max_size
1951 $g_preview_attachments_inline_max_size = 256 * 1024;
1954 * Extensions for text files that can be expanded inline.
1955 * @global array $g_preview_text_extensions
1957 $g_preview_text_extensions = array(
1958 '', 'txt', 'diff', 'patch'
1962 * Extensions for images that can be expanded inline.
1963 * @global array $g_preview_image_extensions
1965 $g_preview_image_extensions = array(
1966 'bmp', 'png', 'gif', 'jpg', 'jpeg'
1970 * Specifies the maximum width for the auto-preview feature. If no maximum
1971 * width should be imposed then it should be set to 0.
1972 * @global int $g_preview_max_width
1974 $g_preview_max_width = 0;
1977 * Specifies the maximum height for the auto-preview feature. If no maximum
1978 * height should be imposed then it should be set to 0.
1979 * @global int $g_preview_max_height
1981 $g_preview_max_height = 250;
1984 * Show an attachment indicator on bug list. Show a clickable attachment
1985 * indicator on the bug list page if the bug has one or more files attached.
1986 * Note: This option is disabled by default since it adds 1 database query per
1987 * bug listed and thus might slow down the page display.
1989 * @global int $g_show_attachment_indicator
1991 $g_show_attachment_indicator = OFF
;
1994 * access level needed to view bugs attachments. View means to see the file
1995 * names, sizes, and timestamps of the attachments.
1996 * @global int $g_view_attachments_threshold
1998 $g_view_attachments_threshold = VIEWER
;
2001 * list of filetypes to view inline. This is a string of extentions separated
2002 * by commas. This is used when downloading an attachment. Rather than
2003 * downloading, the attachment is viewed in the browser.
2004 * @global string $g_inline_file_exts
2006 $g_inline_file_exts = 'gif,png,jpg,jpeg,bmp';
2009 * access level needed to download bug attachments
2010 * @global int $g_download_attachments_threshold
2012 $g_download_attachments_threshold = VIEWER
;
2015 * access level needed to delete bug attachments
2016 * @global int $g_delete_attachments_threshold
2018 $g_delete_attachments_threshold = DEVELOPER
;
2021 * allow users to view attachments uploaded by themselves even if their access
2022 * level is below view_attachments_threshold.
2023 * @global int $g_allow_view_own_attachments
2025 $g_allow_view_own_attachments = ON
;
2028 * allow users to download attachments uploaded by themselves even if their
2029 * access level is below download_attachments_threshold.
2030 * @global int $g_allow_download_own_attachments
2032 $g_allow_download_own_attachments = ON
;
2035 * allow users to delete attachments uploaded by themselves even if their access
2036 * level is below delete_attachments_threshold.
2037 * @global int $g_allow_delete_own_attachments
2039 $g_allow_delete_own_attachments = OFF
;
2041 /**********************
2043 **********************/
2046 * Enable or disable usage of the ETA field.
2047 * @global int $g_enable_eta
2049 $g_enable_eta = OFF
;
2052 * Enable or disable usage of the Projection field.
2053 * @global int $g_enable_projection
2055 $g_enable_projection = OFF
;
2058 * Enable or disable usage of the Product Build field.
2059 * @global int $g_enable_product_build
2061 $g_enable_product_build = OFF
;
2064 * An array of the fields to show on the bug report page.
2066 * The following fields can not be included:
2067 * BUG_FIELD_ID, BUG_FIELD_PROJECT, BUG_FIELD_DATE_SUBMITTED,
2068 * BUG_FIELD_LAST_UPDATED, BUG_FIELD_STATUS, BUG_FIELD_RESOLUTION,
2069 * BUG_FIELD_TAGS, BUG_FIELD_FIXED_IN_VERSION, BUG_FIELD_PROJECTION,
2070 * BUG_FIELD_ETA, BUG_FIELD_REPORTER.
2072 * The following fields must be included:
2073 * BUG_FIELD_CATEGORY, BUG_FIELD_SUMMARY, BUG_FIELD_DESCRIPTION.
2075 * To overload this setting per project, then the settings must be included in
2076 * the database through the generic configuration form. Note that the array in
2077 * the database should consistent of the values of the constants. For example,
2078 * replace BUG_FIELD_CATEGORY with 'category_id'. See constant_inc.php for the
2079 * values of the constants.
2081 * @global array $g_bug_report_page_fields
2083 $g_bug_report_page_fields = array(
2085 BUG_FIELD_VIEW_STATE
,
2089 BUG_FIELD_REPRODUCIBILITY
,
2092 BUG_FIELD_OS_VERSION
,
2093 BUG_FIELD_PRODUCT_VERSION
,
2094 BUG_FIELD_PRODUCT_BUILD
,
2095 BUG_FIELD_TARGET_VERSION
,
2097 BUG_FIELD_DESCRIPTION
,
2098 BUG_FIELD_ADDITIONAL_INFO
,
2099 BUG_FIELD_STEPS_TO_REPRODUCE
,
2100 BUG_FIELD_ATTACHMENTS
,
2105 * An array of the fields to show on the bug view page.
2107 * To overload this setting per project, then the settings must be included in
2108 * the database through the generic configuration form. Note that the array in
2109 * the database should consistent of the values of the constants. For example,
2110 * replace BUG_FIELD_CATEGORY with 'category_id'. See constant_inc.php for the
2111 * values of the constants.
2113 * @global array $g_bug_view_page_fields
2115 $g_bug_view_page_fields = array (
2119 BUG_FIELD_VIEW_STATE
,
2120 BUG_FIELD_DATE_SUBMITTED
,
2121 BUG_FIELD_LAST_UPDATED
,
2126 BUG_FIELD_REPRODUCIBILITY
,
2128 BUG_FIELD_RESOLUTION
,
2129 BUG_FIELD_PROJECTION
,
2133 BUG_FIELD_OS_VERSION
,
2134 BUG_FIELD_PRODUCT_VERSION
,
2135 BUG_FIELD_PRODUCT_BUILD
,
2136 BUG_FIELD_TARGET_VERSION
,
2137 BUG_FIELD_FIXED_IN_VERSION
,
2139 BUG_FIELD_DESCRIPTION
,
2140 BUG_FIELD_ADDITIONAL_INFO
,
2141 BUG_FIELD_STEPS_TO_REPRODUCE
,
2143 BUG_FIELD_ATTACHMENTS
,
2148 * An array of the fields to show on the bug print page.
2149 * @global array $g_bug_print_page_fields
2151 $g_bug_print_page_fields = array (
2155 BUG_FIELD_VIEW_STATE
,
2156 BUG_FIELD_DATE_SUBMITTED
,
2157 BUG_FIELD_LAST_UPDATED
,
2162 BUG_FIELD_REPRODUCIBILITY
,
2164 BUG_FIELD_RESOLUTION
,
2165 BUG_FIELD_PROJECTION
,
2169 BUG_FIELD_OS_VERSION
,
2170 BUG_FIELD_PRODUCT_VERSION
,
2171 BUG_FIELD_PRODUCT_BUILD
,
2172 BUG_FIELD_TARGET_VERSION
,
2173 BUG_FIELD_FIXED_IN_VERSION
,
2175 BUG_FIELD_DESCRIPTION
,
2176 BUG_FIELD_ADDITIONAL_INFO
,
2177 BUG_FIELD_STEPS_TO_REPRODUCE
,
2179 BUG_FIELD_ATTACHMENTS
,
2184 * An array of the fields to show on the bug update page.
2186 * To overload this setting per project, then the settings must be included in
2187 * the database through the generic configuration form. Note that the array in
2188 * the database should consistent of the values of the constants. For example,
2189 * replace BUG_FIELD_CATEGORY with 'category_id'. See constant_inc.php for the
2190 * values of the constants.
2192 * @global array $g_bug_update_page_fields
2194 $g_bug_update_page_fields = array (
2198 BUG_FIELD_VIEW_STATE
,
2199 BUG_FIELD_DATE_SUBMITTED
,
2200 BUG_FIELD_LAST_UPDATED
,
2205 BUG_FIELD_REPRODUCIBILITY
,
2207 BUG_FIELD_RESOLUTION
,
2208 BUG_FIELD_PROJECTION
,
2212 BUG_FIELD_OS_VERSION
,
2213 BUG_FIELD_PRODUCT_VERSION
,
2214 BUG_FIELD_PRODUCT_BUILD
,
2215 BUG_FIELD_TARGET_VERSION
,
2216 BUG_FIELD_FIXED_IN_VERSION
,
2218 BUG_FIELD_DESCRIPTION
,
2219 BUG_FIELD_ADDITIONAL_INFO
,
2220 BUG_FIELD_STEPS_TO_REPRODUCE
,
2221 BUG_FIELD_ATTACHMENTS
,
2226 * An array of the fields to show on the bug change status page.
2228 * To overload this setting per project, then the settings must be included in
2229 * the database through the generic configuration form. Note that the array in
2230 * the database should consistent of the values of the constants. For example,
2231 * replace BUG_FIELD_CATEGORY with 'category_id'. See constant_inc.php for the
2232 * values of the constants.
2234 * @global array $g_bug_change_status_page_fields
2236 $g_bug_change_status_page_fields = array (
2240 BUG_FIELD_VIEW_STATE
,
2241 BUG_FIELD_DATE_SUBMITTED
,
2242 BUG_FIELD_LAST_UPDATED
,
2247 BUG_FIELD_REPRODUCIBILITY
,
2249 BUG_FIELD_RESOLUTION
,
2250 BUG_FIELD_PROJECTION
,
2254 BUG_FIELD_OS_VERSION
,
2255 BUG_FIELD_PRODUCT_VERSION
,
2256 BUG_FIELD_PRODUCT_BUILD
,
2257 BUG_FIELD_TARGET_VERSION
,
2258 BUG_FIELD_FIXED_IN_VERSION
,
2260 BUG_FIELD_DESCRIPTION
,
2261 BUG_FIELD_ADDITIONAL_INFO
,
2262 BUG_FIELD_STEPS_TO_REPRODUCE
,
2264 BUG_FIELD_ATTACHMENTS
,
2268 /**************************
2269 * MantisBT Misc Settings *
2270 **************************/
2273 * access level needed to report a bug
2274 * @global int $g_report_bug_threshold
2276 $g_report_bug_threshold = REPORTER
;
2279 * access level needed to update bugs (i.e., the update_bug_page)
2280 * This controls whether the user sees the "Update Bug" button in bug_view*_page
2281 * and the pencil icon in view_all_bug_page
2282 * @global int $g_update_bug_threshold
2284 $g_update_bug_threshold = UPDATER
;
2287 * Access level needed to monitor bugs.
2288 * Look in the constant_inc.php file if you want to set a different value.
2289 * @global int $g_monitor_bug_threshold
2291 $g_monitor_bug_threshold = REPORTER
;
2294 * Access level needed to add other users to the list of users monitoring
2296 * Look in the constant_inc.php file if you want to set a different value.
2297 * @global int $g_monitor_add_others_bug_threshold
2299 $g_monitor_add_others_bug_threshold = DEVELOPER
;
2302 * Access level needed to delete other users from the list of users
2304 * Look in the constant_inc.php file if you want to set a different value.
2305 * @global int $g_monitor_add_others_bug_threshold
2307 $g_monitor_delete_others_bug_threshold = DEVELOPER
;
2310 * access level needed to view private bugs
2311 * Look in the constant_inc.php file if you want to set a different value
2312 * @global int $g_private_bug_threshold
2314 $g_private_bug_threshold = DEVELOPER
;
2317 * access level needed to be able to be listed in the assign to field.
2318 * @global int $g_handle_bug_threshold
2320 $g_handle_bug_threshold = DEVELOPER
;
2323 * access level needed to show the Assign To: button bug_view*_page or
2324 * the Assigned list in bug_update*_page.
2325 * This allows control over who can route bugs
2326 * This defaults to $g_handle_bug_threshold
2327 * @global int $g_update_bug_assign_threshold
2329 $g_update_bug_assign_threshold = '%handle_bug_threshold%';
2332 * access level needed to view private bugnotes
2333 * Look in the constant_inc.php file if you want to set a different value
2334 * @global int $g_private_bugnote_threshold
2336 $g_private_bugnote_threshold = DEVELOPER
;
2339 * access level needed to view handler in bug reports and notification email
2340 * @todo yarick123: now it is implemented for notification email only
2341 * @global int $g_view_handler_threshold
2343 $g_view_handler_threshold = VIEWER
;
2346 * access level needed to view history in bug reports and notification email
2347 * @todo yarick123: now it is implemented for notification email only
2348 * @global int $g_view_history_threshold
2350 $g_view_history_threshold = VIEWER
;
2353 * access level needed to send a reminder from the bug view pages
2354 * set to NOBODY to disable the feature
2355 * @global int $g_bug_reminder_threshold
2357 $g_bug_reminder_threshold = DEVELOPER
;
2360 * Access lever required to drop bug history revisions
2361 * @global int $g_bug_revision_drop_threshold
2363 $g_bug_revision_drop_threshold = MANAGER
;
2366 * access level needed to upload files to the project documentation section
2367 * You can set this to NOBODY to prevent uploads to projects
2368 * See also: $g_upload_bug_file_threshold, $g_allow_file_upload
2369 * @global int $g_upload_project_file_threshold
2371 $g_upload_project_file_threshold = MANAGER
;
2374 * access level needed to upload files to attach to a bug
2375 * You can set this to NOBODY to prevent uploads to bugs but note that
2376 * the reporter of the bug will still be able to upload unless you set
2377 * $g_allow_reporter_upload or $g_allow_file_upload to OFF
2378 * See also: $g_upload_project_file_threshold, $g_allow_file_upload,
2379 * $g_allow_reporter_upload
2380 * @global int $g_upload_bug_file_threshold
2382 $g_upload_bug_file_threshold = REPORTER
;
2385 * Add bugnote threshold
2386 * @global int $g_add_bugnote_threshold
2388 $g_add_bugnote_threshold = REPORTER
;
2391 * Threshold at which a user can edit the bugnotes of other users
2392 * @global int $g_update_bugnote_threshold
2394 $g_update_bugnote_threshold = DEVELOPER
;
2397 * Threshold needed to view project documentation
2398 * @global int $g_view_proj_doc_threshold
2400 $g_view_proj_doc_threshold = ANYBODY
;
2404 * @global int $g_manage_site_threshold
2406 $g_manage_site_threshold = MANAGER
;
2409 * Threshold at which a user is considered to be a site administrator.
2410 * These users have "superuser" access to all aspects of MantisBT including
2411 * the admin/ directory. WARNING: DO NOT CHANGE THIS VALUE UNLESS YOU
2412 * ABSOLUTELY KNOW WHAT YOU'RE DOING! Users at this access level have the
2413 * ability to damage your MantisBT installation and data within the database.
2414 * It is strongly advised you leave this option alone.
2415 * @global int $g_admin_site_threshold
2417 $g_admin_site_threshold = ADMINISTRATOR
;
2420 * Threshold needed to manage a project: edit project
2421 * details (not to add/delete projects) ...etc.
2422 * @global int $g_manage_project_threshold
2424 $g_manage_project_threshold = MANAGER
;
2427 * Threshold needed to add/delete/modify news
2428 * @global int $g_manage_news_threshold
2430 $g_manage_news_threshold = MANAGER
;
2433 * Threshold required to delete a project
2434 * @global int $g_delete_project_threshold
2436 $g_delete_project_threshold = ADMINISTRATOR
;
2439 * Threshold needed to create a new project
2440 * @global int $g_create_project_threshold
2442 $g_create_project_threshold = ADMINISTRATOR
;
2445 * Threshold needed to be automatically included in private projects
2446 * @global int $g_private_project_threshold
2448 $g_private_project_threshold = ADMINISTRATOR
;
2451 * Threshold needed to manage user access to a project
2452 * @global int $g_project_user_threshold
2454 $g_project_user_threshold = MANAGER
;
2457 * Threshold needed to manage user accounts
2458 * @global int $g_manage_user_threshold
2460 $g_manage_user_threshold = ADMINISTRATOR
;
2463 * Delete bug threshold
2464 * @global int $g_delete_bug_threshold
2466 $g_delete_bug_threshold = DEVELOPER
;
2469 * Threshold at which a user can delete the bugnotes of other users.
2470 * The default value is equal to the configuration setting
2471 * $g_delete_bug_threshold.
2472 * @global string $g_delete_bugnote_threshold
2474 $g_delete_bugnote_threshold = '%delete_bug_threshold%';
2477 * Move bug threshold
2478 * @global int $g_move_bug_threshold
2480 $g_move_bug_threshold = DEVELOPER
;
2483 * Threshold needed to set the view status while reporting a bug or a bug note.
2484 * @global int $g_set_view_status_threshold
2486 $g_set_view_status_threshold = REPORTER
;
2489 * Threshold needed to update the view status while updating a bug or a bug note.
2490 * This threshold should be greater or equal to $g_set_view_status_threshold.
2491 * @global int $g_change_view_status_threshold
2493 $g_change_view_status_threshold = UPDATER
;
2496 * Threshold needed to show the list of users montoring a bug on the bug view pages.
2497 * @global int $g_show_monitor_list_threshold
2499 $g_show_monitor_list_threshold = DEVELOPER
;
2502 * Threshold needed to be able to use stored queries
2503 * @global int $g_stored_query_use_threshold
2505 $g_stored_query_use_threshold = REPORTER
;
2508 * Threshold needed to be able to create stored queries
2509 * @global int $g_stored_query_create_threshold
2511 $g_stored_query_create_threshold = DEVELOPER
;
2514 * Threshold needed to be able to create shared stored queries
2515 * @global int $g_stored_query_create_shared_threshold
2517 $g_stored_query_create_shared_threshold = MANAGER
;
2520 * Threshold needed to update readonly bugs. Readonly bugs are identified via
2521 * $g_bug_readonly_status_threshold.
2522 * @global int $g_update_readonly_bug_threshold
2524 $g_update_readonly_bug_threshold = MANAGER
;
2527 * threshold for viewing changelog
2528 * @global int $g_view_changelog_threshold
2530 $g_view_changelog_threshold = VIEWER
;
2533 * threshold for viewing roadmap
2534 * @global int $g_roadmap_view_threshold
2536 $g_roadmap_view_threshold = VIEWER
;
2539 * threshold for updating roadmap, target_version, etc
2540 * @global int $g_roadmap_update_threshold
2542 $g_roadmap_update_threshold = DEVELOPER
;
2545 * status change thresholds
2546 * @global int $g_update_bug_status_threshold
2548 $g_update_bug_status_threshold = DEVELOPER
;
2551 * access level needed to re-open bugs
2552 * @global int $g_reopen_bug_threshold
2554 $g_reopen_bug_threshold = DEVELOPER
;
2557 * access level needed to assign bugs to unreleased product versions
2558 * @global int $g_report_issues_for_unreleased_versions_threshold
2560 $g_report_issues_for_unreleased_versions_threshold = DEVELOPER
;
2563 * access level needed to set a bug sticky
2564 * @global int $g_set_bug_sticky_threshold
2566 $g_set_bug_sticky_threshold = MANAGER
;
2569 * The minimum access level for someone to be a member of the development team
2570 * and appear on the project information page.
2571 * @global int $g_development_team_threshold
2573 $g_development_team_threshold = DEVELOPER
;
2576 * this array sets the access thresholds needed to enter each status listed.
2577 * if a status is not listed, it falls back to $g_update_bug_status_threshold
2579 * $g_set_status_threshold = array(
2580 * ACKNOWLEDGED => MANAGER,
2581 * CONFIRMED => DEVELOPER,
2584 * @global array $g_set_status_threshold
2586 $g_set_status_threshold = array();
2589 * Threshold at which a user can edit his/her own bugnotes.
2590 * The default value is equal to the configuration setting
2591 * $g_update_bugnote_threshold.
2592 * @global int $g_bugnote_user_edit_threshold
2594 $g_bugnote_user_edit_threshold = '%update_bugnote_threshold%';
2597 * Threshold at which a user can delete his/her own bugnotes.
2598 * The default value is equal to the configuration setting
2599 * $g_delete_bugnote_threshold.
2600 * @global int $g_bugnote_user_delete_threshold
2602 $g_bugnote_user_delete_threshold = '%delete_bugnote_threshold%';
2605 * Threshold at which a user can change the view state of his/her own bugnotes.
2606 * The default value is equal to the configuration setting
2607 * $g_change_view_status_threshold.
2608 * @global int $g_bugnote_user_change_view_state_threshold
2610 $g_bugnote_user_change_view_state_threshold = '%change_view_status_threshold%';
2613 * Allow a bug to have no category
2614 * @global int $g_allow_no_category
2616 $g_allow_no_category = OFF
;
2620 * CRYPT or PLAIN or MD5 or LDAP or BASIC_AUTH. You can simply change this at
2621 * will. MantisBT will try to figure out how the passwords were encrypted.
2622 * @global int $g_login_method
2624 $g_login_method = MD5
;
2627 * limit reporters. Set to ON if you wish to limit reporters to only viewing
2628 * bugs that they report.
2629 * @global int $g_limit_reporters
2631 $g_limit_reporters = OFF
;
2635 * Allow developers and above to close bugs immediately when resolving bugs
2636 * @global int $g_allow_close_immediately
2638 $g_allow_close_immediately = OFF
;
2641 * reporter can close. Allow reporters to close the bugs they reported, after
2642 * they are marked resolved.
2643 * @global int $g_allow_reporter_close
2645 $g_allow_reporter_close = OFF
;
2648 * reporter can reopen. Allow reporters to reopen the bugs they reported, after
2649 * they are marked resolved.
2650 * @global int $g_allow_reporter_reopen
2652 $g_allow_reporter_reopen = ON
;
2655 * reporter can upload
2656 * Allow reporters to upload attachments to bugs they reported.
2657 * @global int $g_allow_reporter_upload
2659 $g_allow_reporter_upload = ON
;
2663 * Allow users to delete their own accounts
2664 * @global int $g_allow_account_delete
2666 $g_allow_account_delete = OFF
;
2669 * Enable anonymous access to MantisBT. You must also specify
2670 * $g_anonymous_account as the account which anonymous users will browse
2671 * MantisBT with. The default setting is OFF.
2672 * @global int $g_allow_anonymous_login
2674 $g_allow_anonymous_login = OFF
;
2677 * Define the account which anonymous users will assume when using MantisBT.
2678 * You only need to define this setting when $g_allow_anonymous_login is set to
2679 * ON. This account will always be treated as a protected account and thus
2680 * anonymous users will not be able to update the preferences or settings of
2681 * this account. It is suggested that the access level of this account have
2682 * read only access to your MantisBT installation (VIEWER). Please read the
2683 * documentation on this topic before setting up anonymous access to your
2684 * MantisBT installation.
2685 * @global string $g_anonymous_account
2687 $g_anonymous_account = '';
2691 * insert the URL to your CVSweb or ViewCVS
2692 * eg: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/mantisbt/mantisbt/
2693 * @global string $g_cvs_web
2698 * For open source projects it is expected that the notes be public, however,
2699 * for non-open source it will probably be VS_PRIVATE.
2700 * @global int $g_source_control_notes_view_status
2702 $g_source_control_notes_view_status = VS_PRIVATE
;
2705 * Account to be used by the source control script. The account must be enabled
2706 * and must have the appropriate access level to add notes to all issues even
2707 * private ones (DEVELOPER access recommended).
2708 * @global string $g_source_control_account
2710 $g_source_control_account = '';
2713 * If set to a status, then after a checkin with a log message that matches the
2714 * regular expression in $g_source_control_fixed_regexp, the issue status is
2715 * set to the specified status. If set to OFF, the issue status is not changed.
2716 * @global int $g_source_control_set_status_to
2718 $g_source_control_set_status_to = OFF
;
2721 * Whenever an issue status is set to $g_source_control_set_status_to, the
2722 * issue resolution is set to the value specified for this configuration.
2723 * @global int $g_source_control_set_resolution_to
2725 $g_source_control_set_resolution_to = FIXED
;
2728 * Regular expression used to detect issue ids within checkin comments.
2729 * see preg_match_all() documentation at
2730 * http://www.php.net/manual/en/function.preg-match-all.php
2731 * @global string $g_source_control_regexp
2733 $g_source_control_regexp = "/\bissue [#]{0,1}(\d+)\b/i";
2736 * Regular expression used to detect the fact that an issue is fixed and
2737 * extracts its issue id. If there is a match to this regular expression, then
2738 * the issue will be marked as resolved and the resolution will be set to
2740 * @global string $g_source_control_fixed_regexp
2742 $g_source_control_fixed_regexp = "%source_control_regexp%";
2746 * if a number follows this tag it will create a link to a bug.
2747 * eg. for # a link would be #45
2748 * eg. for bug: a link would be bug:98
2749 * @global string $g_bug_link_tag
2751 $g_bug_link_tag = '#';
2755 * if a number follows this tag it will create a link to a bugnote.
2756 * eg. for ~ a link would be ~45
2757 * eg. for bugnote: a link would be bugnote:98
2758 * @global string $g_bugnote_link_tag
2760 $g_bugnote_link_tag = '~';
2764 * this is the prefix to use when creating links to bug views from bug counts
2765 * (eg. on the main page and the summary page).
2766 * Default is a temporary filter
2767 * only change the filter this time - 'view_all_set.php?type=1&temporary=y'
2768 * permanently change the filter - 'view_all_set.php?type=1';
2769 * @global string $g_bug_count_hyperlink_prefix
2771 $g_bug_count_hyperlink_prefix = 'view_all_set.php?type=1&temporary=y';
2774 * The regular expression to use when validating new user login names
2775 * The default regular expression allows a-z, A-Z, 0-9, +, -, dot, space and
2776 * underscore. If you change this, you may want to update the
2777 * ERROR_USER_NAME_INVALID string in the language files to explain
2778 * the rules you are using on your site
2779 * See http://en.wikipedia.org/wiki/Regular_Expression for more details about
2780 * regular expressions. For testing regular expressions, use
2781 * http://rubular.com/.
2782 * @global string $g_user_login_valid_regex
2784 $g_user_login_valid_regex = '/^([a-z\d\-.+_ ]+(@[a-z\d\-.]+\.[a-z]{2,4})?)$/i';
2787 * Default user name prefix used to filter the list of users in
2788 * manage_user_page.php. Change this to 'A' (or any other
2789 * letter) if you have a lot of users in the system and loading
2790 * the manage users page takes a long time.
2791 * @global string $g_default_manage_user_prefix
2793 $g_default_manage_user_prefix = 'ALL';
2796 * Default tag prefix used to filter the list of tags in
2797 * manage_tags_page.php. Change this to 'A' (or any other
2798 * letter) if you have a lot of tags in the system and loading
2799 * the manage tags page takes a long time.
2800 * @global string $g_default_manage_tag_prefix
2802 $g_default_manage_tag_prefix = 'ALL';
2806 * Set the csv separator
2807 * @global string $g_csv_separator
2809 $g_csv_separator = ',';
2812 * The threshold required for users to be able to manage configuration of a project.
2813 * This includes workflow, email notifications, columns to view, and others.
2815 $g_manage_configuration_threshold = MANAGER
;
2818 * threshold for users to view the system configurations
2819 * @global int $g_view_configuration_threshold
2821 $g_view_configuration_threshold = ADMINISTRATOR
;
2824 * threshold for users to set the system configurations generically via
2825 * MantisBT web interface.
2826 * WARNING: Users who have access to set configuration via the interface MUST
2827 * be trusted. This is due to the fact that such users can set configurations
2828 * to PHP code and hence there can be a security risk if such users are not
2830 * @global int $g_set_configuration_threshold
2832 $g_set_configuration_threshold = ADMINISTRATOR
;
2834 /************************************
2835 * MantisBT Look and Feel Variables *
2836 ************************************/
2839 * status color codes, using the Tango color palette
2840 * @global array $g_status_colors
2842 $g_status_colors = array(
2843 'new' => '#fcbdbd', // red (scarlet red #ef2929)
2844 'feedback' => '#e3b7eb', // purple (plum #75507b)
2845 'acknowledged' => '#ffcd85', // orange (orango #f57900)
2846 'confirmed' => '#fff494', // yellow (butter #fce94f)
2847 'assigned' => '#c2dfff', // blue (sky blue #729fcf)
2848 'resolved' => '#d2f5b0', // green (chameleon #8ae234)
2849 'closed' => '#c9ccc4' // grey (aluminum #babdb6)
2853 * The padding level when displaying project ids
2854 * The bug id will be padded with 0's up to the size given
2855 * @global int $g_display_project_padding
2857 $g_display_project_padding = 3;
2860 * The padding level when displaying bug ids
2861 * The bug id will be padded with 0's up to the size given
2862 * @global int $g_display_bug_padding
2864 $g_display_bug_padding = 7;
2867 * The padding level when displaying bugnote ids
2868 * The bugnote id will be padded with 0's up to the size given
2869 * @global int $g_display_bugnote_padding
2871 $g_display_bugnote_padding = 7;
2874 * colours for configuration display
2875 * @global string $g_colour_project
2877 $g_colour_project = 'LightGreen';
2880 * colours for configuration display
2881 * @global string $g_colour_global
2883 $g_colour_global = 'LightBlue';
2885 /*****************************
2886 * MantisBT Cookie Variables *
2887 *****************************/
2890 * --- cookie path ---------------
2891 * set this to something more restrictive if needed
2892 * http://www.php.net/manual/en/function.setcookie.php
2893 * @global string $g_cookie_path
2895 $g_cookie_path = '/';
2899 * @global string $g_cookie_domain
2901 $g_cookie_domain = '';
2904 * cookie version for view_all_page
2905 * @global string $g_cookie_version
2907 $g_cookie_version = 'v8';
2910 * --- cookie prefix ---------------
2911 * set this to a unique identifier. No spaces.
2912 * @global string $g_cookie_prefix
2914 $g_cookie_prefix = 'MANTIS';
2918 * @global string $g_string_cookie
2920 $g_string_cookie = '%cookie_prefix%_STRING_COOKIE';
2924 * @global string $g_project_cookie
2926 $g_project_cookie = '%cookie_prefix%_PROJECT_COOKIE';
2930 * @global string $g_view_all_cookie
2932 $g_view_all_cookie = '%cookie_prefix%_VIEW_ALL_COOKIE';
2936 * @global string $g_manage_cookie
2938 $g_manage_cookie = '%cookie_prefix%_MANAGE_COOKIE';
2942 * @global string $g_logout_cookie
2944 $g_logout_cookie = '%cookie_prefix%_LOGOUT_COOKIE';
2948 * @global string $g_bug_list_cookie
2950 $g_bug_list_cookie = '%cookie_prefix%_BUG_LIST_COOKIE';
2952 /*****************************
2953 * MantisBT Filter Variables *
2954 *****************************/
2958 * @global int $g_filter_by_custom_fields
2960 $g_filter_by_custom_fields = ON
;
2964 * @global int $g_filter_custom_fields_per_row
2966 $g_filter_custom_fields_per_row = 8;
2970 * @global int $g_view_filters
2972 $g_view_filters = SIMPLE_DEFAULT
;
2975 * This switch enables the use of xmlhttprequest protocol to speed up the
2976 * filter display. Rather than launching a separate page, the filters are
2977 * updated in-line in the view_all_bugs_page.
2978 * @global int $g_dhtml_filters
2980 $g_dhtml_filters = ON
;
2983 * The threshold required for users to be able to create permalinks. To turn
2984 * off this feature use NOBODY.
2985 * @global int $g_create_permalink_threshold
2987 $g_create_permalink_threshold = DEVELOPER
;
2990 * The service to use to create a short URL. The %s will be replaced by the
2991 * long URL. To disable the feature set to ''.
2992 * @global string $g_create_short_url
2994 $g_create_short_url = 'http://tinyurl.com/create.php?url=%s';
2996 /*************************************
2997 * MantisBT Database Table Variables *
2998 *************************************/
3002 * @global string $g_db_table_prefix
3004 $g_db_table_prefix = 'mantis';
3008 * @global string $g_db_table_suffix
3010 $g_db_table_suffix = '_table';
3012 /*************************
3013 * MantisBT Enum Strings *
3014 *************************/
3017 * status from $g_status_index-1 to 79 are used for the onboard customization
3018 * (if enabled) directly use MantisBT to edit them.
3019 * @global string $g_access_levels_enum_string
3021 $g_access_levels_enum_string = '10:viewer,25:reporter,40:updater,55:developer,70:manager,90:administrator';
3025 * @global string $g_project_status_enum_string
3027 $g_project_status_enum_string = '10:development,30:release,50:stable,70:obsolete';
3031 * @global string $g_project_view_state_enum_string
3033 $g_project_view_state_enum_string = '10:public,50:private';
3037 * @global string $g_view_state_enum_string
3039 $g_view_state_enum_string = '10:public,50:private';
3043 * @global string $g_priority_enum_string
3045 $g_priority_enum_string = '10:none,20:low,30:normal,40:high,50:urgent,60:immediate';
3048 * @global string $g_severity_enum_string
3050 $g_severity_enum_string = '10:feature,20:trivial,30:text,40:tweak,50:minor,60:major,70:crash,80:block';
3054 * @global string $g_reproducibility_enum_string
3056 $g_reproducibility_enum_string = '10:always,30:sometimes,50:random,70:have not tried,90:unable to duplicate,100:N/A';
3060 * @global string $g_status_enum_string
3062 $g_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,80:resolved,90:closed';
3065 * @@@ for documentation, the values in this list are also used to define
3066 * variables in the language files (e.g., $s_new_bug_title referenced in
3067 * bug_change_status_page.php ). Embedded spaces are converted to underscores
3068 * (e.g., "working on" references $s_working_on_bug_title). They are also
3069 * expected to be English names for the states
3070 * @global string $g_resolution_enum_string
3072 $g_resolution_enum_string = '10:open,20:fixed,30:reopened,40:unable to duplicate,50:not fixable,60:duplicate,70:not a bug,80:suspended,90:wont fix';
3076 * @global string $g_projection_enum_string
3078 $g_projection_enum_string = '10:none,30:tweak,50:minor fix,70:major rework,90:redesign';
3082 * @global string $g_eta_enum_string
3084 $g_eta_enum_string = '10:none,20:< 1 day,30:2-3 days,40:< 1 week,50:< 1 month,60:> 1 month';
3088 * @global string $g_sponsorship_enum_string
3090 $g_sponsorship_enum_string = '0:Unpaid,1:Requested,2:Paid';
3094 * @global string $g_custom_field_type_enum_string
3096 $g_custom_field_type_enum_string = '0:string,1:numeric,2:float,3:enum,4:email,5:checkbox,6:list,7:multiselection list,8:date,9:radio';
3098 /*********************************
3099 * MantisBT Javascript Variables *
3100 *********************************/
3103 * allow the use of Javascript?
3104 * @global int $g_use_javascript
3106 $g_use_javascript = ON
;
3108 /*******************************
3109 * MantisBT Speed Optimisation *
3110 *******************************/
3113 * Use compression of generated html if browser supports it. If you already
3114 * have compression enabled in your php.ini file (either with
3115 * zlib.output_compression or output_handler=ob_gzhandler) this option will be
3118 * If you do not have zlib enabled in your PHP installation this option will
3119 * also be ignored. PHP 4.3.0 and later have zlib included by default. Windows
3120 * users should uncomment the appropriate line in their php.ini files to load
3121 * the zlib DLL. You can check what extensions are loaded by running "php -m"
3122 * at the command line (look for 'zlib')
3123 * @global int $g_compress_html
3125 $g_compress_html = ON
;
3128 * Use persistent database connections
3129 * @global int $g_use_persistent_connections
3131 $g_use_persistent_connections = OFF
;
3138 * Specify your top/bottom include file (logos, banners, etc)
3139 * @global string $g_bottom_include_page
3141 $g_bottom_include_page = '%absolute_path%';
3144 * Specify your top/bottom include file (logos, banners, etc). If a top file is
3145 * supplied, the default MantisBT logo at the top will be hidden.
3146 * @global string $g_top_include_page
3148 $g_top_include_page = '%absolute_path%';
3152 * @global string $g_css_include_file
3154 $g_css_include_file = 'css/default.css';
3158 * @global string $g_css_rtl_include_file
3160 $g_css_rtl_include_file = 'css/rtl.css';
3165 * @global string $g_meta_include_file
3167 $g_meta_include_file = '%absolute_path%meta_inc.php';
3174 * Default page after Login or Set Project
3175 * @global string $g_default_home_page
3177 $g_default_home_page = 'my_view_page.php';
3180 * Specify where the user should be sent after logging out.
3181 * @global string $g_logout_redirect_page
3183 $g_logout_redirect_page = 'login_page.php';
3190 * An array of headers to be sent with each page.
3191 * For example, to allow your MantisBT installation to be viewed in a frame in
3192 * IE6 when the frameset is not at the same hostname as the MantisBT install,
3193 * you need to add a P3P header. You could try something like
3194 * 'P3P: CP="CUR ADM"' in your config file, but make sure to check that the
3195 * your policy actually matches with what you are promising. See
3196 * http://msdn.microsoft.com/en-us/library/ms537343.aspx for more information.
3197 * @global array $g_custom_headers
3199 $g_custom_headers = array();
3202 * Browser Caching Control
3203 * By default, we try to prevent the browser from caching anything. These two
3204 * settings will defeat this for some cases.
3206 * Browser Page caching - This will allow the browser to cache all pages. The
3207 * upside will be better performance, but there may be cases where obsolete
3208 * information is displayed. Note that this will be bypassed (and caching is
3209 * allowed) for the bug report pages.
3211 * @global int $g_allow_browser_cache
3213 // $g_allow_browser_cache = ON;
3215 * File caching - This will allow the browser to cache downloaded files.
3216 * Without this set, there may be issues with IE receiving files, and launching
3218 * @global int $g_allow_file_cache
3220 // $g_allow_file_cache = ON;
3227 * Threshold needed to manage custom fields
3228 * @global int $g_manage_custom_fields_threshold
3230 $g_manage_custom_fields_threshold = ADMINISTRATOR
;
3233 * Threshold needed to link/unlink custom field to/from a project
3234 * @global int $g_custom_field_link_threshold
3236 $g_custom_field_link_threshold = MANAGER
;
3239 * Whether to start editng a custom field immediately after creating it
3240 * @global int $g_custom_field_edit_after_create
3242 $g_custom_field_edit_after_create = ON
;
3249 * Add custom options to the main menu. For example:
3250 * $g_main_menu_custom_options = array(
3251 * array( "My Link", MANAGER, 'my_link.php' ),
3252 * array( "My Link2", ADMINISTRATOR, 'my_link2.php' )
3255 * Note that if the caption is found in custom_strings_inc.php, then it will be
3256 * replaced by the translated string. Options will only be added to the menu
3257 * if the current logged in user has the appropriate access level.
3258 * @global array $g_main_menu_custom_options
3260 $g_main_menu_custom_options = array();
3267 * Maps a file extension to a file type icon. These icons are printed
3268 * next to project documents and bug attachments.
3270 * - Extensions must be in lower case
3271 * - All icons will be displayed as 16x16 pixels.
3272 * @global array $g_file_type_icons
3274 $g_file_type_icons = array(
3286 'diff' => 'text.gif',
3288 'docx' => 'doc.gif',
3291 'htm' => 'html.gif',
3292 'html' => 'html.gif',
3297 'jpeg' => 'jpg.gif',
3298 'log' => 'text.gif',
3300 'mhtml' => 'html.gif',
3302 'midi' => 'mid.gif',
3306 'patch' => 'text.gif',
3313 'pptx' => 'ppt.gif',
3320 'txt' => 'text.gif',
3337 'xlsx' => 'xls.gif',
3341 '?' => 'generic.gif' );
3344 * Icon associative arrays
3345 * Status to icon mapping
3346 * @global array $g_status_icon_arr
3348 $g_status_icon_arr = array (
3350 LOW
=> 'priority_low_1.gif',
3351 NORMAL
=> 'priority_normal.gif',
3352 HIGH
=> 'priority_1.gif',
3353 URGENT
=> 'priority_2.gif',
3354 IMMEDIATE
=> 'priority_3.gif'
3358 * Sort direction to icon mapping
3359 * @global array $g_sort_icon_arr
3361 $g_sort_icon_arr = array (
3362 ASCENDING
=> 'up.gif',
3363 DESCENDING
=> 'down.gif'
3367 * Read status to icon mapping
3368 * @global array $g_unread_icon_arr
3370 $g_unread_icon_arr = array (
3371 READ
=> 'mantis_space.gif',
3372 UNREAD
=> 'unread.gif'
3375 /********************
3376 * My View Settings *
3377 ********************/
3380 * Number of bugs shown in each box
3381 * @global int $g_my_view_bug_count
3383 $g_my_view_bug_count = 10;
3386 * Boxes to be shown and their order
3387 * A box that is not to be shown can have its value set to 0
3388 * @global array $g_my_view_boxes
3390 $g_my_view_boxes = array (
3392 'unassigned' => '2',
3395 'recent_mod' => '5',
3399 'my_comments' => '0'
3403 * Toggle whether 'My View' boxes are shown in a fixed position (i.e. adjacent
3404 * boxes start at the same vertical position)
3405 * @global int $g_my_view_boxes_fixed_position
3407 $g_my_view_boxes_fixed_position = ON
;
3415 * This flag enables or disables RSS syndication. In the case where RSS
3416 * syndication is not used, it is recommended to set it to OFF.
3417 * @global int $g_rss_enabled
3419 $g_rss_enabled = ON
;
3423 * This seed is used as part of the inputs for calculating the authentication
3424 * key for the RSS feeds. If this seed changes, all the existing keys for the
3425 * RSS feeds will become invalid. This is defaulted to the database user name,
3426 * but it is recommended to overwrite it with a specific value on installation.
3427 * @global string $g_rss_key_seed
3429 $g_rss_key_seed = '%db_username%';
3431 /*********************
3432 * Bug Relationships *
3433 *********************/
3436 * Enable relationship graphs support.
3437 * Show issue relationships using graphs.
3439 * In order to use this feature, you must first install either GraphViz
3440 * (all OSs except Windows) or WinGraphviz (only Windows).
3442 * Graphviz homepage: http://www.research.att.com/sw/tools/graphviz/
3443 * WinGraphviz homepage: http://home.so-net.net.tw/oodtsen/wingraphviz/
3445 * Refer to the notes near the top of core/graphviz_api.php and
3446 * core/relationship_graph_api.php for more information.
3447 * @global int $g_relationship_graph_enable
3449 $g_relationship_graph_enable = OFF
;
3452 * Font name and size, as required by Graphviz. If Graphviz fails to run
3453 * for you, you are probably using a font name that gd can't find. On
3454 * Linux, try the name of the font file without the extension.
3455 * @global string $g_relationship_graph_fontname
3457 $g_relationship_graph_fontname = 'Arial';
3461 * @global int $g_relationship_graph_fontsize
3463 $g_relationship_graph_fontsize = 8;
3466 * Default dependency orientation. If you have issues with lots of childs
3467 * or parents, leave as 'horizontal', otherwise, if you have lots of
3468 * "chained" issue dependencies, change to 'vertical'.
3469 * @global string $g_relationship_graph_orientation
3471 $g_relationship_graph_orientation = 'horizontal';
3474 * Max depth for relation graphs. This only affects relation graphs,
3475 * dependency graphs are drawn to the full depth. A value of 3 is already
3476 * enough to show issues really unrelated to the one you are currently
3478 * @global int $g_relationship_graph_max_depth
3480 $g_relationship_graph_max_depth = 2;
3483 * If set to ON, clicking on an issue on the relationship graph will open
3484 * the bug view page for that issue, otherwise, will navigate to the
3485 * relationship graph for that issue.
3487 * @global int $g_relationship_graph_view_on_click
3489 $g_relationship_graph_view_on_click = OFF
;
3492 * Complete path to dot and neato tools. Your webserver must have execute
3493 * permission to these programs in order to generate relationship graphs.
3494 * NOTE: These are meaningless under Windows! Just ignore them!
3495 * @global string $g_dot_tool
3497 $g_dot_tool = '/usr/bin/dot';
3499 * Complete path to dot and neato tools. Your webserver must have execute
3500 * permission to these programs in order to generate relationship graphs.
3501 * NOTE: These are meaningless under Windows! Just ignore them!
3502 * @global string $g_neato_tool
3504 $g_neato_tool = '/usr/bin/neato';
3507 * Number of years in the past that custom date fields will display in
3509 * @global int $g_backward_year_count
3511 $g_backward_year_count = 4;
3514 * Number of years in the future that custom date fields will display in
3516 * @global int $g_forward_year_count
3518 $g_forward_year_count = 4;
3521 * Custom Group Actions
3523 * This extensibility model allows developing new group custom actions. This
3524 * can be implemented with a totally custom form and action pages or with a
3525 * pre-implemented form and action page and call-outs to some functions. These
3526 * functions are to be implemented in a predefined file whose name is based on
3527 * the action name. For example, for an action to add a note, the action would
3528 * be EXT_ADD_NOTE and the file implementing it would be
3529 * bug_actiongroup_add_note_inc.php. See implementation of this file for
3536 * 'action' => 'my_custom_action',
3537 * 'label' => 'my_label', // string to be passed to lang_get_defaulted()
3538 * 'form_page' => 'my_custom_action_page.php',
3539 * 'action_page' => 'my_custom_action.php'
3542 * 'action' => 'my_custom_action2',
3543 * 'form_page' => 'my_custom_action2_page.php',
3544 * 'action_page' => 'my_custom_action2.php'
3547 * 'action' => 'EXT_ADD_NOTE', // you need to implement bug_actiongroup_<action_without_'EXT_')_inc.php
3548 * 'label' => 'actiongroup_menu_add_note' // see strings_english.txt for this label
3552 * @global array $g_custom_group_actions
3554 $g_custom_group_actions = array();
3556 /********************
3557 * Wiki Integration *
3558 ********************/
3561 * Wiki Integration Enabled?
3562 * @global int $g_wiki_enable
3564 $g_wiki_enable = OFF
;
3568 * Supported engines: 'dokuwiki', 'mediawiki', 'twiki', 'wikka', 'xwiki'
3569 * @global string $g_wiki_engine
3571 $g_wiki_engine = '';
3574 * Wiki namespace to be used as root for all pages relating to this MantisBT
3576 * @global string $g_wiki_root_namespace
3578 $g_wiki_root_namespace = 'mantis';
3581 * URL under which the wiki engine is hosted. Must be on the same server.
3582 * @global string $g_wiki_engine_url
3584 $g_wiki_engine_url = $t_protocol . '://' . $t_host . '/%wiki_engine%/';
3586 /********************
3587 * Recently Visited *
3588 ********************/
3591 * Whether to show the most recently visited issues or not. At the moment we always track them even if this flag is off.
3592 * @global int $g_recently_visited
3594 $g_recently_visited = ON
;
3597 * The maximum number of issues to keep in the recently visited list.
3598 * @global int $g_recently_visited_count
3600 $g_recently_visited_count = 5;
3607 * String that will separate tags as entered for input
3608 * @global int $g_tag_separator
3610 $g_tag_separator = ',';
3613 * Access level required to view tags attached to a bug
3614 * @global int $g_tag_view_threshold
3616 $g_tag_view_threshold = VIEWER
;
3619 * Access level required to attach tags to a bug
3620 * @global int $g_tag_attach_threshold
3622 $g_tag_attach_threshold = REPORTER
;
3625 * Access level required to detach tags from a bug
3626 * @global int $g_tag_detach_threshold
3628 $g_tag_detach_threshold = DEVELOPER
;
3631 * Access level required to detach tags attached by the same user
3632 * @global int $g_tag_detach_own_threshold
3634 $g_tag_detach_own_threshold = REPORTER
;
3637 * Access level required to create new tags
3638 * @global int $g_tag_create_threshold
3640 $g_tag_create_threshold = REPORTER
;
3643 * Access level required to edit tag names and descriptions
3644 * @global int $g_tag_edit_threshold
3646 $g_tag_edit_threshold = DEVELOPER
;
3649 * Access level required to edit descriptions by the creating user
3650 * @global int $g_tag_edit_own_threshold
3652 $g_tag_edit_own_threshold = REPORTER
;
3659 * Turn on Time Tracking accounting
3660 * @global int $g_time_tracking_enabled
3662 $g_time_tracking_enabled = OFF
;
3666 * @global int $g_time_tracking_with_billing
3668 $g_time_tracking_with_billing = OFF
;
3671 * Stop watch to build time tracking field
3672 * @global int $g_time_tracking_stopwatch
3674 $g_time_tracking_stopwatch = OFF
;
3677 * access level required to view time tracking information
3678 * @global int $g_time_tracking_view_threshold
3680 $g_time_tracking_view_threshold = DEVELOPER
;
3683 * access level required to add/edit time tracking information
3684 * @global int $g_time_tracking_edit_threshold
3686 $g_time_tracking_edit_threshold = DEVELOPER
;
3689 * access level required to run reports
3690 * @global int $g_time_tracking_reporting_threshold
3692 $g_time_tracking_reporting_threshold = MANAGER
;
3695 * allow time tracking to be recorded without a bugnote
3696 * @global int $g_time_tracking_without_note
3698 $g_time_tracking_without_note = ON
;
3700 /****************************
3701 * Profile Related Settings *
3702 ****************************/
3706 * @global int $g_enable_profiles
3708 $g_enable_profiles = ON
;
3711 * Add profile threshold
3712 * @global int $g_add_profile_threshold
3714 $g_add_profile_threshold = REPORTER
;
3717 * Threshold needed to be able to create and modify global profiles
3718 * @global int $g_manage_global_profile_threshold
3720 $g_manage_global_profile_threshold = MANAGER
;
3723 * Allows the users to enter free text when reporting/updating issues
3724 * for the profile related fields (i.e. platform, os, os build)
3725 * @global int $g_allow_freetext_in_profile_fields
3727 $g_allow_freetext_in_profile_fields = ON
;
3729 /********************
3730 * Twitter Settings *
3731 ********************/
3734 * The integration with twitter allows for a MantisBT installation to post
3735 * updates to a twitter account. This feature will be disabled if username
3736 * is empty or if the curl extension is not enabled.
3738 * The twitter account user name.
3739 * @global string $g_twitter_username
3741 $g_twitter_username = '';
3744 * The twitter account password.
3745 * @global string $g_twitter_password
3747 $g_twitter_password = '';
3754 * enable/disable plugins
3755 * @global int $g_plugins_enabled
3757 $g_plugins_enabled = ON
;
3760 * absolute path to plugin files.
3761 * @global string $g_plugin_path
3763 $g_plugin_path = $g_absolute_path . 'plugins' . DIRECTORY_SEPARATOR
;
3766 * management threshold.
3767 * @global int $g_manage_plugin_threshold
3769 $g_manage_plugin_threshold = ADMINISTRATOR
;
3772 * Force installation and protection of certain plugins.
3773 * Note that this is not the preferred method of installing plugins,
3774 * which should generally be done directly through the plugin management
3775 * interface. However, this method will prevent users with admin access
3776 * from uninstalling plugins through the plugin management interface.
3778 * Entries in the array must be in the form of a key/value pair
3779 * consisting of the plugin basename and priority, as such:
3786 * @global $g_plugins_force_installed
3788 $g_plugins_force_installed = array();
3795 * threshold to update due date submitted
3796 * @global int $g_due_date_update_threshold
3798 $g_due_date_update_threshold = NOBODY
;
3801 * threshold to see due date
3802 * @global int $g_due_date_view_threshold
3804 $g_due_date_view_threshold = NOBODY
;
3811 * show extra dropdown for subprojects
3812 * Shows only top projects in the project dropdown and adds an extra dropdown for
3814 * @global int $g_show_extended_project_browser
3816 $g_show_extended_project_browser = OFF
;
3819 * Sub-projects should inherit categories from parent projects.
3821 $g_subprojects_inherit_categories = ON
;
3824 * Sub-projects should inherit versions from parent projects.
3826 $g_subprojects_inherit_versions = ON
;
3828 /**********************************
3829 * Debugging / Developer Settings *
3830 **********************************/
3833 * Time page loads. Shows at the bottom of the page.
3834 * @global int $g_show_timer
3836 $g_show_timer = OFF
;
3839 * used for development only. Leave OFF
3840 * @global int $g_debug_timer
3842 $g_debug_timer = OFF
;
3845 * Used for debugging e-mail feature, when set to OFF the emails work as normal.
3846 * when set to e-mail address, all e-mails are sent to this address with the
3847 * original To, Cc, Bcc included in the message body.
3848 * @global int $g_debug_email
3850 $g_debug_email = OFF
;
3853 * Shows the total number/unique number of queries executed to serve the page.
3854 * @global int $g_show_queries_count
3856 $g_show_queries_count = OFF
;
3859 * Indicates the access level required for a user to see the query count / list.
3860 * This only has an effect if $g_show_queries_count is ON. Note that this
3861 * threshold is compared against the user's default global access level rather
3862 * than the threshold based on the current active project.
3864 * @global int $g_show_queries_threshold
3866 $g_show_queries_threshold = ADMINISTRATOR
;
3869 * Shows the list of all queries that are executed in chronological order from
3870 * top to bottom. This option is only effective when $g_show_queries_count is
3872 * WARNING: Potential security hazard. Only turn this on when you really need
3873 * it (for debugging/profiling)
3874 * @global int $g_show_queries_list
3876 $g_show_queries_list = OFF
;
3879 * --- detailed error messages -----
3880 * Shows a list of variables and their values when an error is triggered
3881 * Only applies to error types configured to 'halt' in $g_display_errors, below
3882 * WARNING: Potential security hazard. Only turn this on when you really
3883 * need it for debugging
3884 * @global int $g_show_detailed_errors
3886 $g_show_detailed_errors = OFF
;
3889 * --- error display ---
3890 * what errors are displayed and how?
3891 * The options for display are:
3892 * 'halt' - stop and display traceback
3893 * 'inline' - display 1 line error and continue
3894 * 'none' - no error displayed
3895 * A developer might set this in config_inc.php as:
3896 * $g_display_errors = array(
3897 * E_WARNING => 'halt',
3898 * E_NOTICE => 'halt',
3899 * E_USER_ERROR => 'halt',
3900 * E_USER_WARNING => 'none',
3901 * E_USER_NOTICE => 'none'
3903 * @global array $g_display_errors
3905 $g_display_errors = array(
3906 E_WARNING
=> 'inline',
3908 E_USER_ERROR
=> 'halt',
3909 E_USER_WARNING
=> 'inline',
3910 E_USER_NOTICE
=> 'none'
3914 * --- debug messages ---
3915 * If this option is turned OFF (default) page redirects will continue to
3916 * function even if a non-fatal error occurs. For debugging purposes, you
3917 * can set this to ON so that any non-fatal error will prevent page redirection,
3918 * allowing you to see the errors.
3919 * Only turn this option on for debugging
3920 * @global int $g_stop_on_errors
3922 $g_stop_on_errors = OFF
;
3925 * --- system logging ---
3926 * This controls the logging of information to a separate file for debug or audit
3927 * $g_log_level controls what information is logged
3928 * see constant_inc.php for details on the log channels available
3929 * e.g., $g_log_level = LOG_EMAIL | LOG_EMAIL_RECIPIENT | LOG_FILTERING | LOG_AJAX;
3931 * $g_log_destination specifies the file where the data goes
3932 * right now, only "file:<file path>" is supported
3933 * e.g. (Linux), $g_log_destination = 'file:/tmp/mantisbt.log';
3934 * e.g. (Windows), $g_log_destination = 'file:c:/temp/mantisbt.log';
3935 * see http://www.php.net/error_log for details
3936 * @global int $g_log_level
3938 $g_log_level = LOG_NONE
;
3942 * @global string $g_log_destination
3944 $g_log_destination = '';
3947 * if OFF, will include original javascript files
3948 * if ON, will include javascript files that have been compressed by yuicompressor if available
3949 * @global int $g_minimal_jscss
3951 $g_minimal_jscss = ON
;
3953 /**************************
3954 * Configuration Settings *
3955 **************************/
3958 * The following list of variables should never be in the database.
3959 * These patterns will be concatenated and used as a regular expression
3960 * to bypass the database lookup and look here for appropriate global settings.
3961 * @global array $g_global_settings
3963 $g_global_settings = array(
3982 'plugins_installed',
3985 'show_detailed_errors',
3991 '[^_]file[(_(?!threshold))$]',