1. Создал файл custom_constant_inc.php
Code: Select all
<?php
define ( 'CHECKED', 85 );
Code: Select all
<?php
if ( lang_get_current() == 'russian' ) {
$s_status_enum_string = '10:новый,20:требуется отклик,30:известен,40:подтвержден,50:назначен,80:выполнен,85:проверен,90:закрыт';
} else {
$s_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,80:resolved,85:checked,90:closed';
$s_fixed_bug_button = "Issue Ready to Check";
$s_fixed_bug_title = "Set Issue Ready to Check";
$s_email_notification_title_for_status_bug_fixed = "The following issue is ready CHECKED.";
}
Code: Select all
<?php
# MantisBT - a php based bugtracking system
# MantisBT is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# MantisBT is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with MantisBT. If not, see <http://www.gnu.org/licenses/>.
/**
* @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
# Rename this file to config_inc.php after configuration.
# 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.
# --- Database Configuration ---
$g_hostname = 'localhost';
$g_db_type = 'mysql';
$g_database_name = 'tmantis';
$g_db_username = 'root';
$g_db_password = '***';
# --- Anonymous Access / Signup ---
$g_allow_signup = ON;
$g_allow_anonymous_login = OFF;
$g_anonymous_account = '';
# --- Email Configuration ---
$g_phpMailer_method = PHPMAILER_METHOD_SMTP; # or PHPMAILER_METHOD_SMTP, PHPMAILER_METHOD_SENDMAIL
$g_smtp_host = '192.168.*.*'; # used with PHPMAILER_METHOD_SMTP
$g_smtp_username = 'tmantis'; # used with PHPMAILER_METHOD_SMTP
$g_smtp_password = '*'; # used with PHPMAILER_METHOD_SMTP
$g_administrator_email = '*';
$g_webmaster_email = '*';
$g_from_name = 'Test Mantis Bug Tracker';
$g_from_email = '*'; # the "From: " field in emails
$g_return_path_email = '*'; # the return address for bounced mail
$g_email_receive_own = OFF;
$g_email_send_using_cronjob = OFF;
# --- 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_max_file_num = 3;
$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
# --- Branding ---
$g_window_title = 'MantisBT';
$g_logo_image = 'images/mantis_logo.gif';
$g_favicon_image = 'images/favicon.ico';
# --- Real names ---
$g_show_realname = ON;
$g_show_user_realname_threshold = NOBODY; # Set to access level (e.g. VIEWER, REPORTER, DEVELOPER, MANAGER, etc)
# --- SVN integration ---
$g_source_control_account = '*';
$g_source_control_notes_view_status = VS_PUBLIC;
$g_source_control_set_status_to = OFF;
$g_source_control_regexp = '/\bissue [#]{0,1}(\d+)\b/i';
# --- Customisation Status Value ---
$g_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,80:resolved,85:checked,90:closed';
$g_status_colors['checked'] = '#6060FA';
$g_status_enum_workflow[NEW_]='10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,85:checked';
$g_status_enum_workflow[FEEDBACK]='10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,85:checked';
$g_status_enum_workflow[ACKNOWLEDGED]='20:feedback,30:acknowledged,40:confirmed,50:assigned,85:checked';
$g_status_enum_workflow[CONFIRMED]='20:feedback,40:confirmed,50:assigned,85:checked';
$g_status_enum_workflow[ASSIGNED] ='20:feedback,50:assigned,85:checked,90:closed';
$g_status_enum_workflow[TEST] ='10:new,20:feedback,50:assigned,80:resolved,85:checked,90:closed';
$g_status_enum_workflow[RESOLVED] ='50:assigned,80:resolved,85:checked,90:closed';
$g_status_enum_workflow[CLOSED] ='50:assigned,90:closed';
# --- Others ---
$g_allow_no_category = ON;
$g_default_home_page = 'my_view_page.php'; # Set to name of page to go to after login
Code: Select all
Possible Whitespace/Error in Configuration File - Aborting. Output so far follows:
string(6) ""