初裝缺陷跟蹤工具螳螂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不兼容。繼續”深入研究“,
按照[email protected]的快速方法
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;
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章