初装缺陷跟踪工具螳螂Mantis1.1.1

初装缺陷跟踪工具螳螂Mantis1.1.1,解决了几个不大不少的问题:

1、运行环境
在sourceforge下载没遇到什么问题,解包后愣了一下。看看readme.txt,再看看imstart.cmd后,不禁大声疾呼:懒虫万岁!原来什么都不需要配置!

2、中文问题
运行imstart,出现一个“ and 不是文件名”的问题,哦,目录在“Documents and Settings”下,当然不符合Apache的预期啦,于是独立一个目录命,没有空格,没有中文。再运行成功。

简单操作了一下,就越到中文问题了。乱码!从网上找到些解决办法,将config_defaults_inc.php第367行、第415行的chinese_simplified改为chinese_simplified_gb2312,如下:

修改config_defaults_inc.php.

 ################################
 # 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  = 'chinese_simplified_gb2312';

 # list the choices that the users are allowed to choose
 $g_language_choices_arr = array(
  'auto',
  'bulgarian',
  'catalan',
  'chinese_simplified_gb2312',
  'chinese_traditional',

  ..........................
# Browser language mapping for 'auto' language selection
 $g_language_auto_map = array(
  'bg' => 'bulgarian',
  'ca' => 'catalan',
  'zh-cn, zh-sg, zh' => 'chinese_simplified_gb2312',
  'zh-hk, zh-tw' => 'chinese_traditional',

不重起,本机运行看上去没问题,再找另外一个机器测试一下,发现是乱码。原来本机居然仍以
utf-8格式保存字符,与 GB2312不兼容。继续”深入研究“,
按照pashev.igor@pomorsu.ru的快速方法
In file "core/lang_api.php"
改字符串
function lang_get( $p_string, $p_lang = null ) {
成为
function lang_get( $p_string, $p_lang = '
chinese_simplified_gb2312 ' ) {

OK!果然可以有作用!

3、新用户
用Admin登录没问题,但新用户不能登录,reset密码也不行,老是提示密码无效。reset密码后,是将新密码email了。根据提示取消email密码功能,允许设置成空。

修改config_defaults_inc.php.
    # 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    = OFF;
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值