Product SiteDocumentation Site

5.24. Misc

$g_user_login_valid_regex
The regular expression to use when validating new user login names. The default regular expression allows a-z, A-Z, 0-9, +, -, dot, space and underscore. If you change this, you may want to update the ERROR_USER_NAME_INVALID string in the language files to explain the rules you are using on your site.
See Wikipedia for more details about regular expressions. For testing regular expressions, use Rubular.
$g_monitor_bug_threshold
Access level needed to monitor issues. The default value is REPORTER.
$g_show_monitor_list_threshold
Access level needed to show the list of users monitoring an issue. The default value is DEVELOPER.
$g_monitor_add_others_bug_threshold
Access level needed to add other users to the list of users monitoring an issue. The default value is DEVELOPER.
This setting should not be lower than $g_show_monitor_list_threshold.
$g_monitor_delete_others_bug_threshold
Access level needed to delete other users from the list of users monitoring an issue. The default value is DEVELOPER.
This setting should not be lower than $g_show_monitor_list_threshold.
$g_print_reports_threshold
Grants users access to the Print Reports functionality (Word/HTML) from the View Issues page. The default value is UPDATER.
$g_export_issues_threshold
Access level required to export issues to CSV and Excel formats from the View Issues page. The default value is VIEWER.
$g_allow_reporter_close
Allow reporters to close the bugs they reported.
$g_delete_bug_threshold
Allow the specified access level and above to delete bugs.
$g_bug_move_access_level
Allow the specified access level and above to move bugs between projects.
$g_allow_account_delete
Allow users to delete their own accounts.
$g_allow_anonymous_login
Enable anonymous access to Mantis. You must also specify $g_anonymous_account as the account which anonymous users will browse Mantis with. The default setting is OFF.
$g_anonymous_account
Define the account which anonymous users will assume when using Mantis. This account is considered by Mantis to be protected from modification. In other words, this account can only be modified by users with an access level equal to or higher than $g_manage_user_threshold. Anonymous users will not be able to adjust preferences or change account settings like normal users can.
You will need to create a new account to use for this $g_anonymous_account setting. When creating the account you should specify a password, email address and so forth in the same way you'd create any other account. It is suggested that the access level for this account be set to VIEWER or some other read only level.
The anonymous user account will not receive standard notifications and can not monitor issues.
The default setting is blank/undefined. You only need to define this setting when $g_allow_anonymous_login is set to ON.
$g_bug_link_tag
If a number follows this tag it will create a link to a bug. Default is '#'.
  • '#': a link would be #45
  • 'bug:' a link would be bug:98
$g_bugnote_link_tag
If a number follows this tag it will create a link to a bug note. Default is '~'.
  • '~': a link would be ~45
  • 'bugnote:' a link would be bugnote:98
$g_enable_project_documentation
Specifies whether to enable support for project documents or not. Default is OFF. This feature is deprecated and is expected to be moved to a plugin in the future.
$g_admin_site_threshold
Threshold at which a user is considered to be a site administrator. These users have the highest level of access to your Mantis installation. This access level is required to change key Mantis settings (such as server paths) and perform other administrative duties. You may need to change this value from the default of ADMINISTRATOR if you have defined a new access level to replace the default ADMINISTRATOR level in constant_inc.php.

Warning

This is a potentially dangerous configuration option. Users at or above this threshold value will have permission to all aspects of Mantis including the admin/ directory. With this access level, users can damage your installation of Mantis, destroy your database or have elevated access to your server.
DO NOT CHANGE THIS VALUE UNLESS YOU ABSOLUTELY KNOW WHAT YOU'RE DOING. BE VERY CAREFUL WITH CHANGING THIS CONFIGURATION VALUE FROM THE DEFAULT SETTING.
$g_manage_configuration_threshold
The threshold required for users to be able to manage configuration of a project. This includes workflow, email notifications, columns to view, and others. Default is MANAGER.
$g_view_configuration_threshold
Threshold for users to view the raw system configurations as stored in the database. The default value is ADMINISTRATOR.
$g_set_configuration_threshold
Threshold for users to set the system configurations generically via MantisBT web interface. The default value is ADMINISTRATOR.

Warning

Users who have access to set configuration via the interface MUST be trusted. This is due to the fact that these users can leverage the interface to inject PHP code into the system, which is a potential security risk.
$g_csv_separator
The separator to use for CSV exports. The default value is the comma (,).
$g_csv_injection_protection
When this setting is ON (default), any data that could be interpreted as a formula by a spreadsheet program such as Excel (i.e. starting with =, @, - or +), will be prefixed with a tab character (\t) in order to prevent CSV injection.
Sometimes this may not be appropriate (e.g. if the CSV needs to be consumed programmatically). In that case, $g_csv_injection_protection can be set to OFF, resulting in raw data to be exported.

Warning

Setting this to OFF is a security risk. An attacker could upload a crafted CSV file containing formulas that will be executed when opened with Excel, as described in this article.
$g_view_bug_threshold
Access level needed to view bugs.
$g_update_bug_assign_threshold
Access level needed to show the Assign To: button bug_view*_page or the Assigned list in bug_update*_page. This allows control over who can route bugs This defaults to $g_handle_bug_threshold.
$g_private_bugnote_threshold
Access level needed to view private bugnotes.
$g_view_handler_threshold
Access level needed to view handler.
$g_view_history_threshold
Access level needed to view history.
$g_bug_reminder_threshold
Access level needed to send a reminder from the bug view pages set to NOBODY to disable the feature.
$g_upload_project_file_threshold
Access level needed to upload files to the project documentation section You can set this to NOBODY to prevent uploads to projects.
$g_upload_bug_file_threshold
Access level needed to upload files to attach to a bug You can set this to NOBODY to prevent uploads to bugs but note that the reporter of the bug will still be able to upload unless you set $g_allow_reporter_upload or $g_allow_file_upload to OFF See also: $g_upload_project_file_threshold, $g_allow_file_upload, $g_allow_reporter_upload.
$g_add_bugnote_threshold
Add bugnote threshold.
$g_update_bugnote_threshold
Threshold at which a user can edit the bugnotes of other users.
$g_view_proj_doc_threshold
Threshold needed to view project documentation Note: setting this to ANYBODY will let any user download attachments from private projects, regardless of their being a member of it.
$g_manage_site_threshold
Site manager.
$g_manage_project_threshold
Threshold needed to manage a project: edit project details (not to add/delete projects) ...etc.
$g_manage_news_threshold
Threshold needed to add/delete/modify news.
$g_delete_project_threshold
Threshold required to delete a project.
$g_create_project_threshold
Threshold needed to create a new project.
$g_private_project_threshold
Threshold needed to be automatically included in private projects.
$g_project_user_threshold
Threshold needed to manage user access to a project.
$g_delete_bugnote_threshold
Threshold at which a user can delete the bugnotes of other users. The default value is equal to the configuration setting $g_delete_bug_threshold.
$g_move_bug_threshold
Move bug threshold.
$g_stored_query_use_threshold
Threshold needed to be able to use stored queries.
$g_stored_query_create_threshold
Threshold needed to be able to create stored queries.
$g_stored_query_create_shared_threshold
Threshold needed to be able to create shared stored queries.
$g_update_readonly_bug_threshold
Threshold needed to update readonly bugs. Readonly bugs are identified via $g_bug_readonly_status_threshold.
$g_view_changelog_threshold
Threshold for viewing changelog.
$g_roadmap_view_threshold
Threshold for viewing roadmap.
$g_roadmap_update_threshold
Threshold for updating roadmap, target_version, etc.
$g_update_bug_status_threshold
Status change thresholds.
$g_reopen_bug_threshold
Access level needed to re-open bugs.
$g_report_issues_for_unreleased_versions_threshold
Access level needed to assign bugs to unreleased product versions.
$g_set_bug_sticky_threshold
Access level needed to set a bug sticky.
$g_set_status_threshold
This array sets the access thresholds needed to enter each status listed. if a status is not listed, it falls back to $g_update_bug_status_threshold.
$g_allow_no_category
Allow a bug to have no category.
$g_limit_view_unless_threshold
Threshold at which a user can view all issues in the project (as allowed by other permissions). Not meeting this threshold means the user can only see the issues they reported, are handling or monitoring. A value of ANYBODY means that all users have full visibility (as default) This is a replacement for old option: $g_limit_reporters.
$g_allow_reporter_upload
Reporter can upload Allow reporters to upload attachments to bugs they reported.
$g_bug_count_hyperlink_prefix
Bug Count Linking This is the prefix to use when creating links to bug views from bug counts (eg. on the main page and the summary page). Default is a temporary filter.
$g_default_manage_tag_prefix
Default tag prefix used to filter the list of tags in manage_tags_page.php. Change this to 'A' (or any other letter) if you have a lot of tags in the system and loading the manage tags page takes a long time.
$g_access_levels_enum_string
Status from $g_status_index-1 to 79 are used for the onboard customization (if enabled) directly use MantisBT to edit them.
$g_project_status_enum_string
TODO
$g_project_view_state_enum_string
TODO
$g_view_state_enum_string
TODO
$g_priority_enum_string
TODO
$g_severity_enum_string
TODO
$g_reproducibility_enum_string
TODO
$g_status_enum_string
TODO
$g_resolution_enum_string
The values in this list are also used to define variables in the language files (e.g., $s_new_bug_title referenced in bug_change_status_page.php ). Embedded spaces are converted to underscores (e.g., "working on" references $s_working_on_bug_title). They are also expected to be English names for the states
$g_projection_enum_string
TODO
$g_eta_enum_string
TODO
$g_sponsorship_enum_string
TODO
$g_custom_field_type_enum_string
TODO
$g_file_type_icons
Maps a file extension to a file type icon. These icons are printed next to project documents and bug attachments.
$g_file_download_content_type_overrides
Content types which will be overridden when downloading files.
$g_status_icon_arr
Icon associative arrays. Status to icon mapping.
$g_sort_icon_arr
Sort direction to icon mapping.
$g_rss_enabled
This flag enables or disables RSS syndication. In the case where RSS syndication is not used, it is recommended to set it to OFF.
$g_recently_visited_count
This controls whether to show the most recently visited issues by the current user or not. If set to 0, this feature is disabled. Otherwise it is the maximum number of issues to keep in the recently visited list.
$g_tag_separator
String that will separate tags as entered for input.
$g_tag_view_threshold
Access level required to view tags attached to a bug.
$g_tag_attach_threshold
Access level required to attach tags to a bug.
$g_tag_detach_threshold
Access level required to detach tags from a bug.
$g_tag_detach_own_threshold
Access level required to detach tags attached by the same user.
$g_tag_create_threshold
Access level required to create new tags.
$g_tag_edit_threshold
Access level required to edit tag names and descriptions.
$g_tag_edit_own_threshold
Access level required to edit descriptions by the creating user.
$g_enable_profiles
Enable Profiles.
$g_add_profile_threshold
Add profile threshold.
$g_manage_global_profile_threshold
Threshold needed to be able to create and modify global profiles.
$g_allow_freetext_in_profile_fields
Allows the users to enter free text when reporting/updating issues for the profile related fields (i.e. platform, os, os build).
$g_plugins_enabled
Enable/disable plugins.
$g_plugin_path
Absolute path to plugin files.
$g_manage_plugin_threshold
Threshold needed to manage plugins.
$g_plugin_mime_types
A mapping of file extensions to mime types, used when serving resources from plugins.
$g_plugins_force_installed
Force installation and protection of certain plugins. Note that this is not the preferred method of installing plugins, which should generally be done directly through the plugin management interface. However, this method will prevent users with admin access from uninstalling plugins through the plugin management interface.
Entries in the array must be in the form of a key/value pair consisting of the plugin basename and priority.