七、图形报表
使用图形报表可以让mantis更加完美:
A. 安装GD库jpeg-6b的安装(A这部分安装的包不知道是不是必须的)
# yum –y install jpeg-6b
zlib的安装
# yum –y install zlib
libpng的安装
#yum –y install libpng
freetype的安装
# yum –y install freetype
T1lib的安装
# yum –y install t1lib
gd的安装
# yum –y install gd
安装php
# yum –y install php
B. 安装Jpgraph插件:
下载jpgraph3.5.0(此版本仅支持PHP5)
地址:http://jpgraph.net/download/(有PHP5和PHP4的区别,请按需下载,别下错了!)
将下载来压缩包解压缩至mantislibrary目录下,改名为jpgraph;
修改jpgraph的路径指向:
修改config_inc.php中添加下面几行:
$g_use_jpgraph = ON;
$g_jpgraph_path = '/var/www/mantis/library/jpgraph/';
修改mantisbtpluginsMantisGraphMantisGraph.php:
'jpgraph_path' => '/var/www/mantis/library/jpgraph/', //根据自己的安装路径进行配置,注意斜杠不能少。
'jpgraph_antialias' => ON,
C. 接下来解决汉化问题:
(1)、修改文件mantislibraryjpgraphjpgraph_ttf.inc.php:
elseif($aFF===FF_SIMSUN){
//DoChineseconversion
if($this->g2312==null){
include_once'jpgraph_gb2312.php';
$this->g2312=newGB2312toUTF8();
}
return$this->g2312->gb2utf8($aTxt);
}
改为
elseif($aFF===FF_SIMSUN){
//DoChineseconversion
return$aTxt;
}