1. Mantis安裝配置jpgraph
1.1. 下載安裝
(1)下載地址:
http://jpgraph.net/download/
這里使用:jpgraph-3.5.0b1.tar.gz
(2)解壓其子目錄src至mantislibrary目錄下,并改名為:jpgraph;
(3)確認(rèn)PHP中有加載jpgraph使用的動態(tài)庫:extension=php_gd2.dll
(4)安裝插件:管理-插件管理-安裝MantisGraph插件
(5)修改MantisGraph插件配置
要使用的圖形庫修改為:JpGraph
JpGraph 庫系統(tǒng)路徑:設(shè)置為對應(yīng)的jpgraph路徑;
例:D:Program FilesEasyPHP-12.1wwwmantislibraryjpgraph
1.2. 修改mantislibraryjpgraphjpgraph_ttf.inc.php
elseif( $aFF === FF_SIMSUN ) {
// Do Chinese conversion
if( $this->g2312 == null ) {
include_once 'jpgraph_gb2312.php' ;
$this->g2312 = new GB2312toUTF8();
}
return $this->g2312->gb2utf8($aTxt);
}
=》
//2013-01-09 luly 解決jpgraph中文亂碼問題
/*elseif( $aFF === FF_SIMSUN ) {
// Do Chinese conversion
if( $this->g2312 == null ) {
include_once 'jpgraph_gb2312.php' ;
$this->g2312 = new GB2312toUTF8();
}
return $this->g2312->gb2utf8($aTxt);
}*/
elseif( $aFF === FF_SIMSUN ) {
return $aTxt;
}