默认配置文件为config_defaults_inc.php

可以在config_inc.php中修改全局配置

 

下面是我改过后的配置文本:

 

<?php
    $g_hostname = 'localhost';
    $g_db_type = 'mysql';
    $g_database_name = 'bugtracker';
    $g_db_username = 'root';
    $g_db_password = '**********';

    $g_administrator_email  = 'a@b.com';
    $g_webmaster_email      = 'a@b.com';

    # the "From: " field in emails
    $g_from_email           = 'mantis bugtracker';
    $g_return_path_email    = 'a@b.com';
    $g_allow_file_upload    = ON;

    $g_phpMailer_method        = 2;

    $g_smtp_host            = 'b.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 = 'user';
    $g_smtp_password = '******';

    $g_default_language        = 'chinese_simplified';

    $g_window_title            = 'Mantis Bugtracker';     # browser window title
    $g_show_realname = ON;

    $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';

    date_default_timezone_set('Asia/Chongqing');

    $g_top_include_page                = '%absolute_path%';

    $g_project_status_enum_string        = '10:development,30:release,50:stable,70:obsolete,90:using';

?>

 

如果想修改状态等下拉框选择就比较麻烦,要添加两个文件:

 

custom_constant_inc.php

 

<?php
define ( 'USING', 90 );
?>

 

custom_strings_inc.php

 

<?php
# Note that we don't have to remove the Updater entry from the localisation file
if ( lang_get_current() === 'chinese_simplified' ) {
$s_project_status_enum_string     = '10:开发中,30:已发布,50:稳定,70:停止维护,90:使用中';
}?>

 

如果想改页面头的图标,可以建立一个toppage.php:

 

<img src="images/yglogo.jpg" alt="公司图标" height="50px" width="100px"><span STYLE="font:normal normal bolder 18pt Arial">开发部错误跟踪管理系统</span>

 

然后在config_inc.php中设置:

 

$g_top_include_page                = 'C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\mantis\core\toppage.php';

 

如果希望全部去掉页尾的东西,就要到html_api.php中去修改了。