(4)mantis隆重登場
打開mantis地下的config_inc.php.samp文件。一樣的改名為config_inc.php。這個文件是mantis的重量級文件了。我們的配置幾乎都集中在這里了,里面的原貌是:
# --- database variables ---------
# set these values to match your setup
$g_hostname = "localhost";
$g_db_username = "root";
$g_db_password = "";
$g_database_name = "bugtracker";
$g_db_type = "mysql";
# --- email variables -------------
$g_administrator_email ='administrator@example.com';
$g_webmaster_email ='webmaster@example.com';
# the "From: " field in emails
$g_from_email ='noreply@example.com';
# the return address for bounced mail
$g_return_path_email ='admin@example.com';
# --- file upload settings --------
# This is the master setting to disable *all* file uploading functionality
#
# The default value is ON but you must make sure file uploading is enabled
# in PHP as well. You may need to add "file_uploads = TRUE" to your php.ini.
$g_allow_file_upload = ON;
接下來幾乎要將其改的面目全非了:
參照我的吧
# --- database variables ---------
# set these values to match your setup
$g_hostname = 'localhost';
$g_db_username = 'mantis';
$g_db_password = 'mantis';
$g_database_name = 'bugtracker';
$g_db_type = 'mysql';
$g_default_language ='chinese_simplified';
$g_window_title = 'mantis BUG管理系統(tǒng)';
$g_page_title = '歡迎使用Mantis BUG 跟蹤管理系統(tǒng) xx網(wǎng) 無需注冊 免費發(fā)布';
$g_show_queries_count = OFF;
# --- email variables -------------
使用phpmailer作為郵件服務器,首先下載phpmailer,網(wǎng)址為:http://phpmailer.codeworxtech.com,下載完后解壓到D:APMServ-v5.2.6APMServ5.2.6wwwhtdocsmantisphpmailer。
修改D:APMServ-v5.2.6APMServ5.2.6wwwhtdocsmantisconfig_inc.php,添加以下內容:
$g_smtp_host = 'smtp.qq.com';//mantis發(fā)送郵件所需要的服務器
$g_smtp_username = '6449694';//mantis登錄的用戶名
$g_smtp_password = 'qqxxxxx';//密碼
$g_use_phpMailer = ON; //打開phpmailer
$g_phpMailer_path = 'D:/APMServ-v5.2.6/APMServ5.2.6/www/htdocs/mantis/phpmailer/';//保證phpmailer所安裝的路徑正確
$g_phpMailer_method = 2;
/*此處的數(shù)值可為0,1,2
0為調用了一個mantis內置的mail()函數(shù)來發(fā)送郵件;1為sendmail方式(這個我也不是很清楚);2為使用smtp方式,登錄到郵件服務器內來發(fā)送郵件*/
$g_return_path_email ='6449694@qq.com'//這個即帶上了域名的完整郵箱名
$g_administrator_email =''6449694@qq.com';
$g_webmaster_email =''6449694@qq.com';
$g_from_email =''6449694@qq.com';
$g_return_path_email =''6449694@qq.com';
# --- file upload settings --------
$g_allow_file_upload = ON; //使用上傳文件功能
$g_file_upload_method = DISK;
$g_max_file_size = 100000000; # 100 MB #設置文件空間
# --- jpgraph settings --------
$g_use_jpgraph = ON; 使用jpgraph
$g_jpgraph_path = 'C:/EasyPHP 2.0b1/php5/jpgraph-1.21b/src/'; 指定jpgraph的路徑
$g_graph_font = 'chinese_gbk'; 設置jpgraph圖形字體
# --- time settings --------
$g_short_date_format = 'Y-m-d';
$g_normal_date_format = 'Y-m-d H:i';
$g_complete_date_format = 'Y-m-d H:i';