Skip to content

Commit

Permalink
Update sample config file to contain most common options.
Browse files Browse the repository at this point in the history
  • Loading branch information
vboctor committed Jan 4, 2010
1 parent 60f00ef commit e8d9738
Showing 1 changed file with 53 additions and 38 deletions.
91 changes: 53 additions & 38 deletions config_inc.php.sample
Expand Up @@ -14,52 +14,67 @@
# You should have received a copy of the GNU General Public License
# along with MantisBT. If not, see <http://www.gnu.org/licenses/>.

/**
* @package MantisBT
* @copyright Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
* @copyright Copyright (C) 2002 - 2010 MantisBT Team - mantisbt-dev@lists.sourceforge.net
* @link http://www.mantisbt.org
*/
/**
* @package MantisBT
* @copyright Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
* @copyright Copyright (C) 2002 - 2010 MantisBT Team - mantisbt-dev@lists.sourceforge.net
* @link http://www.mantisbt.org
*/

# This sample file contains the essential files that you MUST
# configure to your specific settings. You may override settings
# from config_defaults_inc.php by assigning new values in this file
# This sample file contains the essential files that you MUST
# configure to your specific settings. You may override settings
# from config_defaults_inc.php by assigning new values in this file

# Rename this file to config_inc.php after configuration.
# Rename this file to config_inc.php after configuration.

###########################################################################
# CONFIGURATION VARIABLES
###########################################################################
# In general the value OFF means the feature is disabled and ON means the
# feature is enabled. Any other cases will have an explanation.

# In general the value OFF means the feature is disabled and ON means the
# feature is enabled. Any other cases will have an explanation.
# Look in http://www.mantisbt.org/docs/ or config_defaults_inc.php for more
# detailed comments.

# Look in http://www.mantisbt.org/manual or config_defaults_inc.php for more
# detailed comments.
# --- Database Configuration ---
$g_hostname = 'localhost';
$g_db_username = 'mantisdbuser';
$g_db_password = '';
$g_database_name = 'bugtracker';
$g_db_type = 'mysql';

# --- database variables ---------
# --- Anonymous Access / Signup ---
$g_allow_signup = ON;
$g_allow_anonymous_login = OFF;
$g_anonymous_account = '';

# set these values to match your setup
$g_hostname = "localhost";
$g_db_username = "mantisdbuser";
$g_db_password = "";
$g_database_name = "bugtracker";
$g_db_type = "mysql";
# --- Email Configuration ---
$g_phpMailer_method = PHPMAILER_METHOD_MAIL; # or PHPMAILER_METHOD_SMTP, PHPMAILER_METHOD_SENDMAIL
$g_smtp_host = 'localhost'; # used with PHPMAILER_METHOD_SMTP
$g_smtp_username = ''; # used with PHPMAILER_METHOD_SMTP
$g_smtp_password = ''; # used with PHPMAILER_METHOD_SMTP
$g_administrator_email = 'administrator@example.com';
$g_webmaster_email = 'webmaster@example.com';
$g_from_name = 'Mantis Bug Tracker';
$g_from_email = 'noreply@example.com'; # the "From: " field in emails
$g_return_path_email = 'admin@example.com'; # the return address for bounced mail
$g_email_receive_own = OFF;
$g_email_send_using_cronjob = OFF;

# --- email variables -------------
$g_administrator_email = 'administrator@example.com';
$g_webmaster_email = 'webmaster@example.com';
# --- Attachments / File Uploads ---
$g_allow_file_upload = ON;
$g_file_upload_method = DATABASE; # or DISK
$g_absolute_path_default_upload_folder = ''; # used with DISK, must contain trailing \ or /.
$g_max_file_size = 5000000; # in bytes
$g_preview_attachments_inline_max_size = 256 * 1024;
$g_allowed_files = ''; # extensions comma separated, e.g. 'php,html,java,exe,pl'
$g_disallowed_files = ''; # extensions comma separated

# the "From: " field in emails
$g_from_email = 'noreply@example.com';
# --- Branding ---
$g_window_title = 'MantisBT';
$g_logo_image = 'images/mantis_logo.gif';
$g_favicon_image = 'images/favicon.ico';

# the return address for bounced mail
$g_return_path_email = 'admin@example.com';

# --- file upload settings --------
# This is the master setting to disable *all* file uploading functionality
#
# The default value is ON but you must make sure file uploading is enabled
# in PHP as well. You may need to add "file_uploads = TRUE" to your php.ini.
$g_allow_file_upload = ON;
# --- Real names ---
$g_show_realname = OFF;
$g_show_user_realname_threshold = NOBODY; # Set to access level (e.g. VIEWER, REPORTER, DEVELOPER, MANAGER, etc)

# --- Others ---
$g_default_home_page = 'my_view_page.php'; # Set to name of page to go to after login

0 comments on commit e8d9738

Please sign in to comment.