1. Mantis安装配置jpgraph 1.1. 下载安装
(1)下载地址:
http://jpgraph.net/download/
这里使用:jpgraph-3.5.0b1.tar.gz
(2)解压其子目录src至mantislibrary目录下,并改名为:jpgraph;
(3)确认PHP中有加载jpgraph使用的动态库:extension=php_gd2.dll
(4)安装插件:管理-插件管理-安装MantisGraph插件
(5)修改MantisGraph插件配置
要使用的图形库修改为:JpGraph
JpGraph 库系统路径:设置为对应的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;
}