基本上這一版已經不需要修改code了,
以下是 1.3.0 版這部分的code
代碼: 選擇全部
// Logout
function udb_logout_page()
{
if (PHPBB_LOGOUT_GET) {
udb_redirect(LOGIN_REDIR.LOGOUT_FLAG);
} else {
echo(REDIR1.PHPBB_WEB_PATH.LOGIN_REDIR.LOGOUT_FLAG.REDIR2);
exit();
}
}
不過必須在phpbb資料夾裡建立一個檔案 cpg_redir.php :
代碼: 選擇全部
<?php
if (!$_SERVER['HTTP_HOST']) {
$cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
$cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/gallery';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>
$cpg_path - contains the the path in which Coppermine is installed
$cpg_host - contains the domain pointer to Coppermine. If Coppermine and phpBB are installed on the same server and domain (the "normal" case), you should leave the default value. Otherwise you should provide a string constant which contains the domain where Coppermine is installed (for example: 'www.my-other-domain.com').
If you change both variables make sure that either $cpg_host contains a trailing slash or $cpg_path contains a leading slash. In other words, the concatenation of the two variables must result in a correct path such as http://www.my-other-domain.com/my_gallery_dir
以上經過測試可以順利在cpg與phpbb之間轉換頁面.