參考連結:http://phpbb-tw.net/phpbb/viewtopic.php ... hlight=cpg
中design大大提供的下載頁面http://coppermine.sourceforge.net/
所下載的CPG新版本CPG1.4.8
使用版本:phpbb2.0.20
網站位置:http://sunfa.no-ip.org/phpbb/index.php
狀況描述:對不起,請問一下各位大大,我依照了上面的連結安裝了CPG1.4.8,但是在整合phpbb論壇的時候卻出現了下面的問題,請問要怎麼解決?
Fatal error: Cannot redeclare cpggetmicrotime() (previously declared in C:\AppServ\www\phpbb\gallery\include\init.inc.php:35) in C:\AppServ\www\phpbb\gallery\include\init.inc.php on line 37
補充:水怪 RPG 完整安裝版,付費遊覽1.0.9,付加檔案2.4.3,部分隱藏0.07,部分隱藏檔案0.02,勳章系統0.4.6,性別1.2.6em,生日1.5.9em,生肖1.0.1em,星座1.0.5em,全區域功告1.2.9em,在線狀況2.2.7,血型1.0,薪資系統1.1.0,版主控制區域1.1.1,好友列表1.1.1,表情符號分類1.4.0RC1c,主題分類2.0.1,黃卡系統1.4.12em,推薦網站1.2.2
問題檔案init.inc.php的37行的上下五行:
代碼: 選擇全部
$queries = array();
function cpgGetMicroTime()
{
list($usec, $sec) = explode(" ", microtime());
return ((float)$usec + (float)$sec);
}
$cpg_time_start = cpgGetMicroTime();
// Do some cleanup in GET, POST and cookie data and un-register global vars
$HTML_SUBST = array('&' => '&', '"' => '"', '<' => '<', '>' => '>', '%26' => '&', '%22' => '"', '%3C' => '<', '%3E' => '>','%27' => ''', "'" => ''');
if (get_magic_quotes_gpc()) {
if (is_array($_POST)) {
請各位大大幫忙一下 ,感激萬分!!