I wish to migrate my Mantis 1.2.5 to Mantis 1.2.12. I did some tests for that and i have a problem.
In fact, I have a config_inc.php file what I use since many versions of Mantis but with the 1.2.12 version, Mantis don't work. When I go on http://localhost/mantis, I have an HTTP error 500. I saw the apache logs and I have this error :
I thought that it was my memory_limit on my php.ini which don't have enough memory but it didn't work when I modified my php.ini. So now, I don't know where is the problem.[Thu Jan 03 09:51:47 2013] [error] [client ::1] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 261900 bytes) in /var/www/html/mantis/core/config_api.php on line 596
Here is my config_inc.php, may be somes functions or lines are obsolete ?
For information, my server is a Fedora 15 and I use Apache and MySQL.
Thank yo ufor your help.
First part of config_inc.php
Code: Select all
<?php
# Mantis - a php based bugtracking system
# Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
# Copyright (C) 2002 - 2007 Mantis Team - mantisbt-dev@lists.sourceforge.net
# Mantis is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# Mantis is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Mantis. If not, see <http://www.gnu.org/licenses/>.
# --------------------------------------------------------
# $Id: config_defaults_inc.php,v 1.364.2.6 2007-10-28 15:39:30 nuclear_eclipse Exp $
# --------------------------------------------------------
###########################################################################
# CONFIGURATION VARIABLES
###########################################################################
# config_defaults_inc.php
# This file should not be changed. If you want to override any of the values
# defined here, define them in a file called config_inc.php, which will
# be loaded after this file.
# In general a value of OFF means the feature is disabled and ON means the
# feature is enabled. Any other cases will have an explanation.
# For more details see http://manual.mantisbt.org/
################################
# Mantis Database Settings
################################
# --- database variables ---------
# set these values to match your setup
# hostname should be either a hostname or connection string to supply to adodb.
# For example, if you would like to connect to a mysql server on the local machine,
# set hostname to 'localhost', and db_type to 'mysql'.
# If you need to supply a port to connect to, set hostname as 'localhost:3306'.
$g_hostname = 'localhost';
$g_db_username = 'root';
$g_db_password = 'passwd';
$g_database_name = 'mantis';
$g_db_schema = ''; // used in the case of db2
# Supported types: 'mysql' or 'mysqli' for MySQL, 'pgsql' for PostgreSQL,
# 'mssql' for MS SQL Server, 'oci8' for Oracle, and 'db2' for DB2.
$g_db_type = 'mysqli';
############################
# Mantis Path Settings
############################
# --- path variables --------------
# path to your installation as seen from the web browser
# requires trailing /
if ( isset ( $_SERVER['PHP_SELF'] ) ) {
$t_protocol = 'http';
if ( isset( $_SERVER['HTTPS'] ) && ( strtolower( $_SERVER['HTTPS'] ) != 'off' ) ) {
$t_protocol = 'https';
}
# $_SERVER['SERVER_PORT'] is not defined in case of php-cgi.exe
if ( isset( $_SERVER['SERVER_PORT'] ) ) {
$t_port = ':' . $_SERVER['SERVER_PORT'];
if ( ( ':80' == $t_port && 'http' == $t_protocol )
|| ( ':443' == $t_port && 'https' == $t_protocol )) {
$t_port = '';
}
} else {
$t_port = '';
}
if ( isset( $_SERVER['HTTP_X_FORWARDED_HOST'] ) ) { // Support ProxyPass
$t_host = $_SERVER['HTTP_X_FORWARDED_HOST'];
} else if ( isset( $_SERVER['HTTP_HOST'] ) ) {
$t_host = $_SERVER['HTTP_HOST'];
} else if ( isset( $_SERVER['SERVER_NAME'] ) ) {
$t_host = $_SERVER['SERVER_NAME'] . $t_port;
} else if ( isset( $_SERVER['SERVER_ADDR'] ) ) {
$t_host = $_SERVER['SERVER_ADDR'] . $t_port;
} else {
$t_host = 'www.example.com';
}
$t_path = dirname( strip_tags( $_SERVER['PHP_SELF'] ) );
# Remove /api/soap/ from the path to handle the case where the config_defaults_inc.php is included from the
# soap api.
$t_soap_api_path = '/api/soap';
$t_soap_api_path_pos = strpos( strtolower( $t_path ), $t_soap_api_path );
if ( $t_soap_api_path_pos !== false ) {
if ( $t_soap_api_path_pos == ( strlen( $t_path ) - strlen( $t_soap_api_path ) ) ) {
$t_path = substr( $t_path, 0, $t_soap_api_path_pos );
}
}
if ( '/' == $t_path || '\\' == $t_path ) {
$t_path = '';
}
$g_path = $t_protocol . '://' . $t_host . $t_path.'/';
} else {
$g_path = 'http://www.example.com/mantis/';
}
# path to your images directory (for icons)
# requires trailing /
$g_icon_path = '%path%images/';
# absolute path to your installation. Requires trailing / or \
# Symbolic links are allowed since release 0.17.3
$g_absolute_path = dirname( __FILE__ ) . DIRECTORY_SEPARATOR;
# absolute patch to your core files. The default is usually OK,
# unless you moved the 'core' directory out of your webroot (recommended).
$g_core_path = $g_absolute_path . 'core' . DIRECTORY_SEPARATOR;
# Used to link to manual for User Documentation.
$g_manual_url = 'http://manual.mantisbt.org/';
#############################
# Web Server
#############################
# Using Microsoft Internet Information Server (IIS)
if ( isset( $_SERVER['SERVER_SOFTWARE'] ) ) { # SERVER_SOFTWARE not defined in case of php-cgi.exe
$g_use_iis = ( strstr( $_SERVER['SERVER_SOFTWARE'], 'IIS' ) !== false ) ? ON : OFF;
} else {
$g_use_iis = OFF;
}
#############################
# Configuration Settings
#############################
# The following list of variables should never be in the database.
# These patterns will be concatenated and used as a regular expression
# to bypass the database lookup and look here for appropriate global settings.
$g_global_settings = array(
'_table$', 'cookie', '^db_', 'hostname', 'database_name',
'_path$', 'use_iis', 'language', 'use_javascript', 'display_errors', 'stop_on_errors', 'login_method', '_file$',
'anonymous', 'content_expire', 'html_valid_tags', 'custom_headers', 'rss_key_seed'
);
#############################
# Signup and Lost Password
#############################
# --- signup ----------------------
# allow users to signup for their own accounts.
# Mail settings must be correctly configured in order for this to work
$g_allow_signup = OFF;
# Max. attempts to login using a wrong password before lock the account.
# When locked, it's required to reset the password (lost password)
# Value resets to zero at each successfully login
# Set to OFF to disable this control
$g_max_failed_login_count = OFF;
# access level required to be notified when a new user has been created using the "signup form"
$g_notify_new_user_created_threshold_min = ADMINISTRATOR;
# if ON users will be sent their password when reset.
# if OFF the password will be set to blank. If set to ON, mail settings must be
# correctly configured.
$g_send_reset_password = ON;
# String used to generate the confirm_hash for the 'lost password' feature and captcha code for 'signup'
# ATTENTION: CHANGE IT TO WHATEVER VALUE YOU PREFER
$g_password_confirm_hash_magic_string = 'blowfish';
# --- captcha image ---------------
# use captcha image to validate subscription it requires GD library installed
$g_signup_use_captcha = ON;
# absolute path (with trailing slash!) to folder which contains your TrueType-Font files
# used to create the captcha image and since 0.19.3 for the Relationship Graphs
$g_system_font_folder = 'c:/winnt/fonts/';
# font name used to create the captcha image. i.e. arial.ttf
# (the font file has to exist in the system_font_folder)
$g_font_per_captcha = 'arial.ttf';
# --- lost password -------------
# Setting to disable the 'lost your password' feature.
$g_lost_password_feature = ON;
# Max. simultaneous requests of 'lost password'
# When this value is reached, it's no longer possible to request new password reset
# Value resets to zero at each successfully login
$g_max_lost_password_in_progress_count = 0;
#############################
# Mantis Email Settings
#############################
# --- email variables -------------
$g_administrator_email = 'mantis@test.com';
$g_webmaster_email = 'mantis@test.com';
# the sender email, part of 'From: ' header in emails
$g_from_email = 'mantis@test.com';
# the sender name, part of 'From: ' header in emails
$g_from_name = 'Mantis Bug Tracker';
# the return address for bounced mail
$g_return_path_email = 'mantis@test.com';
# allow email notification
# note that if this is disabled, sign-up and password reset messages will
# not be sent.
$g_enable_email_notification = ON;
# The following two config options allow you to control who should get email
# notifications on different actions/statuses. The first option (default_notify_flags)
# sets the default values for different user categories. The user categories
# are:
#
# 'reporter': the reporter of the bug
# 'handler': the handler of the bug
# 'monitor': users who are monitoring a bug
# 'bugnotes': users who have added a bugnote to the bug
# 'threshold_max': all users with access <= max
# 'threshold_min': ..and with access >= min
#
# The second config option (notify_flags) sets overrides for specific actions/statuses.
# If a user category is not listed for an action, the default from the config
# option above is used. The possible actions are:
#
# 'new': a new bug has been added
# 'owner': a bug has been assigned to a new owner
# 'reopened': a bug has been reopened
# 'deleted': a bug has been deleted
# 'updated': a bug has been updated
# 'bugnote': a bugnote has been added to a bug
# 'sponsor': sponsorship has changed on this bug
# 'relation': a relationship has changed on this bug
# '<status>': eg: 'resolved', 'closed', 'feedback', 'acknowledged', ...etc.
# this list corresponds to $g_status_enum_string
#
# If you wanted to have all developers get notified of new bugs you might add
# the following lines to your config file:
#
# $g_notify_flags['new']['threshold_min'] = DEVELOPER;
# $g_notify_flags['new']['threshold_max'] = DEVELOPER;
#
# You might want to do something similar so all managers are notified when a
# bug is closed. If you didn't want reporters to be notified when a bug is
# closed (only when it is resolved) you would use:
#
# $g_notify_flags['closed']['reporter'] = OFF;
$g_default_notify_flags = array('reporter' => ON,
'handler' => ON,
'monitor' => ON,
'bugnotes' => ON,
'threshold_min' => NOBODY,
'threshold_max' => NOBODY);
# We don't need to send these notifications on new bugs
# (see above for info on this config option)
#@@@ (though I'm not sure they need to be turned off anymore
# - there just won't be anyone in those categories)
# I guess it serves as an example and a placeholder for this
# config option
$g_notify_flags['new'] = array('bugnotes' => OFF,
'monitor' => OFF);
# Whether user's should receive emails for their own actions
$g_email_receive_own = ON;
# set to OFF to disable email check
$g_validate_email = ( substr( php_uname(), 0, 7 ) == 'Windows' ) ? OFF : ON;
$g_check_mx_record = OFF; # Not supported under Windows.
# if ON, allow the user to omit an email field
# note if you allow users to create their own accounts, they
# must specify an email at that point, no matter what the value
# of this option is. Otherwise they wouldn't get their passwords.
$g_allow_blank_email = OFF;
# Only allow and send email to addresses in the given domain
# For example:
# $g_limit_email_domain = 'users.sourceforge.net';
$g_limit_email_domain = OFF;
# This specifies the access level that is needed to get the mailto: links.
$g_show_user_email_threshold = NOBODY;
# If use_x_priority is set to ON, what should the value be?
# Urgent = 1, Not Urgent = 5, Disable = 0
# Note: some MTAs interpret X-Priority = 0 to mean 'Very Urgent'
$g_mail_priority = 3;
# select the method to mail by:
# 0 - mail()
# 1 - sendmail
# 2 - SMTP
$g_phpMailer_method = 2;
# This option allows you to use a remote SMTP host. Must use the phpMailer script
# One or more hosts, separated by a semicolon, can be listed.
# You can also specify a different port for each host by using this
# format: [hostname:port] (e.g. "smtp1.example.com:25;smtp2.example.com").
# Hosts will be tried in order.
$g_smtp_host = 'mail.test.com';
# These options allow you to use SMTP Authentication when you use a remote
# SMTP host with phpMailer. If smtp_username is not '' then the username
# and password will be used when logging in to the SMTP server.
$g_smtp_username = 'smtpuser';
$g_smtp_password = 'phu2Mohch';
# It is recommended to use a cronjob or a scheduler task to send emails.
# The cronjob should typically run every 5 minutes. If no cronjob is used,
# then user will have to wait for emails to be sent after performing an action
# which triggers notifications. This slows user performance.
$g_email_send_using_cronjob = OFF;
# Specify whether e-mails should be sent with the category set or not. This is tested
# with Microsoft Outlook. More testing for this feature + other formats will be added
# in the future.
# OFF, EMAIL_CATEGORY_PROJECT_CATEGORY (format: [Project] Category)
$g_email_set_category = OFF;
# --- email separator and padding ------------
$g_email_separator1 = str_pad('', 70, '=');
$g_email_separator2 = str_pad('', 70, '-');
$g_email_padding_length = 28;
#############################
# Mantis Version String
#############################
# --- version variables -----------
$g_show_version = ON;
################################
# Mantis Language Settings
################################
# --- language settings -----------
# If the language is set to 'auto', the actual
# language is determined by the user agent (web browser)
# language preference.
$g_default_language = 'french';
# list the choices that the users are allowed to choose
$g_language_choices_arr = array(
'auto',
'bulgarian',
'catalan',
'chinese_simplified',
'chinese_traditional',
'croatian',
'czech',
'danish',
'dutch',
'english',
'estonian',
'finnish',
'french',
'german',
'german_eintrag',
'greek',
'hebrew',
'hungarian',
'icelandic',
'italian',
'japanese',
'korean',
'latvian',
'lithuanian',
'norwegian',
'polish',
'portuguese_brazil',
'portuguese_standard',
'romanian',
'russian',
'serbian',
'slovak',
'slovene',
'spanish',
'swedish',
'turkish',
'ukrainian',
'urdu',
);
# Browser language mapping for 'auto' language selection
$g_language_auto_map = array(
'bg' => 'bulgarian',
'ca' => 'catalan',
'zh-cn, zh-sg, zh' => 'chinese_simplified',
'zh-hk, zh-tw' => 'chinese_traditional',
'cs' => 'czech',
'da' => 'danish',
'nl-be, nl' => 'dutch',
'en-us, en-gb, en-au, en' => 'english',
'et' => 'estonian',
'fi' => 'finnish',
'fr-ca, fr-be, fr-ch, fr' => 'french',
'de-de, de-at, de-ch, de' => 'german',
'he' => 'hebrew',
'hu' => 'hungarian',
'hr' => 'croatian',
'is' => 'icelandic',
'it-ch, it' => 'italian',
'ja' => 'japanese',
'ko' => 'korean',
'lt' => 'lithuanian',
'lv' => 'latvian',
'no' => 'norwegian',
'pl' => 'polish',
'pt-br' => 'portugese_brazil',
'pt' => 'portugese_standard',
'ro-mo, ro' => 'romanian',
'ru-mo, ru-ru, ru-ua, ru' => 'russian',
'sr' => 'serbian',
'sk' => 'slovak',
'sl' => 'slovene',
'es-mx, es-co, es-ar, es-cl, es-pr, es' => 'spanish',
'sv-fi, sv' => 'swedish',
'tr' => 'turkish',
'uk' => 'ukrainian'
);
# Fallback for automatic language selection
$g_fallback_language = 'english';
###############################
# Mantis Display Settings
###############################
# --- sitewide variables ----------
$g_window_title = 'Mantis'; # browser window title
$g_page_title = ''; # title at top of html page (empty by default, since there is a logo now)
# --- advanced views --------------
# BOTH, SIMPLE_ONLY, ADVANCED_ONLY
$g_show_report = BOTH;
$g_show_update = BOTH;
$g_show_view = BOTH;
# --- top menu items --------------
# Specifies whether to enable support for project documents or not.
$g_enable_project_documentation = ON;
# --- footer menu -----------------
# Display another instance of the menu at the bottom. The top menu will still remain.
$g_show_footer_menu = OFF;
# --- show extra menu bar with all available projects ---
$g_show_project_menu_bar = OFF;
# --- show extra dropdown for subprojects ---
# Shows only top projects in the project dropdown and adds an extra dropdown for subprojects.
$g_show_extended_project_browser = OFF;
# --- show assigned to names ------
# This is in the view all pages
$g_show_assigned_names = ON;
# --- show priority as icon ---
# OFF: Shows priority as icon in view all bugs page
# ON: Shows priority as text in view all bugs page
$g_show_priority_text = OFF;
# A configuration option that identifies the columns to be shown on the View Issues page.
# In Mantis 1.1, this option can be overriden using the Generic Configuration screen.
# This configuration can be overriden dynamically by overriding the custom function "get_columns_to_view".
# Some of the columns specified here can be removed automatically if they conflict with other configuration.
# For example, sponsorship_total will be removed if sponsorships are disabled.
# To include custom field 'xyz', include the column name as 'custom_xyz'.
#
# Standard Column Names (i.e. names to choose from):
# selection, edit, id, project_id, reporter_id, handler_id, priority, reproducibility, projection, eta,
# resolution, fixed_in_version, view_state, os, os_build, platform, version, date_submitted, attachment,
# category, sponsorship_total, severity, status, last_updated, summary, bugnotes_count
$g_view_issues_page_columns = array ( 'selection', 'edit', 'priority', 'id', 'sponsorship_total', 'bugnotes_count', 'attachment', 'category', 'severity', 'status', 'last_updated', 'summary' );
# A configuration option that identifies the columns to be show on the print issues page.
# In Mantis 1.1, this option can be overriden using the Generic Configuration screen.
# This configuration can be overriden dynamically by overriding the custom function "get_columns_to_view".
$g_print_issues_page_columns = array ( 'selection', 'priority', 'id', 'sponsorship_total', 'bugnotes_count', 'attachment', 'category', 'severity', 'status', 'last_updated', 'summary' );
# A configuration option that identifies the columns to be include in the CSV export.
# In Mantis 1.1, this option can be overriden using the Generic Configuration screen.
# This configuration can be overriden dynamically by overriding the custom function "get_columns_to_view".
$g_csv_columns = array ( 'id', 'project_id', 'reporter_id', 'handler_id', 'priority', 'severity', 'reproducibility', 'version', 'projection', 'category', 'date_submitted', 'eta', 'os', 'os_build', 'platform', 'view_state', 'last_updated', 'summary', 'status', 'resolution', 'fixed_in_version', 'duplicate_id' );
# --- show projects when in All Projects mode ---
$g_show_bug_project_links = ON;
# --- Position of the status colour legend, can be: STATUS_LEGEND_POSITION_*
# --- see constant_inc.php. (*: TOP , BOTTOM , or BOTH)
$g_status_legend_position = STATUS_LEGEND_POSITION_BOTTOM;
# --- Show a legend with percentage of bug status
# --- x% of all bugs are new, y% of all bugs are assigned and so on.
# --- If set to ON it will printed below the status colour legend.
$g_status_percentage_legend = OFF;
# --- Position of the filter box, can be: FILTER_POSITION_*
# FILTER_POSITION_TOP, FILTER_POSITION_BOTTOM, or 0 for none.
$g_filter_position = FILTER_POSITION_TOP;
# --- show product versions in create, view and update screens
# ON forces display even if none are defined
# OFF suppresses display
# AUTO suppresses the display if there are no versions defined for the project
$g_show_product_version = AUTO;
# -- show users with their real name or not
$g_show_realname = OFF;
$g_differentiate_duplicates = OFF; # leave off for now
# -- sorting for names in dropdown lists. If turned on, "Jane Doe" will be sorted with the "D"s
$g_sort_by_last_name = OFF;
# Show user avatar
# the current implementation is based on http://www.gravatar.com
# users will need to register there the same address used in
# this mantis installation to have their avatar shown
# Please note: upon registration or avatar change, it takes some time for
# the updated gravatar images to show on sites
$g_show_avatar = OFF;
# Only users above this threshold will have their avatar shown
$g_show_avatar_threshold = DEVELOPER;
# Default avatar for users without a gravatar account
$g_default_avatar = "%path%images/no_avatar.png";
############################
# Mantis JPGRAPH Addon
############################
# --- jpgraph settings --- #
# Initial Version from Duncan Lisset
#
# To use the Jpgraph addon you need the JPGRAPH package from
# http://www.aditus.nu/jpgraph/index.php
# You can place the package whereever you want, but you have
# to set the var in jpgraph.php eg.
# (DEFINE('DIR_BASE','/www/mantisbt/jpgraph/');)
$g_use_jpgraph = OFF;
$g_jpgraph_path = '.' . DIRECTORY_SEPARATOR . 'jpgraph' . DIRECTORY_SEPARATOR; # dont forget the ending slash!
# use antialiasing - Enabling anti-aliasing will greatly improve the visual apperance of certain graphs.
# Note: Using anti-aliasing makes line drawing roughly 8 time slower than normal lines
$g_jpgraph_antialias = ON;
# what truetype font will the graphs use. Allowed values are 'arial', 'verdana', 'courier', 'book', 'comic', 'times',
# 'georgia', 'trebuche', 'vera', 'veramono', or 'veraserif'. Refer to the jpgraph manual for details.
# NOTE: these fonts need to be installed in the TTF_DIR as specified to jpgraph
$g_graph_font = '';
# what width is used to scale the graphs.
$g_graph_window_width = 800;
# bar graph aspect ration (height / width)
$g_graph_bar_aspect = 0.9;
# how many graphs to put in each row in the advanced summary page
$g_graph_summary_graphs_per_row = 2;
# initial graph type selected on bug_graph_page (see that page for possible values)
# 0 asks user to select
$g_default_graph_type = 0;
# graph colours, once the list is exhausted it will repeat
$g_graph_colors = array('coral', 'red', 'blue', 'black', 'green', 'orange', 'pink', 'brown', 'gray',
'blueviolet','chartreuse','magenta','purple3','teal','tan','olivedrab','magenta');
############################
# Mantis Time Settings
############################
# time for 'permanent' cookie to live in seconds (1 year)
$g_cookie_time_length = 30000000;
# minutes to wait before document is stale (in minutes)
$g_content_expire = 0;
# The time (in seconds) to allow for page execution during long processes
# such as upgrading your database.
# The default value of 0 indicates that the page should be allowed to
# execute until it is finished.
$g_long_process_timeout = 0;
############################
# Mantis Date Settings
############################
# --- date format settings --------
# date format strings defaults to ISO 8601 formatting
# go to http://www.php.net/manual/en/function.date.php
# for detailed instructions on date formatting
$g_short_date_format = 'Y-m-d';
$g_normal_date_format = 'Y-m-d H:i';
$g_complete_date_format = 'Y-m-d H:i T';
############################
# Mantis News Settings
############################
# --- Limit News Items ------------
# limit by entry count or date
# BY_LIMIT - entry limit
# BY_DATE - by date
$g_news_limit_method = BY_LIMIT;
# limit by last X entries
$g_news_view_limit = 7;
# limit by days
$g_news_view_limit_days = 30;
# threshold for viewing private news
$g_private_news_threshold = DEVELOPER;
##################################
# Mantis Default Preferences
##################################
# --- signup default ---------------
# look in constant_inc.php for values
$g_default_new_account_access_level = REPORTER;
# Default Bug View Status (VS_PUBLIC or VS_PRIVATE)
$g_default_bug_view_status = VS_PUBLIC;
# Default value for steps to reproduce field.
$g_default_bug_steps_to_reproduce = '';
# Default value for addition information field.
$g_default_bug_additional_info = '';
# Default Bugnote View Status (VS_PUBLIC or VS_PRIVATE)
$g_default_bugnote_view_status = VS_PUBLIC;
# Default bug severity when reporting a new bug
$g_default_bug_severity = MINOR;
# Default bug priority when reporting a new bug
$g_default_bug_priority = NORMAL;
# Default bug reproducibility when reporting a new bug
$g_default_bug_reproducibility = REPRODUCIBILITY_HAVENOTTRIED;
# Default bug category when reporting a new bug
$g_default_bug_category = '';
# --- viewing defaults ------------
# site defaults for viewing preferences
$g_default_limit_view = 50;
$g_default_show_changed = 6;
$g_hide_status_default = CLOSED;
$g_show_sticky_issues = 'on';
# make sure people aren't refreshing too often
$g_min_refresh_delay = 10; # in minutes
# --- account pref defaults -------
$g_default_advanced_report = OFF;
$g_default_advanced_view = OFF;
$g_default_advanced_update = OFF;
$g_default_refresh_delay = 30; # in minutes
$g_default_redirect_delay = 2; # in seconds
$g_default_bugnote_order = 'ASC';
$g_default_email_on_new = ON;
$g_default_email_on_assigned = ON;
$g_default_email_on_feedback = ON;
$g_default_email_on_resolved = ON;
$g_default_email_on_closed = ON;
$g_default_email_on_reopened = ON;
$g_default_email_on_bugnote = ON;
$g_default_email_on_status = 0; # @@@ Unused
$g_default_email_on_priority = 0; # @@@ Unused
$g_default_email_on_new_minimum_severity = OFF; # 'any'
$g_default_email_on_assigned_minimum_severity = OFF; # 'any'
$g_default_email_on_feedback_minimum_severity = OFF; # 'any'
$g_default_email_on_resolved_minimum_severity = OFF; # 'any'
$g_default_email_on_closed_minimum_severity = OFF; # 'any'
$g_default_email_on_reopened_minimum_severity = OFF; # 'any'
$g_default_email_on_bugnote_minimum_severity = OFF; # 'any'
$g_default_email_on_status_minimum_severity = OFF; # 'any'
$g_default_email_on_priority_minimum_severity = OFF; # @@@ Unused
$g_default_email_bugnote_limit = 0;
# default_language - is set to site language
###############################
# Mantis Summary Settings
###############################
# how many reporters to show
# this is useful when there are hundreds of reporters
$g_reporter_summary_limit = 10;
# --- summary date displays -------
# date lengths to count bugs by (in days)
$g_date_partitions = array( 1, 2, 3, 7, 30, 60, 90, 180, 365);
# shows project '[project] category' when 'All Projects' is selected
# otherwise only 'category name'
$g_summary_category_include_project = OFF;
# threshold for viewing summary
$g_view_summary_threshold = MANAGER;
###############################
# Mantis Bugnote Settings
###############################
# --- bugnote ordering ------------
# change to ASC or DESC
$g_bugnote_order = 'DESC';
################################
# Mantis Bug History Settings
################################
# --- bug history visible by default when you view a bug ----
# change to ON or OFF
$g_history_default_visible = ON;
# --- bug history ordering ----
# change to ASC or DESC
$g_history_order = 'ASC';
###############################
# Mantis Reminder Settings
###############################
# are reminders stored as bugnotes
$g_store_reminders = ON;
# Automatically add recipients of reminders to monitor list, if they are not
# the handler or the reporter (since they automatically get notified, if required)
# If recipients of the reminders are below the monitor threshold, they will not be added.
$g_reminder_recipents_monitor_bug = ON;
# Default Reminder View Status (VS_PUBLIC or VS_PRIVATE)
$g_default_reminder_view_status = VS_PUBLIC;
###################################
# Mantis Sponsorship Settings
###################################
# Whether to enable/disable the whole issue sponsorship feature
$g_enable_sponsorship = OFF;
# Currency used for all sponsorships.
$g_sponsorship_currency = 'US$';
# Access level threshold needed to view the total sponsorship for an issue by all users.
$g_view_sponsorship_total_threshold = VIEWER;
# Access level threshold needed to view the users sponsoring an issue and the sponsorship
# amount for each.
$g_view_sponsorship_details_threshold = VIEWER;
# Access level threshold needed to allow user to sponsor issues.
$g_sponsor_threshold = REPORTER;
# Access level required to be able to handle sponsored issues.
$g_handle_sponsored_bugs_threshold = DEVELOPER;
# Access level required to be able to assign a sponsored issue to a user with access level
# greater or equal to 'handle_sponsored_bugs_threshold'.
$g_assign_sponsored_bugs_threshold = MANAGER;
# Minimum sponsorship amount. If the user enters a value less than this, an error will be prompted.
$g_minimum_sponsorship_amount = 5;
###################################
# Mantis File Upload Settings
###################################
# --- file upload settings --------
# This is the master setting to disable *all* file uploading functionality
#
# If you want to allow file uploads, you must also make sure that they are
# enabled in php. You may need to add 'file_uploads = TRUE' to your php.ini
#
# See also: $g_upload_project_file_threshold, $g_upload_bug_file_threshold,
# $g_allow_reporter_upload
$g_allow_file_upload = ON;
# Upload destination: specify actual location in project settings
# DISK, DATABASE, or FTP.
$g_file_upload_method = DATABASE;
# When using FTP or DISK for storing uploaded files, this setting control
# the access permissions they will have on the web server: with the default
# value (0400) files will be read-only, and accessible only by the user
# running the apache process (probably "apache" in Linux and "Administrator"
# in Windows).
# For more details on unix style permissions:
# http://www.perlfect.com/articles/chmod.shtml
$g_attachments_file_permissions = 0400;
# FTP settings, used if $g_file_upload_method = FTP
$g_file_upload_ftp_server = 'ftp.myserver.com';
$g_file_upload_ftp_user = 'readwriteuser';
$g_file_upload_ftp_pass = 'readwritepass';
# Maximum file size that can be uploaded
# Also check your PHP settings (default is usually 2MBs)
$g_max_file_size = 256000000; # 25 MB
# Files that are allowed or not allowed. Separate items by commas.
# eg. 'php,html,java,exe,pl'
# if $g_allowed_files is filled in NO other file types will be allowed.
# $g_disallowed_files takes precedence over $g_allowed_files
$g_allowed_files = '';
$g_disallowed_files = '';
# prefix to be used for the file system names of files uploaded to projects.
# Eg: doc-001-myprojdoc.zip
$g_document_files_prefix = 'doc';
# absolute path to the default upload folder. Requires trailing / or \
$g_absolute_path_default_upload_folder = '';
############################
# Mantis HTML Settings
############################
# --- html tags -------------------
# Set this flag to automatically convert www URLs and
# email adresses into clickable links
$g_html_make_links = ON;
# These are the valid html tags for multi-line fields (e.g. description)
# do NOT include href or img tags here
# do NOT include tags that have parameters (eg. <font face="arial">)
$g_html_valid_tags = 'p, li, ul, ol, br, pre, i, b, u, em';
# These are the valid html tags for single line fields (e.g. issue summary).
# do NOT include href or img tags here
# do NOT include tags that have parameters (eg. <font face="arial">)
$g_html_valid_tags_single_line = 'i, b, u, em';
# maximum length of the description in a dropdown menu (for search)
# set to 0 to disable truncations
$g_max_dropdown_length = 40;
# This flag conntrolls whether pre-formatted text (delimited by <pre> tags
# is wrapped to a maximum linelength (defaults to 100 chars in strings_api)
# If turned off, the display may be wide when viewing the text
$g_wrap_in_preformatted_text = ON;
##########################
# Mantis HR Settings
##########################
# --- hr --------------------------
$g_hr_size = 1;
$g_hr_width = 50;
#############################
# Mantis LDAP Settings
#############################
# look in README.LDAP for details
# --- using openldap -------------
/*
$g_ldap_server = 'ldaps://ldap.example.com.au/';
$g_ldap_port = '636';
$g_ldap_root_dn = 'dc=example,dc=com,dc=au';
$g_ldap_organization = ''; # e.g. '(organizationname=*Traffic)'
$g_ldap_uid_field = 'uid'; # Use 'sAMAccountName' for Active Directory
$g_ldap_bind_dn = '';
$g_ldap_bind_passwd = '';
$g_use_ldap_email = OFF; # Should we send to the LDAP email address or what MySql tells us
*/
# The LDAP Protocol Version, if 0, then the protocol version is not set.
$g_ldap_protocol_version = 0;
############################
# Status Settings
############################
# Status to assign to the bug when submitted.
$g_bug_submit_status = NEW_;
# Status to assign to the bug when assigned.
$g_bug_assigned_status = ASSIGNED;
# Status to assign to the bug when reopened.
$g_bug_reopen_status = FEEDBACK;
# Resolution to assign to the bug when reopened.
$g_bug_reopen_resolution = REOPENED;
# --- status thresholds (*_status_threshold) ---
# Bug becomes readonly if its status is >= this status. The bug becomes read/write again if re-opened and its
# status becomes less than this threshold.
$g_bug_readonly_status_threshold = RESOLVED;
# Bug is resolved, ready to be closed or reopened. In some custom installations a bug
# maybe considered as resolved when it is moved to a custom (FIXED OR TESTED) status.
$g_bug_resolved_status_threshold = RESOLVED;
# Automatically set status to ASSIGNED whenever a bug is assigned to a person.
# This is useful for installations where assigned status is to be used when
# the bug is in progress, rather than just put in a person's queue.
$g_auto_set_status_to_assigned = ON;
# 'status_enum_workflow' defines the workflow, and reflects a simple
# 2-dimensional matrix. For each existing status, you define which
# statuses you can go to from that status, e.g. from NEW_ you might list statuses
# '10:new,20:feedback,30:acknowledged' but not higher ones.
# The following example can be transferred to config_inc.php
# $g_status_enum_workflow[NEW_]='20:feedback,30:acknowledged,40:confirmed,50:assigned,80:resolved';
# $g_status_enum_workflow[FEEDBACK] ='10:new,30:acknowledged,40:confirmed,50:assigned,80:resolved';
# $g_status_enum_workflow[ACKNOWLEDGED] ='20:feedback,40:confirmed,50:assigned,80:resolved';
# $g_status_enum_workflow[CONFIRMED] ='20:feedback,50:assigned,80:resolved';
# $g_status_enum_workflow[ASSIGNED] ='20:feedback,80:resolved,90:closed';
# $g_status_enum_workflow[RESOLVED] ='50:assigned,90:closed';
# $g_status_enum_workflow[CLOSED] ='50:assigned';
$g_status_enum_workflow = array();
############################
# Bug Attachments Settings
############################
# Specifies the maximum size below which an attachment is previewed in the bug
# view pages. To disable this feature, set max size to 0.
# This feature applies to: bmp, png, gif, jpg
$g_preview_attachments_inline_max_size = 0;
# Extenstions for text files that can be expanded inline.
$g_preview_text_extensions = array( 'txt', 'diff', 'patch' );
# Extensions for images that can be expanded inline.
$g_preview_image_extensions = array( 'bmp', 'png', 'gif', 'jpg', 'jpeg' );
# Specifies the maximum width for the auto-preview feature. If no maximum width should be imposed
# then it should be set to 0.
$g_preview_max_width = 0;
# Specifies the maximum height for the auto-preview feature. If no maximum height should be imposed
# then it should be set to 0.
$g_preview_max_height = 250;
# --- Show an attachment indicator on bug list ---
# Show a clickable attachment indicator on the bug
# list page if the bug has one or more files attached.
# Note: This option is disabled by default since it adds
# 1 database query per bug listed and thus might slow
# down the page display.
$g_show_attachment_indicator = OFF;
# access level needed to view bugs attachments. View means to see the file names
# sizes, and timestamps of the attachments.
$g_view_attachments_threshold = VIEWER;
# list of filetypes to view inline. This is a string of extentions separated by commas
# This is used when downloading an attachment. Rather than downloading, the attachment
# is viewed in the browser.
$g_inline_file_exts = 'gif,png';
# access level needed to download bug attachments
$g_download_attachments_threshold = VIEWER;
# access level needed to delete bug attachments
$g_delete_attachments_threshold = DEVELOPER;
# allow users to view attachments uploaded by themselves even if their access
# level is below view_attachments_threshold.
$g_allow_view_own_attachments = ON;
# allow users to download attachments uploaded by themselves even if their access
# level is below download_attachments_threshold.
$g_allow_download_own_attachments = ON;
# allow users to delete attachments uploaded by themselves even if their access
# level is below delete_attachments_threshold.
$g_allow_delete_own_attachments = OFF;