testlink&mantis系列:Mantis配置修改

上一篇 / 下一篇  2013-01-15 15:31:54 / 个人分类:testlink&mantis

1. Mantis配置修改

1.1. config_defaults_inc.php&config_inc.php

下述配置可以在config_defaults_inc.php中直接修改,也可以在config_inc.php中增加;

读配置时,config_inc.php中的配置优先于config_defaults_inc.php

1.1.1. 创建用户及重置密码时是否发送邮件

config_defaults_inc.php

 

/**

 * If ON, users will be sent their password when their account is created

 * or password reset (this requires mail settings to be correctly configured).

 * If OFF, then the Administrator will have to provide a password when

 * creating new accounts, and the password will be set to blank when reset.

 * @global int $g_send_reset_password

 */

$g_send_reset_password= ON;

=

$g_send_reset_password= OFF;

 

1.1.2. 语言设置

config_defaults_inc.php

/**

 * If the language is set to 'auto', the actual

 * language is determined by the user agent (web browser)

 * language preference.

 * @global string $g_default_language

 */

$g_default_language= 'english';

=

$g_default_language= 'chinese_simplified';

 

1.1.3. 允许删除自己上传的附件

config_defaults_inc.php

 

/**

 * allow users to delete attachments uploaded by themselves even if their access

 * level is below delete_attachments_threshold.

 * @global int $g_allow_delete_own_attachments

 */

$g_allow_delete_own_attachments = OFF;

=

$g_allow_delete_own_attachments = ON;

 

1.1.4. 经理以上级别才可以删除别人的附件

/**

 * access level needed to delete bug attachments

 * @global int $g_delete_attachments_threshold

 */

//$g_delete_attachments_threshold= DEVELOPER;

=

$g_delete_attachments_threshold= MANAGER;

 

1.1.5. 允许报告员关闭问题

/**

 * reporter can close

 * Allow reporters to close the bugs they reported, after they're marked resolved.

 * @global int $g_allow_reporter_close

 */

//$g_allow_reporter_close= OFF;

=

$g_allow_reporter_close= ON;

1.1.6. 不允许用户自己注册帐号

config_defaults_inc.php

/**

 * Allow users to signup for their own accounts.

 * If ON, then $g_send_reset_password must be ON as well, and mail settings

 * must be correctly configured

 * @see $g_send_reset_password

 * @global int $g_allow_signup

 */

//$g_allow_signup= ON;

=>

$g_allow_signup= OFF;

 

1.1.7. 修改时区

config_defaults_inc.php

/**

 * Default timezone to use in mantis.

 * See http://us.php.net/manual/en/timezones.php

 * for a list of valid timezones.

 * Note: if this is left blank, we use the result of

 * date_default_timezone_get() i.e. in order:

 * 1. Reading the TZ environment variable (if non empty)

 * 2. Reading the value of the date.timezone php.ini option (if set)

 * 3. Querying the host operating system (if supported and allowed by the OS)

 * 4. If none of the above succeed, will return a default timezone of UTC.

 * @global string $g_default_timezone

 */

$g_default_timezone = '';

=

$g_default_timezone = 'Asia/Shanghai';

 

1.1.8. 分派列表显示真实姓名

config_defaults_inc.php

 

/**

 * show users with their real name or not

 * @global int $g_show_realname

 */

//$g_show_realname = OFF;

=

$g_show_realname = ON;

1.1.9. mantis邮件配置

 

config_defaults_inc.php

 

SMTP服务器设置:

$g_phpMailer_method= PHPMAILER_METHOD_MAIL;

$g_smtp_host= 'localhost';

$g_smtp_username = '';

$g_smtp_password = '';

=>

$g_phpMailer_method= PHPMAILER_METHOD_SMTP;

$g_smtp_host= '192.168.146.182';

$g_smtp_username= 'luly@luly182.com';

$g_smtp_password= 'abc1233';

 

邮件帐号设置:

$g_administrator_email= 'luly@luly182.com';

$g_webmaster_email= 'luly@luly182.com';

 $g_from_email= 'luly@luly182.com';

$g_from_name= 'Mantis Bug Tracker';

$g_return_path_email='luly@luly182.com';

以上内容进行对应的设置;

 

邮件通知默认开关设置:

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

以上设为OFF,默认都不进行邮件通知;

 

 

1.1.10. BUG严重级别修改

config_defaults_inc.php

/**

 *

 * @global string $g_severity_enum_string

 */

$g_severity_enum_string= '10:feature,20:trivial,30:text,40:tweak,50:minor,60:major,70:crash,80:block';

=

$g_severity_enum_string= '10:docbug,20:suggested,30:L,40:M,50:H,60:VH';

 

mantis\lang\strings_chinese_simplified.txt

对应修改:

$s_severity_enum_string = '10:新功能,20:细节,30:文字,40:小调整,50:小错误,60:很严重,70:崩溃,80:宕机';

=

$s_severity_enum_string = '10:文档BUG,20:建议,30:L,40:M,50:H,60:VH';

TAG: 修改 系列 Mantis mantis TestLink testlink 配置

不断的前进ING。。。 引用 删除 fairylly   /   2016-07-20 10:27:49
原帖由tuhe123于2016-07-15 18:38:37发表
老师,你好
我是刚接触mantis不久,遇到一些问题想请教一下,
管理--平台配置管理--添加平台配置下面的.


如果你只是单纯想修改文字,可以直接在语言包里修改:lang/strings_chinese_simplified.txt。查找到要修改的文字,再更新
引用 删除 tuhe123   /   2016-07-15 18:38:37
老师,你好
我是刚接触mantis不久,遇到一些问题想请教一下,
管理--平台配置管理--添加平台配置下面的“平台”、“操作系统”“操作系统版本”这个词怎么修改成自己定义的呢?
请老师帮忙指教,谢谢
 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

日历

« 2019-09-11  
1234567
891011121314
15161718192021
22232425262728
2930     

数据统计

  • 访问量: 770076
  • 日志数: 260
  • 文件数: 1
  • 书签数: 1
  • 建立时间: 2009-01-05
  • 更新时间: 2017-08-22

RSS订阅

Open Toolbar